CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products []
CZ | EN | DE
Login or
  Visitors: 4260
Plex.Earth connects AutoCAD and Google Earth

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    2108×  
Prices - CAD eShop:
applies to: Inventor ·

See also:
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?
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?

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   

Use Google Earth images in your AutoCAD projects with the Plex.Earth 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.