Display layer attributes (Python)¶
Display layer attributes (Python)¶
1# Display attributes for each layer in the current drawing
2
3# write the info to the Output Toolbox
4ot = impact.gui.output_toolbox
5
6# get the active drawing (if there is one)
7ad = impact.active_drawing
8if ad.isNone():
9 ot.add("There is no active drawing")
10else:
11 # iterate through all the layers
12 for lay in ad.layers:
13 ot.add("Layer '" + lay.full_name + "' is a '" + lay.layer_type + "' with description '" + lay.description + "'")