CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
Over 1.096.000 registered users (EN+CZ). AutoCAD tips, Inventor tips, Revit tips. Try the new precise Engineering calculator and the updated Barcode generator. New AutoCAD 2026 commands and variables.
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

?
CAD discussions, advices, exchange of experience

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.
This is a peer-to-peer forum. The forum doesn't replace the official direct technical support provided by ARKANCE for its customers.
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: 640
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 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 2018
Status: Offline
Points: 7175
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 2015>>

Back to Top

Related CAD tips:


 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,195 seconds.