03-13-2024
12:07 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
03-13-2024
12:07 PM
Hi @tgregory3G7FA. If you really want to save a value within the document, instead of externally, then there are 3 main places to save something like that. In a UserParameter, in a custom iProperty, or in a document level Attribute. The iProperty route is likely the quickest and simplest, but it would be visible in the iProperties dialog, on the Custom tab. The Attribute route would be the most complicated (but not that bad), and would also be the only truly out of sight location, because there is no user interface way to access them (only by code).
oSet = ThisDoc.Document.AttributeSets.Add("SetName")
oAtt = oSet.Add("Name", ValueTypeEnum.kStringType, "Your Value Here")
Wesley Crihfield
(Not an Autodesk Employee)