Print Page | Close Window

linking a command to a layer

Printed From: CAD Forum
Category: EN
Forum Name: CAD - general
Forum Description: General discussion about CAD, formats, standards, management, licensing, networking, harware, other CAD applications
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=7951
Printed Date: 09.Jun.2026 at 11:27


Topic: linking a command to a layer
Posted By: rjshmitty
Subject: linking a command to a layer
Date 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



Replies:
Posted By: heinsite
Date 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.


-------------
Dave Hein, P.E.
Hawaii District Engineer
Kona International Airport
AutoCAD Certified Professional
Autodesk Expert Elite


Posted By: rjshmitty
Date Posted: 09.Jun.2012 at 00:11

Sounds good.  I will try that asap!

Thanks!


-------------
Ryan


Posted By: rjshmitty
Date 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


Posted By: John Connor
Date 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>>




Print Page | Close Window