- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've been looking at this thread [ https://forums.autodesk.com/t5/inventor-customization/document-settings-with-rule-form/m-p/4332439#M... ], with a view to creating exactly the same function, but I can't get it to work at all.
The adding of a multi-value user parameter is ok. The bit that is foxing me is the code to read the value set by that user parameter & them to apply it to the document (part & assembly).
Looking at an external iLogic for a part (.ipt), this is the code that is supposed to read the user parameter value (named "xBOM_Structure"):
' Get part component definition
Dim oPartCompDef As PartComponentDefinition = ThisDoc.Document.ComponentDefinition
Select Case xBOM_Structure
Case "Normal"
oPartCompDef.BOMStructure = "51970"
Case "Phantom"
oPartCompDef.BOMStructure = "51971"
Case "Reference"
oPartCompDef.BOMStructure = "51972"
Case "Purchased"
oPartCompDef.BOMStructure = "51973"
Case "Inseparable"
oPartCompDef.BOMStructure = "51974"
End Select
I notice on the original thread referenced above, there were some further, unresolved issues. Does this suggest that I wan't to do can't actually be done?
Solved! Go to Solution.