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.

Moving items betweem layers

Started by Robert Willis, May 12, 2016, 07:13:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Robert Willis

I have numerous industrial network drawings and I would like to move the various network connections to different layers to make it easier to troubleshoot.  I have searched for a method to do this, but cannot seem to find it. I am running DesignCAD 3DMAX V25.2

SOLUTION FOUND: It is in the info box. I found this by refining my search of the forum.

DrollTroll

You can also use the layer toolbar: make the desired layer the current one, then select the objects to be moved, and use the 'Apply to Selection' button in the layer toolbar. This method actually works better on grouped items.
25 years with DesignCAD

samdavo

#2
FWIW, Personally I use macros eg this one called "selto2.d3m" (= selection to layer2),  which
a) change the layer of the selection to 2, and
b) change its colour to red, as per everything on layer 2 (I do pretty basic drawings that permit this simplification / standardisation of colours and layers)
'selto2.d3m - puts selection into layer 2 with PutAttr
'AND changes colour to red

max = Sys(80)

If Sys(80) < 1 Then
    Message "Nothing to do! Select something first..."
    End
End If


For i = 1 To max
    GetSelect i, j
    GetAttr j, etype, eselect, elayer, egroup, ered, egreen, eblue, esolid
   
elayer = 2
ered = 255
egreen = 0
eblue = 0
 
    PutAttr j, etype, eselect, elayer, egroup, ered, egreen, eblue, esolid

Next i
End

Bob P

That's an "instance" of my general command-line layer macro, l.d3m.  Mine works in two ways:
If nothing is selected, it changes the current layer.
If something is selected, it changes the entities layer and color. (Coincidentally, layer 2 is red.)

All my layer utilities and documentation are posted at
http://www.wwslalom.net/dc/layers.zip