CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 6683

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)
  Try
    Parameter.Param(dParams(i, 0)).Name = dParams(i, 1)
  Catch  
  End Try
Next
Inventor
100% *  CAD 
7.1.2020    5620×  
Prices - CAD eShop:
applies to: Inventor ·

See also:
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).
Tip 13197:How to transfer a model or sketch parameter to iProperties?


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   



Featuring:
Add .CIT raster format support to AutoCAD and Map and Civil 3D
CITin 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.
TOPlist