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: 4533

CAD tip CAD tip # 13197:

   
Question CAD 
 %  platform  category 
Q - question

How to transfer a model or sketch parameter to iProperties?

A - answer In the dialog Parameters, at my new custom parameter (from a sketch), the option for exporting it as external is missing - how to get it now to the document's iProperties?

Custom parameter

The solution is simple - with a single line iLogic macro you can copy the value of your custom parameter Cislo_znacky (tag number) to a custom property:

iProperties.Value("Custom", "Cislo_znacky") = Cislo_znacky

And the resulting iProperty value:

Then run this iLogic rule automatically at the appropriate time (on an event), e.g. before saving.

NOTE: you can also nest the command into a "try-catch" construction to avoid any errors

Inventor
100% *  CAD 
22.1.2022    687×  
Prices - CAD eShop:
applies to: Inventor ·

See also:
Tip 12508:How to assign an expression (not value) to a user parameter with iLogic?
Tip 12462:Mass- (table-) rename parameters in Inventor.
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   



Featuring:
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.
TOPlist