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.

Feature to duplicate a layer group

Started by Sequim, November 29, 2011, 11:40:05 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Sequim

I'm building an animated assembly drawing to be presented as an animated GIF.  To make the frames I must extract a succession of images, each with an additional part in the scene.

A succession of layer groups makes this pretty convenient.  Each group reveals the layers of the previous group plus the additional part.  But manually building each layer group is a tedious chore, and it would be champion if I could just duplicate and add the additional layer.

Even better would be for layer groups to be movable in the list, as are individual layers.  I often screw up and build a  group out of order, and to easily rearrange in frame-sequence order would make life wonderful.


Dr PR

Sequim,

Good suggestion!

What you need is for all existing Layer Groups to be listed in the "Define Layer Group" dialog "All Layers" list (preferably at the top) or for there to be a separate "Existing Layer Groups" list. You could then select an existing group and click the "Add -->" button to copy the associated layers into the "Group Layers" list. Then you could add additional layers to the list or delete specific layers from the list. You could even combine multiple existing Layer Groups to create a new group.

Sounds like a fairly easy addition, and it would improve the Layer Group process.

In any case, when you get your animation finished, please post it. I am sure there are many users (including me) who would like to see it.

Phil
DesignCAD user since 1987

Sequim

Agreed!

And to put icing on this cake, let's wish for a wider dialog box so enough of the layer names can be seen to identify the selections.  As it is now, I first write down the layer numbers that I want to add to a layer group because I can only see the first few letters of the names.

Glazing 2, Glazing 3, Glazing 4, etc. all look alike in the existing dialog box.

Lar

#3
Quote from: Sequim on November 30, 2011, 10:48:23 AM
Glazing 2, Glazing 3, Glazing 4, etc. all look alike in the existing dialog box.

...Feel your pain...

Anyway, below are some BasicCAD commands that allow you to create and manipulate layer groups. I never tried them but they seem promising. In your case once you create the first group just add the additional layer and change the name for the next.

Lar


>CreateLayerGroup
{
 <Name "GroupName"
 <Layer laynum1
 <Layer laynum2
 ...
 <Layer laynumlast
}

'Creates a layer group with a specific name which contains the listed layer numbers
'-------------------------------------------------------------------------------
>DeleteLayerGroup
{
 <LayerGroupIndex [n] (layer group indexes begin at 0)
}

'This command only deletes a layer grouping -- it does not delete any objects on the individual layers that were members of the layer group.
'-------------------------------------------------------------------------------
>AddLayerToGroup
{
 <LayerGroupIndex [n]
 <Layer newlayer1
 <Layer newlayer2
 ...
 <Layer newlayerlast
}

'adds new layers to an existing layer group
'-------------------------------------------------------------------------------

<DeleteLayerFromGroup
{
 <LayerGroupIndex [n]
 <Layer layernum1
 <Layer layernum2
 ...
 <Layer layernumlast
}

'Deletes the specified layers from the layer group. No drawing entities are deleted.