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.097.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 ClosedCreate New Layer w/ modifiers

 Post Reply Post Reply
Author
CarlB View Drop Down
Senior Member
Senior Member


Joined: 16.Oct.2009
Location: United States
Status: Offline
Points: 321
Direct Link To This Post Topic: Create New Layer w/ modifiers
    Posted: 31.Jan.2011 at 03:11
It's no more difficult to allow user to decide after picking.
 
(setq PickItem (car (entsel "\nPick object for new layer: ")))
(setq ObjLayer (cdr (assoc 8 (entget pickItem))))
(setq ObjType (cdr (assoc 0 (entget pickItem))))
(princ (strcat ObjLayer is layer name of " ObjType " selected"))
(initget "N D V")
(Setq LyrSuffix (getkword "\nEnter suffix type [N-PKG-1/D-PKG1/V-PKG-1]:"))
..you can take it from here...:)
 
Back to Top
kameron1967 View Drop Down
Groupie
Groupie


Joined: 30.Jan.2011
Location: United States
Using: autocad 2018
Status: Offline
Points: 29
Direct Link To This Post Posted: 30.Jan.2011 at 18:13
Hi guys,
 
I wonder if you could help me.  I wanted to create options to modify an existing layer by creating new layers from whichever item I choose by adding one of these modifiers -N-PKG1 or -D-PKG1 or -V-PKG1 when creating a new layer.  So if an entity selected is on a layer called A-ANNO, I would like the option to choose letters N or D or V to decide which modifier to create from existing layer A-ANNO.  So if I choose N, it will create a new layer called A-ANNO-N-PKG1.
 
I'm not sure what the best approach is.  The easiest option would be to first choose either A or D or V before selecting an entity's layer and make a new layer.  A more sophisticated option would be to choose first, then decide on the modifier.  If anyone would like to guide me through the process, I sure would really appreciate it.  Thanks, again! Smile
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,055 seconds.