Over 1.116.000 registered users (EN+CZ).
AutoCAD tips, Inventor tips, Revit tips, Civil tips, Fusion tips.
The new Beam calculator, Spirograph generator and Regression curves in the Converters section.
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
17143×
this tip shared by ARKANCE experts applies to: Inventor ·
![CAD Forum - ARKANCE Community - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]](../common/arkance_186.png)

