Over 1.096.000 registered users (EN+CZ).
AutoCAD tips, Inventor tips, Revit tips.
Try the new precise Engineering calculator and the updated Barcode generator.
New AutoCAD 2026 commands and variables.
CAD tip # 12508:
Question
A
How can I use an iLogic code (rule) to assign (fill) a reference of another parameter or even a full expression to a given user parameter in an IPT model (part)?
You can use the property .Expression of the object Parameter.
See an example:
Dim part As PartDocument = ThisDoc.Document 'MyParam and MyValue are names of existing parameters part.ComponentDefinition.Parameters.UserParameters("MyParam").Expression = "floor(MyValue / 1 mm) * 1 mm"
Inventor


13.2.2020
16515×
applies to: Inventor ·