Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Turn off multiple layers?

329 views
Skip to first unread message

Eddie Myers

unread,
Jun 15, 2001, 5:50:26 PM6/15/01
to
Any method of turning off multiple layers that are selected at the same
time?
LT2000.

--
Thanks,
Eddie Myers


Eddie Myers.vcf

WILLIAM J DESHAWN

unread,
Jun 17, 2001, 2:47:17 AM6/17/01
to
In A2K(i) you can just click on one of the lightbulbs in the selection in
your LAYERS dialog (Layer Properties Manager)

Another way is to type:
Command: la -LAYER
Current layer: "hid"
Enter an option
[?/Make/Set/New/ON/OFF/Color/Ltype/LWeight/Plot/Freeze/Thaw/LOck/Unlock/stAt
e]:
off

Enter name list of layer(s) to turn off or <select objects>: Here just hit
the Enter key and start selecting objects. You can use any selection
method. Single selection, Crossing window, Crossing Polygon, whatever!

Select objects: 1 found

Select objects: Specify opposite corner: 3 found, 4 total

Select objects:
Really want layer "hid" (the CURRENT layer) off? <N> y
Enter an option
[?/Make/Set/New/ON/OFF/Color/Ltype/LWeight/Plot/Freeze/Thaw/LOck/Unlock/stAt
e]:


--

Bill DeShawn
bdes...@prodigy.net
http://pages.prodigy.net/bdeshawn/bdeshawn.htm


"Eddie Myers" <hhen...@ftc-i.net> wrote in message
news:9gdvcs$d0hk$1...@news3.infoave.net...

Bernd A. Hoffmann

unread,
Jun 18, 2001, 3:38:11 PM6/18/01
to
Or save this off as LO.lsp


(Defun errhand (err)
(If (/= err "Function cancelled")
(Princ
(Strcat "\nError: " err)
)
)
(Setvar "CMDECHO" 1)
(Setq *Error* Nil)
(Prin1)
)
(Defun C:LO (/ SS EN ED LA)
(Setvar "CMDECHO" 0)
(Setq *Error* errhand)
(MenuCmd "S=SELECT")
(Princ
"Turn layer(s) off by selecting objects."
)
(Setq SS (SsGet))
(While (> (SsLength SS) 0)
(Setq
EN (SsName SS 0)
ED (EntGet EN)
LA (CDR (Assoc 8 ED))
)
(If (/= LA (GetVar "CLAYER"))
(Command ".LAYER" "OFF" LA "")
(Prompt
"\nCurrent layer will not be turned off!"
)
)
(SsDel EN SS)
)
(Setvar "CMDECHO" 1)
(Setq *Error* Nil)
(Princ)
)

--
Regards, Bernd
Designer
Burris Savvy Optics
http://www.burrisoptics.com/

Eddie Myers

unread,
Jun 23, 2001, 1:11:09 AM6/23/01
to
William,
I have LT2000 and Educational full 2000 and neither one of them give you the
option to <select> the layers to turn off. Apparently you need to enter the
names of all the layers that you want to turn off. I'd never be able to do
this... it would take way too much time.
What I'm hoping is first of all that in the 2000i that you're using, that it
is an available option.
2ndly I'm hoping that this feature is included in LT2002. Do you know?
And 3rdly I was hoping this same <select> option is available in the VPLAYER
command.

--
Thanks,
Eddie Myers

"WILLIAM J DESHAWN" <BDES...@prodigy.net> wrote in message
news:9ghjsg$3l5k$1...@newssvr06-en0.news.prodigy.com...

Richard Abney

unread,
Jun 23, 2001, 2:50:51 AM6/23/01
to
The feature you are looking for is an express tool.

"Eddie Myers" <hhen...@ftc-i.net> wrote in message
news:9h17r6$tt7$1...@news3.infoave.net...

Mark Gonzales

unread,
Jun 23, 2001, 7:51:35 AM6/23/01
to
For LT2000i:

[->&Pick]
ID_OLayerOff [&Off]*^C^C_setenv Temp1 $M=$(getvar,clayer) ^P_ai_molc
\^P_-layer _off "$M=$(getvar,clayer) _y _s $(getenv,temp1) "
ID_OLayerC [&Color]*^C^C_setenv Temp1 $M=$(getvar,clayer) ^P_ai_molc
\^P_-layer _c \"$M=$(getvar,clayer) _s $(getenv,temp1) "
ID_OLayerF [&Freeze]*^C^C_setenv Temp1 $M=$(getvar,clayer) ^P_ai_molc
\^P_-layer _s "$M=$(getenv,temp1) _f $(getvar,clayer) "
ID_OLayerLo [&Lock]*^C^C_setenv Temp1 $M=$(getvar,clayer) ^P_ai_molc
\^P_-layer _lo "$M=$(getvar,clayer) _s $(getenv,temp1) "
ID_OLayerU [&Unlock]*^C^C_setenv Temp1 $M=$(getvar,clayer) ^P_ai_molc
\^P_-layer _u "$M=$(getvar,clayer) _s $(getenv,temp1) "
ID_OLayerIso [&Isolate]^C^C^P_ai_molc \^P_-layer _off * ;
ID_OLayerEd [<-&Edit]^C^C_setenv Temp1 $M=$(getvar,clayer) ^P_ai_molc
\^P_-layer _lo * _u "$M=$(getvar,clayer) _s $(getenv,temp1) "
--


Mark
http://www.lt-solutions.com
(Batch Processing / MEP Drafting for AutoCAD LT®)

Eddie Myers <hhen...@ftc-i.net> wrote in message

news:9h17r6$tt7$1...@news3.infoave.net...

Mark Gonzales

unread,
Jun 23, 2001, 7:59:33 AM6/23/01
to
Eddie Myers <hhen...@ftc-i.net> wrote in message
news:9h17r6$tt7$1...@news3.infoave.net...

> And 3rdly I was hoping this same <select> option is available in the
VPLAYER
> command.

[->&Pick Layer]
ID_VpOLayerF [&Freeze]*^C^C^P_ai_fms _ai_molc \^P_setenv Temp1
$M=$(getvar,clayer) _-layer _t 0 _s 0 _vplayer _f "$M=$(getenv,temp1)"
ID_VpOLayerD [<-&Set Default]*^C^C^P_ai_fms _ai_molc \^P_setenv Temp1
$M=$(getvar,clayer) _vplayer _v "$M=$(getenv,temp1)"
--


Mark
http://www.lt-solutions.com
(Batch Processing / MEP Drafting for AutoCAD LT®)


>

Mark Gonzales

unread,
Jun 23, 2001, 8:01:33 AM6/23/01
to
Oops. Take the "<-" out of [<-&Set Default] in this case.


Take the
Mark Gonzales <mgon...@lt-solutions.com> wrote in message
news:9h208n$a0l$1...@sshuraaa-i-1.production.compuserve.com...

Eddie Myers

unread,
Jun 23, 2001, 11:07:55 AM6/23/01
to
Mark,
Is this some type of "LISP" routine that will work with LT? I'm new to all
the LISP stuff but my thinking was that in LT you can't run LISP's.
I would LOVE to be able to get these features into LT. I'm probably going to
purchase LT2002 (now).
Would also like to be able to turn off layers by selecting them. (you know,
the lightbulb in express tools on the full versions).
Any more insight appreciated.

--
Thanks,
Eddie Myers

"Mark Gonzales" <mgon...@lt-solutions.com> wrote in message

news:9h20ce$a38$1...@sshuraaa-i-1.production.compuserve.com...

Eddie Myers

unread,
Jun 23, 2001, 11:09:30 AM6/23/01
to
Brenda,
What is an "LO" lisp? I'm new to all the LISP stuff.

--
Thanks,
Eddie Myers

"Bernd A. Hoffmann" <behof...@burrisoptics.com> wrote in message
news:3B2E58A3...@burrisoptics.com...

Eddie Myers

unread,
Jun 23, 2001, 11:10:58 AM6/23/01
to
Road Runner as in Columbia SC?
Yeah, I've found out that it is an express tool and unfortunately for me LT
doesn't have it.
Was hoping LT2002 might.

--
Thanks,
Eddie Myers

"Richard Abney" <rab...@sc.rr.com> wrote in message
news:f%WY6.66757$ru2.20...@typhoon.southeast.rr.com...

Paul Turvill

unread,
Jun 23, 2001, 11:26:45 AM6/23/01
to
She was suggesting the name "LO.LSP" for the file she gave you ... good
practice, since the command it creates is also LO, which makes everything a
bit easier to remember:

(load "LO") ... to load it,
LO ... to run it.
___


"Eddie Myers" <hhen...@ftc-i.net> wrote in message

news:9h2at0$1p5u$1...@news3.infoave.net...

Eddie Myers

unread,
Jun 23, 2001, 1:09:29 PM6/23/01
to
This is actually beginning to make some sense to me...

--
Thanks,
Eddie Myers

"Paul Turvill" <nos...@turvill.com> wrote in message
news:tj9d9mi...@corp.supernews.com...

Paul Turvill

unread,
Jun 23, 2001, 3:14:56 PM6/23/01
to
8-))
__

"Eddie Myers" <hhen...@ftc-i.net> wrote in message

news:9h2htv$204o$1...@news3.infoave.net...

Eddie Myers

unread,
Jun 23, 2001, 4:36:19 PM6/23/01
to
Is that a "smilie face" with a double set of lips or are my glasses just
fogging up again?

--
Thanks,
Eddie Myers

"Paul Turvill" <nos...@turvill.com> wrote in message

news:tj9qlik...@corp.supernews.com...

Mark Gonzales

unread,
Jun 23, 2001, 5:55:34 PM6/23/01
to
Eddie Myers <hhen...@ftc-i.net> wrote in message
news:9h2aq1$1l6j$1...@news3.infoave.net...

> Mark,
> Is this some type of "LISP" routine that will work with LT?

Well, no. This is not LISP and it does work with LT. Same as this:

ID_LabelLine [La&bel Line]*^C^C_setenv Label \_ucs _ob _nea,_mid \_ai_molc
_non @ _break _non
@$M=$(*,$(getvar,textsize),$(+,$(*,$(strlen,$(getenv,label)),.5),.5))<0 _non
@$(*,$(getvar,textsize),$(+,$(strlen,$(getenv,label)),1))<180 _-insert
Base/Dwg/Label_2 _non
@$(*,$(getvar,textsize),$(*,$(+,$(strlen,$(getenv,label)),1),.5))<0
$(getvar,textsize)
$(getenv,label);$(if,$(or,$(<,$(index,0,$(getvar,ucsxdir)),0),$(<,$(index,1,
$(getvar,ucsydir)),0),$(=,$(index,1,$(getvar,ucsxdir)),-1)),_rotate _l _non
@ 180 )

This is a single DIESEL macro. In this case, the macro ask you for a label
value. Then it breaks the selected line the number of characters entered in
your label, and then inserts an attributed block named "Label_2" at the
center of the break on the line's layer and angle (to be read horizontally
or right-read), but reflecting layer "Label", assuming your attribute was
created on layer "Label".

------ MARK ------- GONZALES ---------

However, if you want LISP in LT, check out LT Toolkit at www.drcauto.com.
Great program, IMO!
--


Mark
http://www.lt-solutions.com
(Batch Processing / MEP Drafting for AutoCAD LT®)

Eddie Myers

unread,
Jun 23, 2001, 7:23:05 PM6/23/01
to
Mark,
Thanks for the clarification. I'm still a "little" muddled though. OK I semi
understand the diesel/macro thing... at least the difference between it and
LISP.
But that's about all I follow.
I attempted to create a button by typing in some of the strings below...
just as an experiment.
Not a whole lot happened when I tried to activate the button. Various error
messages came up etc. I was wondering if you could get me started with what
you're suggesting here. Do I need to type everything that you've written
here in "under" a button or are only parts of this the actual code that I
need to type? What am I missing here. Any additional help appreciated.

--
Thanks,
Eddie Myers

"Mark Gonzales" <mgon...@lt-solutions.com> wrote in message
news:9h336b$6mu$1...@sshuraaa-i-1.production.compuserve.com...

Eddie Myers

unread,
Jun 23, 2001, 7:25:01 PM6/23/01
to
Oh yeah, Thanks for the tip on the software for LISP on LT. The pick layer
off button in itself would justify the purchase price for me. I'm gonna get
some other opinions from the group about the software.
Eddie

Martin Shoemaker

unread,
Jun 24, 2001, 12:48:19 PM6/24/01
to
A diesel macro is a single line of text. Because of the way news readers work,
long Diesel expressions often word wrap. For the function Mark showed you have
to start with the ID_LabelLine and go all the way to @ 180 ) on a single
line. Put a single space in any time the news reader starts a new line. I'd
also suggest copying the text to notepad and changing to a monospaced font. The
spaces between the elements of the function are critical, but they can be hard
to identify with a variable width font. A semicolon can be used instead of a
space as a separator. I prefer the semicolon because it's easier to see.

A few rules of thumb:

Every diesel function in your .MNS starts with with an ID tag, in this case
"ID_LabelLine". This is not case sensitive. If you are adding a diesel
function using the toolbar editor, your don't enter the ID.

The "*" says to repeat the function multiple times. Please note that this
doesn't work for all diesel. If the diesel function is interpreted by the
diesel interpreter as a single, complete command, the entire command repeats.
Otherwise just the initial part repeats.

"\" says pause for the user to select something.

"$M=$(" tells the interpreter to evaluate what comes after this string and
return a value.

"ai_molc" makes the selected layer the current layer.

To run a standard AutoCAD command, first run the command line version of the
command and write down the steps you take. The sequence for Diesel will be
essentially the same. If you have to select with the mouse, enter a "\".
Whenever you press Enter, insert a space or semicolon.

Good luck.
Martin

WILLIAM J DESHAWN

unread,
Jun 24, 2001, 10:55:11 PM6/24/01
to
He's running LT2000 No LISP

--

"Bernd A. Hoffmann" <behof...@burrisoptics.com> wrote in message
news:3B2E58A3...@burrisoptics.com...

Tim S

unread,
Jul 2, 2001, 2:59:11 AM7/2/01
to
Have a look at PRO Menu for LT. It has some layer control by picking
objects, plus other useful utility functions.

--
Tim Skene

PRO Menu - The Productivity Toolbox for AutoCAD
www.multicim.com/pmenu.html


longngu...@gmail.com

unread,
Feb 13, 2015, 1:26:27 PM2/13/15
to
Please help,
is there anyway I can turn off all my layers which begin with 3D among my hundreds layers,
for example
I have about 20 2D_xxx layers and other 30 3D_xxxx layers... what if I just want to turn off all layer begin with "3D_...." only?

Any idea?

any help would be appreciated.

Thanks

LKN
0 new messages