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.

View this layer only

Started by magic, January 23, 2010, 05:56:54 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

magic

Hi DT,

Trying to figure out what goes on with the "Spread my symbols all over this place", I have a feature request:

I would like it to be possible to click on a thing in the layer toolbox to view a specific layer only. This to avoid having to turn off all the other layers, which is usually a lot.

I have seen something similar in Cakewalk Sonar, which is a music recording program, where you can press a button S (for solo) to hear only that instrument.

Thank you very much.

It's a kind of magic!




Bob P

I don't know how you guys get away without my layer utilities.  (There are also macros to hide selected layers, show all layers, etc.)

Here's the one you want:

' Program ssl.d3m 
' Show Selected Layers"
' If no entities are selected, all layers (up to 125) except the current one are hidden.
' If (multiple) entities are already selected, the layer of the first is made current and the rest are left visible.
' Bob Putnam  1/28/04
'
start:

dim entlist(1000)
dest=sys(3)

if sys(80)=0 then goto nopts

points:
dim laystat(125)  'Create a space to store layer status's of entities
for n=1 to 125  'Set the default of each to zero
laystat(n)=0
next n

nsel = sys(80)
for j = 1 to nsel
getselect j, entlist(j)
next j
sys(80)=0

getattr entlist(1), type, select, laynum
layer(laynum)=14  'For the first selection, set the layer status to 14

for j = 2 to nsel
getattr entlist(j), type, select, laynum
laystat(laynum)=1  'For a visible number, set the status to 1
next j

for j=1 to 120
if laystat(j)=0 then
layer(j)=0
else
end if
if laystat(j)=1 then
layer(j)=6
else
end if
if laystat(j)=2 then
layer(j)=14
else
end if
next j

>RegenerateAll
{
}

goto end

nopts:
for j=1 to 125
layer(j)=0
next j
sys(3)=dest

>RegenerateAll
{
}

END:


Lar

Bob, you should upgrade the macro to deal with v19.?'s 2000 layers. I know this because I have a macro that does the same sort of thing and I haven't upgraded mine as yet.

Mine also has the bonus option of saving the current layer setup to an external file. I just click on the button for that file and my previous layer setup is returned.

Lar

Bob P

Lar,

You're right about the limited number of layers.  I've just never pushed the layer limit since I personally have never used more than 100.  And nobody else should either.  ::)

Among my other layer utilities is something like you describe.  I can save a current screen layer configuration (to a file), and add or subtract a saved configuration to the current one.  All my saved configurations include a description that appears in the menu box.

Lar

I use my bottom layers for utility stuff that I use a lot but normally don't print, a habit I picked up since pressing the 'end' key takes you right to the last layers, so that and the few above are visible.

I use lots of layers, though. Sometimes (since layer filtering was introduced) I would use a block of 10 or 20 or 100 layers for a particular theme. Originally I may only use 50% of that block but if a need for a new layer of that theme arises I have space to add it, without having to use those layer moving arrows that only works on one layer at a time (that's the only native way to get the color and linestyle to move with the layer). What dcad needs is a way to insert an unused layer between two used ones but I can imagine the confusion that will cause with layer groups (since the layers numbers above the insertion will change).

Lar