Lisp needed
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
Lisp needed

 
Post new topic   Reply to topic    CADForums.net Forum Index -> AutoCAD
Author Message
jazu
Guest





Posted: Mon Aug 29, 2005 8:10 am    Post subject: Lisp needed Reply with quote

Hi
I'm looking for lisp that lock all layer except the picked entity, next
unlock layers back.
thanks

Back to top
Longshot
Guest





Posted: Mon Aug 29, 2005 4:10 pm    Post subject: Re: Lisp needed Reply with quote

express tools has a similar option. go to layer manager & lock all, then
pick on the entity you which to unlock the layer of.

"jazu" <nospam> wrote in message news:11h5auhej5ilpee@corp.supernews.com...
Quote:
Hi
I'm looking for lisp that lock all layer except the picked entity, next
unlock layers back.
thanks

Back to top
jazu
Guest





Posted: Thu Sep 01, 2005 8:10 am    Post subject: Re: Lisp needed Reply with quote

this is the way im doing, so I want faster metod

"Longshot" <Longshot@aol.com> wrote in message
news:c8DQe.74063$084.48523@attbi_s22...
Quote:
express tools has a similar option. go to layer manager & lock all, then
pick on the entity you which to unlock the layer of.

"jazu" <nospam> wrote in message
news:11h5auhej5ilpee@corp.supernews.com...
Hi
I'm looking for lisp that lock all layer except the picked entity, next
unlock layers back.
thanks





Back to top
Jim Claypool
Guest





Posted: Thu Sep 01, 2005 4:10 pm    Post subject: Re: Lisp needed Reply with quote

This will do what you want. Use layerp to return layers to their previous
state.

(defun c:layerlock ( / ename layname)
(while (not (setq ename (entsel "\nSelect object on desired layer: "))))
(setq ename (car ename))
(setq layname (cdr (assoc 8 (entget ename))))
(command ".layer" "s" layname "lo" "*" "U" layname "")
(princ (strcat "\nAll layers locked except " layname))
(princ)
)

"jazu" <nospam> wrote in message news:11hcunh8ss1399b@corp.supernews.com...
Quote:
this is the way im doing, so I want faster metod

"Longshot" <Longshot@aol.com> wrote in message
news:c8DQe.74063$084.48523@attbi_s22...
express tools has a similar option. go to layer manager & lock all, then
pick on the entity you which to unlock the layer of.

"jazu" <nospam> wrote in message
news:11h5auhej5ilpee@corp.supernews.com...
Hi
I'm looking for lisp that lock all layer except the picked entity, next
unlock layers back.
thanks





Back to top
jazu
Guest





Posted: Fri Sep 02, 2005 8:10 am    Post subject: Re: Lisp needed Reply with quote

thanks
Is it possible unlocking some layers by picking them? Say I have some
layers. Using ur lisp I lock all except one. Next I want to unlock just one
layer by picking it.
jazu

"Jim Claypool" <jclaypool(removethis)@kc.rr.com> wrote in message
news:d0FRe.19293$mb4.15501@tornado.rdc-kc.rr.com...
Quote:
This will do what you want. Use layerp to return layers to their previous
state.

(defun c:layerlock ( / ename layname)
(while (not (setq ename (entsel "\nSelect object on desired layer: "))))
(setq ename (car ename))
(setq layname (cdr (assoc 8 (entget ename))))
(command ".layer" "s" layname "lo" "*" "U" layname "")
(princ (strcat "\nAll layers locked except " layname))
(princ)
)

"jazu" <nospam> wrote in message
news:11hcunh8ss1399b@corp.supernews.com...
this is the way im doing, so I want faster metod

"Longshot" <Longshot@aol.com> wrote in message
news:c8DQe.74063$084.48523@attbi_s22...
express tools has a similar option. go to layer manager & lock all, then
pick on the entity you which to unlock the layer of.

"jazu" <nospam> wrote in message
news:11h5auhej5ilpee@corp.supernews.com...
Hi
I'm looking for lisp that lock all layer except the picked entity, next
unlock layers back.
thanks







Back to top
Michael Bulatovich
Guest





Posted: Fri Sep 02, 2005 4:10 pm    Post subject: Re: Lisp needed Reply with quote

There is a Bonus/Express tool to do this, which you may have. Used to be

"LAYULK"
--


MichaelB
www.michaelbulatovich.ca

"jazu" <nospam> wrote in message news:11hfqkaip5locc8@corp.supernews.com...
Quote:
thanks
Is it possible unlocking some layers by picking them? Say I have some
layers. Using ur lisp I lock all except one. Next I want to unlock just
one layer by picking it.
jazu

"Jim Claypool" <jclaypool(removethis)@kc.rr.com> wrote in message
news:d0FRe.19293$mb4.15501@tornado.rdc-kc.rr.com...
This will do what you want. Use layerp to return layers to their previous
state.

(defun c:layerlock ( / ename layname)
(while (not (setq ename (entsel "\nSelect object on desired layer: "))))
(setq ename (car ename))
(setq layname (cdr (assoc 8 (entget ename))))
(command ".layer" "s" layname "lo" "*" "U" layname "")
(princ (strcat "\nAll layers locked except " layname))
(princ)
)

"jazu" <nospam> wrote in message
news:11hcunh8ss1399b@corp.supernews.com...
this is the way im doing, so I want faster metod

"Longshot" <Longshot@aol.com> wrote in message
news:c8DQe.74063$084.48523@attbi_s22...
express tools has a similar option. go to layer manager & lock all,
then
pick on the entity you which to unlock the layer of.

"jazu" <nospam> wrote in message
news:11h5auhej5ilpee@corp.supernews.com...
Hi
I'm looking for lisp that lock all layer except the picked entity,
next
unlock layers back.
thanks









Back to top
Jim Claypool
Guest





Posted: Fri Sep 02, 2005 4:10 pm    Post subject: Re: Lisp needed Reply with quote

Basically the same thing.

(defun c:layerunlock ( / ename layname)
(while (not (setq ename (entsel "\nSelect object on desired layer: "))))
(setq ename (car ename))
(setq layname (cdr (assoc 8 (entget ename))))
(command ".layer" "u" layname "")
(princ (strcat "\nLayer " layname " is unlocked"))
(princ)
)

"jazu" <nospam> wrote in message news:11hfqkaip5locc8@corp.supernews.com...
Quote:
thanks
Is it possible unlocking some layers by picking them? Say I have some
layers. Using ur lisp I lock all except one. Next I want to unlock just
one layer by picking it.
jazu

"Jim Claypool" <jclaypool(removethis)@kc.rr.com> wrote in message
news:d0FRe.19293$mb4.15501@tornado.rdc-kc.rr.com...
This will do what you want. Use layerp to return layers to their previous
state.

(defun c:layerlock ( / ename layname)
(while (not (setq ename (entsel "\nSelect object on desired layer: "))))
(setq ename (car ename))
(setq layname (cdr (assoc 8 (entget ename))))
(command ".layer" "s" layname "lo" "*" "U" layname "")
(princ (strcat "\nAll layers locked except " layname))
(princ)
)

"jazu" <nospam> wrote in message
news:11hcunh8ss1399b@corp.supernews.com...
this is the way im doing, so I want faster metod

"Longshot" <Longshot@aol.com> wrote in message
news:c8DQe.74063$084.48523@attbi_s22...
express tools has a similar option. go to layer manager & lock all,
then
pick on the entity you which to unlock the layer of.

"jazu" <nospam> wrote in message
news:11h5auhej5ilpee@corp.supernews.com...
Hi
I'm looking for lisp that lock all layer except the picked entity,
next
unlock layers back.
thanks









Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> AutoCAD All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Contact Us
Powered by phpBB