Enquire insertions¶
Enquire insertions¶
1# This example shows how to determine the insertions in the in the
2# current layer. It summarises the names, types, scales and counts
3# of the insertions.
4
5inserts = impact.active_drawing.active_layer.root_block.enquire_insertions
6
7inserts.recurse = False
8inserts.perform()
9
10for insert in inserts:
11 impact.gui.output_toolbox.add("Insert: " + insert.name + " Type: " + str(insert.type) + " Count: " + str(insert.count) + " Scale: " + str(insert.scale) + " Area: " + str(insert.area))
12