Over 1.101.000 registered users (EN+CZ).
AutoCAD tips, Inventor tips, Revit tips, Civil tips, Fusion tips.
Try the new precise Engineering calculator.
New AutoCAD 2026 commands and sys.variables and env.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
16680×
applies to: Inventor ·