CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products []
CZ | EN | DE
Login or
  Visitors: 6163

CAD tip CAD tip # 12462:

Question CAD 
 %  platform  category 
Q - question

Mass- (table-) rename parameters in Inventor.

A - answer With a simple iLogic code you can mass-rename a group of geometric parameters of your Inventor 3D model.

Create a new iLogic rule (macro) and adjust its table of old and new parameter names - dParams (no comma after the last line!):

'Rename parameters
'simple rename: Parameter.Param("oldname").Name = "newname"
Dim dParams(, ) As String
dParams = { _ 
            {"oldname","newname"}, _
            {"d2" ,"usrD2"}, _
            {"d4" ,"usrD4"}, _
            {"d10","usrD10"}, _
            {"d57","usrD57"} _    ' No comma on last entry
For i = LBound(dParams,1) To UBound(dParams,1)
    Parameter.Param(dParams(i, 0)).Name = dParams(i, 1)
  End Try
100% *  CAD 
7.1.2020    2418×  
Prices - CAD eShop:
applies to: Inventor ·

See also:
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).
Tip 13197:How to transfer a model or sketch parameter to iProperties?
Tip 12508:How to assign an expression (not value) to a user parameter with 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 glossary   

Increase your productivity with our set of BIM add-on functions for Autodesk Revit
CADstudio Revit Tools More info

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