Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm currently trying to automate a way of including only the User Parameters in a derived part.
oDoc = ThisApplication.ActiveDocument
If oDoc.ComponentDefinition.ReferenceComponents.DerivedPartComponents.Count > 0
Dim oDerComp As DerivedPartComponent = oDoc.ComponentDefinition.ReferenceComponents.DerivedPartComponents(1)
Dim oDerDef As DerivedPartDefinition = oDerComp.Definition
oDerDef.IncludeAllParameters = True
oDerDef.UseColorOverridesFromSource = False
oDerComp.Definition = oDerDef
The above code almost works as intended, however it includes all parameters in the Derived Part (due to the line oDerDef.IncludeAllParameters).
Is there a way to include only the User Parameters?
Solved! Go to Solution.