CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 7027
Plex.Earth connects AutoCAD and Google Earth

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:

(vl-load-com)
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.
ACAD
100% *  CAD 
7.5.2011    11389×  
Prices - CAD eShop:
applies to: AutoCAD ·

See also:
Tip 13938:ModDXF - utility for bulk modification/display of internal DXF properties in DWG entities.
Tip 13878:SelectSimilar - extended selections for AutoCAD, incl. LT and Web versions
Tip 13858:Is there also a SETBYBLOCK command?
Tip 13855:DBXscanLayers and DBXscanBlocks - bulk report content of DWG files in a folder.
Tip 13822:Fast layer visibility toggle ON/OFF.


Back   All CAD Tips



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   



Featuring:
Save your floating licenses (NLS) consumed by inactive users - free unused licenses with
LogOff 2006 More info


Please use these tips at your own risk.
Arkance Systems is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist