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

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    1295×  
applies to: Inventor ·

See also:
Tip 12508:How to assign an expression (not value) to a user parameter with iLogic?
Tip 12392:Export unfolds of sheetmetal parts to DXF - parameters for iLogic and VBA
Tip 12046:Random shape and appearance of an Inventor part or assembly.
Tip 12024:How to create a custom iProperty or Parameter with iLogic?
Tip 11244:Labels with incrementing numbers - assembly with numbered labels for laser cutting.

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   

Track your time spent working on AutoCAD or Revit jobs - automatically with
CADstudio JobTime More info

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