automatically place objects on layers

automatically place objects on layers

Anonymous
Not applicable
1,839 Views
8 Replies
Message 1 of 9

automatically place objects on layers

Anonymous
Not applicable

Is there a way to automatically place objects on layers, for instance when i draw a construction line i would like to place it automatically on the layer "construction lines". This instead of changing the active layer all the time.

 

 

0 Likes
Accepted solutions (1)
1,840 Views
8 Replies
Replies (8)
Message 2 of 9

cadffm
Consultant
Consultant
Simple way:
create your Layer, draw a <whatever>
Drag&Drop the <whatever> to your own new Toolpalette (CTRL+3)

(Rightclick on tab, new palette..)

Only for Blocks it is special, for Blocks it is the same way, but you have to create a DWG as Sourcefile for all your toolpalette blocks. Add a Block from this file.
Or you can Drag&Drop a dwg to insert this file 'as Block'

Try it.

If you like own Buttons in Ribbon for example, you have to learn to create own cuix tabs panels and menumacros.

Sebastian

0 Likes
Message 3 of 9

pendean
Community Legend
Community Legend
Trhere are no"construction lines" objects in LT, do you mean DLINE command?

In LT, you can either create customize the code (and buttons) in CUI command for each object type not already addressed with commands like DIMLAYER and HPLAYER or hunt/pick your own predefined objects in ToolPalettes all day long. Which method do you want to invest in time and effort (and testing) to make it all happen?

Let us know.
0 Likes
Message 4 of 9

Anonymous
Not applicable

Thanks for your answer,

I use auto cad light 2018 for mac and i understand that works differently than the windows version.

I cannot drag and drop objects to the tools panel. 

0 Likes
Message 5 of 9

Anonymous
Not applicable

Also thanks for your answer,

I use autocad light for mac 2018.  With the CUI command i cannot enter any layer for a specific object. See the screenshot.

 

Schermafbeelding 2018-08-14 om 20.15.15.png

0 Likes
Message 6 of 9

cadffm
Consultant
Consultant
Accepted solution

"With the CUI command i cannot enter any layer for a specific object."

 

You can handle it with your menumacro "^C^C_XLINE....", but you have to learn how to customize own menus and tools.

Example:

Create a new "Command" with that macro (i can not help you with MAC, but i am sure the Help, will helps)

 

^C^C_-LAYER;_thaw;MyXLINElayer;_make;MyXLINElayer;;_XLINE

 

Sebastian

Message 7 of 9

Anonymous
Not applicable

P.S. Can i write a macro that will do the job?

0 Likes
Message 8 of 9

cadffm
Consultant
Consultant
See MY example above..
It changes the current layer and start command xline

Thats one possible way

Sebastian

0 Likes
Message 9 of 9

carolyn.fiorelli
Explorer
Explorer

I inserted your macro into the CUI macro field for 'Construction Line' and it works great, but it leaves me in MyXLINElayer.  Is there any way to revert to the previous layer before exiting the macro?