CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]
Cesky English Deutsch
Login/Register:
 Visitors: 3654 

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    860×  
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 All CAD tips&tricks



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:
Simply link AutoCAD LT blocks to Excel table data.
Excellink LT 2006 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.
TOPlist