- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Actually, I see now that I should have changed a couple of the last lines in the code I posted, because they are not doing what you instructed. The way I posted it, it is setting the custom iProperty to that suffix only, and not the part number plus the suffix, then it is setting the suffix to the end of the regular part number. You wanted the regular part number to remain the same for each ModelState, and only the custom iProperty in each one to include the regular part number plus the suffix. To fix that, just change these two lines near the end:
oCProp.Value = sName
oPNProp.Value = sPN & sName
...like this:
oCProp.Value = sPN & sName
oPNProp.Value = sPN
My mistake.
But yes, your assembly's BOM can only show the contents of one ModelState at a time. Each ModelState is like its own separate Document. So a single file on disk can now have multiple Document definitions within it, with the introduction of ModelStates.
Wesley Crihfield
(Not an Autodesk Employee)