AutoCAD Architecture Forum
Welcome to Autodesk’s AutoCAD Architecture Forums. Share your knowledge, ask questions, and explore popular AutoCAD Architecture topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Layer Help

5 REPLIES 5
Reply
Message 1 of 6
Anonymous
406 Views, 5 Replies

Layer Help

Hi all,
I did what I'm going to explain a long time ago, but for the life of me,
I've forgotten how. OK, I want to have the status of layer to reflect the
floor that I'm working on. This is no problem, the problem is changing
between different floor and automatically switching between the different
layers. I.e., A-Wall-Flr1 and A-Wall-Flr2.
--
Nick
5 REPLIES 5
Message 2 of 6
David_W_Koch
in reply to: Anonymous

Assuming your Layer Standard has a four-character Status field, you can either set up a separate Layer Key Style for each floor level and set the appropriate Status field value in the Layer Key Style and then switch to the proper Layer Key Style for the floor on which you are working -OR- set a Layer Key Override for the Status field when working on a level other than the one specified by the Status field in the Layer Key Style.

The latter is less work to set up and to maintain; both require you to be aware when you are changing to a different level and reset something (Layer Key Style or Layer Key Override). Given that, the Layer Key Override is probably the way to go.

David Koch
AutoCAD Architecture and Revit User
Blog | LinkedIn
EESignature

Message 3 of 6
Anonymous
in reply to: Anonymous

Hi Nick

I have done this and now work with a one file approach for 2 storey
construction.
I've attached the lisp I use to accomplish this and it is a WIP so some of
the items towards the end don't work!
(So it's untidy)
But it works enough for me to do what I need to do - design and estimating
drawings (I don't do CD's but I am intending it to work for CD's as well).

I use a layer system that starts with the level 1-Wall etc as I don't need
the A. This allows me to sort layers based on level or other (Site-,
Strata-, 3D- etc.). I think you can do the same with your setup using the
same process, i.e. using the layer command _layer and using widlcards
*-*-FL1 or even A-*-FL1 to sort layers.

I have also incorporated a variable to change the Elevation i.e. to the 1st
or 2nd floor level.
Floor Level 2 is set under the System Variable USERI2 (thanks to David's
instructions) and is now saved in the drawing.
Osnapz = 1 ensures a wall drawn on level 2 is at the correct height.

Also to control the Layer Key override (AecSetLayerKeyOverride "Level"
"1"). You would need to reword it to control your LayerKey for your 'level'
override. This actually answers your question! 🙂 You can do this
manually by clicking down in the bottom RHS for the Layer Key override
button.

My lisp skills are very rudimentary but already this system works very well
(except sometimes a door/ window can't be inserted in the correct place
unless z=0 ie. for the 2nd floor - I noticed the same issue with VisionRez
demo so they may know what's causing it and how to resolve it - I generally
have to insert, right click on it whereever and 'Anchor to' to get it to the
right place). Commands L1 and L2 work. L12 and L21 just turn on and
fadelock the under/overlying wall.
The other commands don't work and I haven't yet had time to figure out why.
Probably some syntax error.

The stuff at the beginning loads the files necessary for the layerkey
overrides to work -aeclayermanagerui.arx, AecLMgrLisp.arx and I pinched them
from another lisp of 'Buzz' - very clever lisper who created a whole complex
system including writing to the Reg. I wanted to use my own layering system
though.

Of course there is also a layer key style that accompanies this but
hopefully I've put something here to help you.






"Nick Haury" wrote in message
news:6311405@discussion.autodesk.com...
Hi all,
I did what I'm going to explain a long time ago, but for the life of me,
I've forgotten how. OK, I want to have the status of layer to reflect the
floor that I'm working on. This is no problem, the problem is changing
between different floor and automatically switching between the different
layers. I.e., A-Wall-Flr1 and A-Wall-Flr2.
--
Nick
Message 4 of 6
Anonymous
in reply to: Anonymous

This I know, I've set up LKO for FLR0, FLR1, FLR2. But how do I switch
between them? Do I go to the layers properties and turn off all layers then
switch to the status I want, ie, FLR1, then turn on all of those layers
layers, or is there a easier way to switch between them?
--
Nick

"David_W._Koch" wrote in message news:6311413@discussion.autodesk.com...
> Assuming your Layer Standard has a four-character Status field, you can
> either set up a separate Layer Key Style for each floor level and set the
> appropriate Status field value in the Layer Key Style and then switch to
> the proper Layer Key Style for the floor on which you are working -OR- set
> a Layer Key Override for the Status field when working on a level other
> than the one specified by the Status field in the Layer Key Style.
>
> The latter is less work to set up and to maintain; both require you to be
> aware when you are changing to a different level and reset something
> (Layer Key Style or Layer Key Override). Given that, the Layer Key
> Override is probably the way to go.
Message 5 of 6
Anonymous
in reply to: Anonymous

Hopefully you can read my other reply (or you think me mad) which offers
some simple lisp to achieve this in an automatic fashion.
Do you know lisp? Open the file and you can see it's quite simple and you
could try to adjust it to suit your layer key styles.

One thing I failed to mention is that you also need to add a display rep
copy for each Rep type you are going to use for each level.
This was very simple to do. e.g. I use Presentation and I went into the
Display Manager, to configurations and copy pasted the presentation DR.
Natural rename is Presentation (2) which is works great (level 2). Then
simply go into this and change the cutplane adding the total of FL to FL
from 1 to 2 levels. Everything else can remain the same.
When you issue the F1 or F2 command, the option will pop up to ask which DR
you want. Unfortunately the commands are just not available to do this
automatically (i.e. command line) that I know of.
For my purposes, I only need the Presentation, medium detail (CD's) and
Reflected (electrical layouts) to be copied as such but you may need other
(structural?). I try to stay with OOTB schemes.
The other item that needs to be changed is for your std wall style to have
it's cutplane overridden to be as per style so that when on level 2 it will
display correctly (i.e. override the global cutplane). I do this once in my
std styles as all other styles are have no style overrides (except special
styles like cabinets etc which have their own cutplanes overrides). All
this should be in your template file or would need to be added/changed to
each file. (You can import Display Reps by opening a drawing and
drag/dropping).

I created an undercroft house just before the break and was dissapointed
that ACA cutplanes can't go into the negative so I had to lift my whole
house so the undercroft was level 1 instead of 'z'! But after lifting
everything it works fine. About to add a loft as level 3.

I have some other ideas but haven't fully expored them. You can use layer
snapshots but they won't add a newly created layer so I'm not sure how
they'd work. Also Layer states which are I think the newer version thru the
layer manager. You can add wild cards here ie. the A-*-FL2 etc but I've
not been able to figure it out.

Altogether I would not think it very successful if you had to do all the
changes manually thru the layer manager like you suggest. I can send a file
to you personally if you'd like a quick look at how well this all works.
I've been wanting to do it this way for years and am excited about how
easy/simple in the end it was to implement.

HTH's
Cheers



"Nick Haury" wrote in message
news:6311416@discussion.autodesk.com...
This I know, I've set up LKO for FLR0, FLR1, FLR2. But how do I switch
between them? Do I go to the layers properties and turn off all layers then
switch to the status I want, ie, FLR1, then turn on all of those layers
layers, or is there a easier way to switch between them?
--
Nick

"David_W._Koch" wrote in message news:6311413@discussion.autodesk.com...
> Assuming your Layer Standard has a four-character Status field, you can
> either set up a separate Layer Key Style for each floor level and set the
> appropriate Status field value in the Layer Key Style and then switch to
> the proper Layer Key Style for the floor on which you are working -OR- set
> a Layer Key Override for the Status field when working on a level other
> than the one specified by the Status field in the Layer Key Style.
>
> The latter is less work to set up and to maintain; both require you to be
> aware when you are changing to a different level and reset something
> (Layer Key Style or Layer Key Override). Given that, the Layer Key
> Override is probably the way to go.
Message 6 of 6
Anonymous
in reply to: Anonymous

Hey Nathan,
Can you email me you're telephone number, I'll give you a call.
nah@truevine.net
--
Nick

"Nathan" wrote in message
news:6311430@discussion.autodesk.com...
> Hi Nick
>
> I have done this and now work with a one file approach for 2 storey
> construction.
> I've attached the lisp I use to accomplish this and it is a WIP so some of
> the items towards the end don't work!
> (So it's untidy)
> But it works enough for me to do what I need to do - design and estimating
> drawings (I don't do CD's but I am intending it to work for CD's as well).
>
> I use a layer system that starts with the level 1-Wall etc as I don't need
> the A. This allows me to sort layers based on level or other (Site-,
> Strata-, 3D- etc.). I think you can do the same with your setup using the
> same process, i.e. using the layer command _layer and using widlcards
> *-*-FL1 or even A-*-FL1 to sort layers.
>
> I have also incorporated a variable to change the Elevation i.e. to the
> 1st or 2nd floor level.
> Floor Level 2 is set under the System Variable USERI2 (thanks to David's
> instructions) and is now saved in the drawing.
> Osnapz = 1 ensures a wall drawn on level 2 is at the correct height.
>
> Also to control the Layer Key override (AecSetLayerKeyOverride "Level"
> "1"). You would need to reword it to control your LayerKey for your
> 'level' override. This actually answers your question! 🙂 You can do
> this manually by clicking down in the bottom RHS for the Layer Key
> override button.
>
> My lisp skills are very rudimentary but already this system works very
> well (except sometimes a door/ window can't be inserted in the correct
> place unless z=0 ie. for the 2nd floor - I noticed the same issue with
> VisionRez demo so they may know what's causing it and how to resolve it -
> I generally have to insert, right click on it whereever and 'Anchor to' to
> get it to the right place). Commands L1 and L2 work. L12 and L21 just
> turn on and fadelock the under/overlying wall.
> The other commands don't work and I haven't yet had time to figure out
> why. Probably some syntax error.
>
> The stuff at the beginning loads the files necessary for the layerkey
> overrides to work -aeclayermanagerui.arx, AecLMgrLisp.arx and I pinched
> them from another lisp of 'Buzz' - very clever lisper who created a whole
> complex system including writing to the Reg. I wanted to use my own
> layering system though.
>
> Of course there is also a layer key style that accompanies this but
> hopefully I've put something here to help you.
>
>
>
>
>
>
> "Nick Haury" wrote in message
> news:6311405@discussion.autodesk.com...
> Hi all,
> I did what I'm going to explain a long time ago, but for the life of me,
> I've forgotten how. OK, I want to have the status of layer to reflect the
> floor that I'm working on. This is no problem, the problem is changing
> between different floor and automatically switching between the different
> layers. I.e., A-Wall-Flr1 and A-Wall-Flr2.
> --
> Nick
>

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost