Display layer attributes¶
Display layer attributes¶
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
12 # iterate through all the layers
13 for lay in ad.layers:
14 ot.add("Layer '" + lay.full_name + "' is a '" + str(lay.layer_type) + "' with description '" + lay.description + "'")
15
16