Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
theo.bot
in reply to: Holzethekid

Within the Modeldimensiondefinition you can find the promoted parameter. But for some reason i can't get the parameter. It results in a "not implemented" message. Maybe someone else knows how to deal with this.

Dim oDoc As PartDocument
oDoc = ThisApplication.ActiveDocument
    
Dim oDef As PartComponentDefinition
oDef = oDoc.ComponentDefinition

Dim oModelDim As ModelDimension

For Each oModelDim In oDef.ModelAnnotations.ModelDimensions
Dim oModelDef As ModelDimensionDefinition
Dim oPara As Inventor.Parameter
oModelDef = oModelDim.Definition
oPara = oModelDef.PromoteParameter
Logger.Info(oPara.Name)
Next

 

theobot_0-1635756635702.png