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.

delete layer in basic cad?

Started by js, March 21, 2007, 10:22:47 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

js

Is it possible to delete a layer in basic cad?
I would like to delet all entities on a given layer.

Any help is appreciated.
Thanks
js


Bob P

Probably the easiest way is to use Selectlayer and then Erase.

SelectLayer 
>SelectLayer{
<Layer n
The layer number to be selected. There can be multiple Layer parameters in the command to select
more than one layer
<Type t
[0 (default) - selects only the listed layers. All other items de-selected.
1 - Adds the listed layers to the current selection set.
-1 - Removes the selected layers from the selection set.]
}
The SelectLayer command allows the programmer to select or deselect multiple layers.
Note: This command will overwrite the editable and visible flags for any listed layers. In other
words, if Layer 3 is invisible or non-editable, selecting it with SelectLayer will change Layer 3 to be
both visible and editable. Pay attention to what you're doing...

-----------------------------------------------------------------

Erase 
>Erase
{
}
This command erases all selected objects. It is identical to SelectDelete below.

js

Thanks Bob,
I will try SelectLayer and Erase... very carefully
js