Manipulate layers

Post here to ask questions about or get help with the scripting module of QCAD 2.1/2.2.

Moderator: andrew

Locked
andersb
Newbie Member
Posts: 4
Joined: Sun Nov 23, 2008 10:54 am

Manipulate layers

Post by andersb » Thu May 14, 2009 9:24 am

I need to produce two printouts from the same drawing for to different processes with different requirements.
This means that I need to change some of the attributes of a layer in an easy way.

1. How do I write a script that makes one set of layers visible and another set invisible?

2. How can I write a script that goes through the layers and change the colour attribute, preferably based on the name of the layer?
( something like "foreach layer, if name="fs_*", layer.colour="blue";...)

thanks
Anders

Locked

Return to “QCAD 2.1/2.2 Developers”