DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Hiding/Unhiding Layers in a Macro

Started by nicole, June 05, 2007, 10:54:03 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nicole

I am using RainCAD X Series DesignCAD Edition v. 9.0 and I am trying to set up a macro to print different layers one after the other, but when I record the macro the changes I make with the layers do not get recorded and when I run the macro I have to manually hide/unhide the layers I want to print.  Is there a way to make all of this record in the macro? Thanks.

DrollTroll

Hi Nicole,

Sorry, but nothing you do in the Options dialog box gets recorded when you record a macro.

The macro statement to hide a layer is
Layer n = 0
where n is the index of the layer to be hidden.

To unhide the layer later, the statement changes to
Layer n = 6

So for example, to hide layers 5, 7, and 11, my macro would include these lines:

Layer 5 = 0
Layer 7 = 0
Layer 11 = 0


25 years with DesignCAD