ACAD Mechanical 2019: Manipulate overridden assembly properties with LISP/API/other...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
We have many AutoCAD Mechanical dwg files from times we didn't work with Productstream/Vault, and with items. In those old files, there often is some BOM- and assembly information, not on purpose. For example: from working with an different content center, or external drawings from customers.
We currently manage AutoCAD BOM's manually, in the Vault item, and therefore require AutoCAD to not add information hthere.
Now that we work with Vault Professional and with items, this information in the mechanical dwg is messing up our item administration: after using copy design on such a document and assigning it to an item, the dwg is oftenly associated with a wrong item, or with the wrong Associated File Link Type.
We've been able to write some code which removes the BOM information in most of the used dwg files. This LISP routine runs automatically before checkin of the file. (sometimes we still have to copy all geometry to a blank template.dwg to get rid of all legacy BOM data)
The issue I require some help with, is the following:
Many of these files have an overridden "Name" property, in the "Assembly properties", as can be seen on the attached screenshot. This override results in the wrong item being assocated with the file (when using "Assing/Update item..." in Vault).
- Would it be possible to manipulate this property through LISP, to always remove the override?