CAD Forum - Database of tips, tricks and utilities for AutoCAD, Inventor and other Autodesk products [www.cadforum.cz]
Czech English Deutsch
Login/Register:
 Visitors: 2284 
RSS tips RSS channel - CAD tips
RSS discussion RSS channel - CAD discussion

Discussion Discussion forum

HelpCAD discussion

CAD Forum - Homepage CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.

Please abide by the rules of this forum.

How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic Closedlinking a command to a layer

 Post Reply Post Reply
Author
rjshmitty View Drop Down
Newbie
Newbie


Joined: 08.Jun.2012
Location: United States
Using: autocad2011, autocad2012
Status: Offline
Points: 3
Direct Link To This Post Topic: linking a command to a layer
    Posted: 08.Jun.2012 at 19:59
is there a way to make a layer automatically current with a specific command?  i.e. creating a viewport and having it automatically drawn in the viewport layer, or drawing a construction line and having it come in on its own layer
Ryan
Back to Top
heinsite View Drop Down
Senior Member
Senior Member


Joined: 05.Feb.2009
Location: United States
Using: AutoCAD 2014
Status: Offline
Points: 506
Direct Link To This Post Posted: 08.Jun.2012 at 23:49
Yes, sort of!  The trick is to place your object via a Tool Palette.  Objects placed on tool palettes can have their properties assigned to include an insertion layer.  And even if that layer does not already exist in the drawing it will be created when you insert one of those objects.
 
I do this all the time with many different types of objects created from tool palettes.  Insertion doesn't make the layer "current" but it does place the object on the layer you've previously specified without need for further modifications.
 
Dave.


Edited by heinsite - 09.Jun.2012 at 00:30
Dave Hein, P.E.
Hawaii District Engineer
Kona International Airport
AutoCAD 2013 Certified Professional
Autodesk Expert Elite
Back to Top
rjshmitty View Drop Down
Newbie
Newbie


Joined: 08.Jun.2012
Location: United States
Using: autocad2011, autocad2012
Status: Offline
Points: 3
Direct Link To This Post Posted: 09.Jun.2012 at 00:11

Sounds good.  I will try that asap!

Thanks!
Ryan
Back to Top
rjshmitty View Drop Down
Newbie
Newbie


Joined: 08.Jun.2012
Location: United States
Using: autocad2011, autocad2012
Status: Offline
Points: 3
Direct Link To This Post Posted: 09.Jun.2012 at 01:10
I was able to create a new tool palette and set a layer to a command, but I was disappointed to find out that the command alias won't work the same way.
Ryan
Back to Top
John Connor View Drop Down
Senior Member
Senior Member


Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2012
Status: Offline
Points: 2212
Direct Link To This Post Posted: 09.Jun.2012 at 13:03
You can't use a command alias you would have to use a macro or lisp routine.
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."
<<AutoCAD 2011>>
Back to Top

Related CAD tips:
Tip 8677:Associative DWG table of line length totals (by layer).
Tip 5754:How to color or suppress all Xref layers?
Tip 5749:Lost dialog - off screen.
Tip 5131:How to place dimensions or hatches automatically to preset layers?
Tip 4452:Compare AutoCAD and AutoCAD LT - what are the key differences?


 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 1,922 seconds.