autolisp
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
autolisp
Goto page 1, 2  Next
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Drafting
Author Message
Paul Caruthers
Guest





Posted: Wed Jan 19, 2005 11:46 pm    Post subject: autolisp Reply with quote

I must admit, I've never had to deal with this before....

i would like to set up a toolbar button that will turn off a predefined set
of layers. We don't give our sales office fully dimensioned drawings, we
turn off all the dims, notes, atb, .....so all the end up with is walls,
windows & doors, and room names.... any help would be appreciated.

I've considered just make up some new tabs and turning of these layers in
the viewports, but that would involve alot of work....a button would be
soooo much easier.

Paul caruthers

Back to top
Matt
Guest





Posted: Wed Jan 19, 2005 11:52 pm    Post subject: Re: autolisp Reply with quote

Depending on your layering system you could turn off layers with wildcards
or by naming specific layer names. ie - C^C^_-la;f;*dim;*notes;*whatever;;
or C^C^_-la;f;dim*;notes*;;

My last 2 cents in the pot

Matt


"Paul Caruthers" <pcaruthers@lamontagnebuilders.com> wrote in message
news:41eeaa84_1@newsprd01...
Quote:
I must admit, I've never had to deal with this before....

i would like to set up a toolbar button that will turn off a predefined
set
of layers. We don't give our sales office fully dimensioned drawings, we
turn off all the dims, notes, atb, .....so all the end up with is walls,
windows & doors, and room names.... any help would be appreciated.

I've considered just make up some new tabs and turning of these layers in
the viewports, but that would involve alot of work....a button would be
soooo much easier.

Paul caruthers

Back to top
Daniel J. Altamura, R.A.
Guest





Posted: Wed Jan 19, 2005 11:55 pm    Post subject: Re: autolisp Reply with quote

Explore Layer States in help.

--
Daniel J. Altamura, R.A.
Altamura Architectural Consulting
and SoftWorx, Autodesk Authorized Developer
--------------------------------------------------------------------


"Paul Caruthers" <pcaruthers@lamontagnebuilders.com> wrote in message
news:41eeaa84_1@newsprd01...
Quote:
I must admit, I've never had to deal with this before....

i would like to set up a toolbar button that will turn off a predefined
set of layers. We don't give our sales office fully dimensioned drawings,
we turn off all the dims, notes, atb, .....so all the end up with is
walls, windows & doors, and room names.... any help would be appreciated.

I've considered just make up some new tabs and turning of these layers in
the viewports, but that would involve alot of work....a button would be
soooo much easier.

Paul caruthers


Back to top
LARRY
Guest





Posted: Wed Jan 19, 2005 11:56 pm    Post subject: Re: autolisp Reply with quote

HOW ABOUT MAKING A BUTTON WITH THE MACRO

^C^C-LAYER OFF "LAYER NAME,LAYER NAME, ECT" ;
Back to top
Anne Brown
Guest





Posted: Thu Jan 20, 2005 12:04 am    Post subject: Re: autolisp Reply with quote

Paul -

In addition to any replies you might receive or have already
received, you may find more information or responses by posting
future lisp/customization related questions in the following
discussion group:

Web browser:
http://discussion.autodesk.com/forum.jspa?forumID=130
Newsreader:
news://discussion.autodesk.com/autodesk.autocad.customization
---
Anne Brown
Discussion Groups Administrator
Autodesk, Inc.

Paul Caruthers wrote:
Quote:

I must admit, I've never had to deal with this before.... (snip)
Back to top
Paul Caruthers
Guest





Posted: Thu Jan 20, 2005 12:19 am    Post subject: Re: autolisp Reply with quote

Thanks Matt, that's almost got it. I've got to hit the button twice, for
some reason, but it's a starting point.
this is what i've got working C^C^_-la;of;dim,not,beam,girder,cen,atb,hat

time for a little home work tonight.

Paul Caruthers

"Matt" <jeg2dsign@(removethis)earthlink.net> wrote in message
news:41eeac58$1_3@newsprd01...
Quote:
Depending on your layering system you could turn off layers with wildcards
or by naming specific layer names. ie -
C^C^_-la;f;*dim;*notes;*whatever;;
or C^C^_-la;f;dim*;notes*;;

My last 2 cents in the pot

Matt


"Paul Caruthers" <pcaruthers@lamontagnebuilders.com> wrote in message
news:41eeaa84_1@newsprd01...
I must admit, I've never had to deal with this before....

i would like to set up a toolbar button that will turn off a predefined
set
of layers. We don't give our sales office fully dimensioned drawings, we
turn off all the dims, notes, atb, .....so all the end up with is walls,
windows & doors, and room names.... any help would be appreciated.

I've considered just make up some new tabs and turning of these layers in
the viewports, but that would involve alot of work....a button would be
soooo much easier.

Paul caruthers



Back to top
Matt
Guest





Posted: Thu Jan 20, 2005 1:05 am    Post subject: Re: autolisp Reply with quote

You should be close. Try to use 2 semicolons at the end to close the
command. BTW - simple layer/command macros can be pretty handy once you get
the hang of them, even if you are on full cad (I unfortunately use LT). I
have macros to turn groups of layers on/off , lock viewports, reload xrefs
plus all the handy ones that Chip Harper supplied on his site. Good luck.

Matt




"Paul Caruthers" <pcaruthers@lamontagnebuilders.com> wrote in message
news:41eeb251$1_2@newsprd01...
Quote:
Thanks Matt, that's almost got it. I've got to hit the button twice, for
some reason, but it's a starting point.
this is what i've got working
C^C^_-la;of;dim,not,beam,girder,cen,atb,hat

time for a little home work tonight.

Paul Caruthers
Back to top
Paul Caruthers
Guest





Posted: Thu Jan 20, 2005 1:35 am    Post subject: Re: autolisp Reply with quote

ahhh, that's it! awesome, I've used these before in a larger office, and
it great.
Thanks for your help. This is the finish product.
C^C-la;of;dim,not,beam,girder,cen,atb,hat,ctr,frame_notes;;
it works great!

Paul Caruthers

"Matt" <jeg2dsign@(removethis)earthlink.net> wrote in message
news:41eebd75_3@newsprd01...
Quote:
You should be close. Try to use 2 semicolons at the end to close the
command. BTW - simple layer/command macros can be pretty handy once you
get
the hang of them, even if you are on full cad (I unfortunately use LT).
I
have macros to turn groups of layers on/off , lock viewports, reload xrefs
plus all the handy ones that Chip Harper supplied on his site. Good luck.

Matt




"Paul Caruthers" <pcaruthers@lamontagnebuilders.com> wrote in message
news:41eeb251$1_2@newsprd01...
Thanks Matt, that's almost got it. I've got to hit the button twice, for
some reason, but it's a starting point.
this is what i've got working
C^C^_-la;of;dim,not,beam,girder,cen,atb,hat

time for a little home work tonight.

Paul Caruthers


Back to top
Matt
Guest





Posted: Thu Jan 20, 2005 1:36 am    Post subject: Re: autolisp Reply with quote

Glad to help.

Matt
Back to top
Cad Dept
Guest





Posted: Fri Jan 21, 2005 10:00 pm    Post subject: Re: autolisp Reply with quote

Use Layer Manager, lman at the command, its under the Express pull down,
layers

Paul Caruthers wrote:
Quote:
I must admit, I've never had to deal with this before....

i would like to set up a toolbar button that will turn off a predefined set
of layers. We don't give our sales office fully dimensioned drawings, we
turn off all the dims, notes, atb, .....so all the end up with is walls,
windows & doors, and room names.... any help would be appreciated.

I've considered just make up some new tabs and turning of these layers in
the viewports, but that would involve alot of work....a button would be
soooo much easier.

Paul caruthers

Back to top
Tom Smith
Guest





Posted: Fri Jan 21, 2005 10:07 pm    Post subject: Re: autolisp Reply with quote

Quote:
under the Express pull down

Per previous discussions, LMAN has been obviated by the layer state
functionality added to the basic layer manager. It's always preferable to
use a "core" functionality if it's available, rather than an add-on.

In any case, the OP has already got an answer he seems happy with. I also
think that using layer states would have been a good solution, but he seemed
to want a "button" to do the work.
Back to top
Dean Saadallah
Guest





Posted: Fri Jan 21, 2005 10:12 pm    Post subject: Re: autolisp Reply with quote

Maybe the OP's needs are static and not flexible to warrant learning about
Layer States.

--
Dean Saadallah
Add-on products for LT
http://www.pendean.com/lt
--
Back to top
Paul Caruthers
Guest





Posted: Fri Jan 21, 2005 11:24 pm    Post subject: Re: autolisp Reply with quote

Thanks for suggestions. I have explored and played with the "layer states"
process. If I'm doing it correctly ( I have saved the 2 states that I would
like) it is a several stroke process to flip between an "all layers on mode"
to "what I want". The tool bar button/macro is faster. and far easier to
explain to the other user in the office that is...barely cad literate....but
a good guy anyway.

Paul

"Dean Saadallah" <info from pendean> wrote in message
news:41f137ce_3@newsprd01...
Quote:
Maybe the OP's needs are static and not flexible to warrant learning about
Layer States.

--
Dean Saadallah
Add-on products for LT
http://www.pendean.com/lt
--

Back to top
Daniel J. Altamura, R.A.
Guest





Posted: Sat Jan 22, 2005 1:37 am    Post subject: Re: autolisp Reply with quote

You can restore layer states from a macro as well. Use -LAYER as follows:
^c^c_-layer;a;r;layerstatename;;;

--
Daniel J. Altamura, R.A.
Altamura Architectural Consulting
and SoftWorx, Autodesk Authorized Developer
--------------------------------------------------------------------


"Paul Caruthers" <pcaruthers@lamontagnebuilders.com> wrote in message
news:41f1486d$1_1@newsprd01...
Quote:
Thanks for suggestions. I have explored and played with the "layer
states" process. If I'm doing it correctly ( I have saved the 2 states
that I would like) it is a several stroke process to flip between an "all
layers on mode" to "what I want". The tool bar button/macro is faster.
and far easier to explain to the other user in the office that is...barely
cad literate....but a good guy anyway.

Paul
Back to top
Paul Caruthers
Guest





Posted: Sat Jan 22, 2005 2:36 am    Post subject: Re: autolisp Reply with quote

Duh, yeah I suppose you could....if I had thought of that...

Now, what would be the advantage to that. The end result is the same (at
least for this specific case), the unwanted layers are turned off. With the
toolbar it becomes a universal tool in any drawing. Doesn't the layer state
have to be imported to each drawing that it would be used? I have a library
of about 30 standard house plans (templates)and a half dozen condos, and
from these I produce about 120-150 set of plans in a given year. in
addition to the 4-5 new designs we create to introduce the next year. This
whole thing came about because, we supply the sales office with stripped
drawings of the standard plans (no notes, dims, any real info), and our
design center gets striped drawings for those houses that we actually
sell/build and are used to make notes on when the buyers come in to make
there interior selections....anyway, it was always a Pain in the Butt to go
in and turn off all those layers one at a time.

Paul Caruthers

"Daniel J. Altamura, R.A." <Altamura@frontiernet.net> wrote in message
news:41f16804$1_2@newsprd01...
Quote:
You can restore layer states from a macro as well. Use -LAYER as follows:
^c^c_-layer;a;r;layerstatename;;;

--
Daniel J. Altamura, R.A.
Altamura Architectural Consulting
and SoftWorx, Autodesk Authorized Developer
--------------------------------------------------------------------


"Paul Caruthers" <pcaruthers@lamontagnebuilders.com> wrote in message
news:41f1486d$1_1@newsprd01...
Thanks for suggestions. I have explored and played with the "layer
states" process. If I'm doing it correctly ( I have saved the 2 states
that I would like) it is a several stroke process to flip between an "all
layers on mode" to "what I want". The tool bar button/macro is faster.
and far easier to explain to the other user in the office that
is...barely cad literate....but a good guy anyway.

Paul

Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Drafting All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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
Powered by phpBB