GetLengthOfEntitiesByPalette example (Python)¶
GetLengthOfEntitiesByPalette example (Python)¶
1impact.gui.output_tool_box.clear()
2palette = None
3try:
4 palette = impact.active_drawing.palettes.item("Cut")
5except Exception as exc:
6 impact.gui.output_toolbox.add(f"Failed to create object via active_drawing.palettes.item(): {exc}")
7
8length = impact.active_block.get_length_of_entities_by_palette( palette, ipBoolean.bFalse )
9
10impact.gui.output_tool_box.add(length)