CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
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 CAD tip # 12508:

Question

CAD 
 %  platform  category 
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
100% *CAD
13.2.2020    16515×  
applies to: Inventor ·

See also:
Tip 14200:How can I use multiple title blocks in an Inventor drawing?
Tip 13911:How to print all sheets at once from Inventor?
Tip 13852:How to bulk-update all model parameters?
Tip 13836:How to reset view numbering in Inventor?
Tip 13744:Simple password protection of Inventor documents (iLogic).


Back    All CAD Tips



Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD: 
OS: 
Categ: 
Text:
 FAQ
  



Featuring:
Export 3D VRML scenes from AutoCAD and Inventor
VRMLout More info


Please use these tips at your own risk.
ARKANCE is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist