AutoCAD P&ID / Plant3D - Accessing Project & Document Custom Properties
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
In AutoCAD P&ID/Plant3D, the Project Setup, General Settings you can create both Custom Categories & Custom Properties under Project Details (for Project level custom properties) and Drawing Properties (for drawing/sheet level custom properties.)
The problem is, Autodesk has not provided the ability to set a default value for Drawing Properties, so all custom drawing properties are created as Null. When these properties are inserted into a sheet as a Field (Insert->Field->CurrentDWGCustom) they then display as ####, which is undesirable. Some of the fields will be normally null (like parts of the revision history.) What I would like to do is create a LISP command that loops through my custom properties, and if the value is null, then insert a non-printing character (ALT+0160). Every time I create a new sheet from template, I can execute the command to set default values.
I cannot seem to find any reference information / examples of how to access these properties using LISP. Note that this is AutoCAD P&ID/Plant3D and creating these properties does not make them available in the SummaryInfo object.