CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products []
Cesky English Deutsch
 Visitors: 5172 

CAD tip CAD tip # 7959:

Question CAD 
 %  platform  category 
Q - question

How to add layer description in AutoLISP?

A - answer You can modify layer descriptions (comments) with VisualLISP.

First make sure the COM support is loaded:

Then use the following code (example) to add/change the description for the layer named "Lay1":
(vla-put-description (vlax-ename->vla-object (tblobjname "LAYER" "Lay1")) "My description for Lay1")
You can use this code in your own LISP routines, scripts or menu macros.
100% *  CAD 
7.5.2011    5729×  
Comments   Tell a friend
applies to: AutoCAD ·

See also:
Tip 11492:Adding selected numbers in drawing texts - counting numbers (GrSelNum).
Tip 11054:Difference volume (3D solid) between two TIN surfaces (sets of coordinates)
Tip 10237:Arc bridges (gaps) in line intersections.
Tip 10071:How to recolor layers from ACI to truecolor?
Tip 10015:How to select and modify objects in all layouts of the DWG?

Back   All CAD Tips All CAD tips&tricks

Direct editing of any 3D model in AutoCAD or Inventor. « | » AutoCAD 2012: Generate 2D drawing views from 3D models.

Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   

Track your time spent working on AutoCAD or Revit jobs - automatically with
CADstudio JobTime More info

Please use these tips at your own risk.
CAD Studio (Xanadu) is not responsible for possible problems that may occur as a result of using any of these tips.