Enquire insertions (Python)

Enquire insertions (Python)
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.
4inserts = impact.active_layer.root_block.enquire_insertions
5
6inserts.recurse = False
7inserts.perform()
8for insert in inserts:
9    impact.gui.output_toolbox.add("Insert: " + insert.name + " Type: " + insert.type + " Count: " + insert.count + " Scale: " + insert.scale + " Area: " + insert.area)