CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE

CAD tip CAD tip # 10266:

Question

CAD 
 %  platform  category 
A
The property called "Standard" is a standard iProperty. But it is not accessible through the Properties dialog. If you need to edit it directly, you can use the following VBA macro:
Sub SetStandard()
    Dim oProp As Inventor.Property
    Set oProp = ThisApplication.ActiveDocument.PropertySets("{32853F0F-3444-11D1-9E93-0060B03C1CA6}")("Standard")
    oProp.Value = InputBox("Enter the value of the new standard", , oProp.Value)
End Sub

Copy this code to your Inventor VBA project and run the macro. A window with the current value of the Standard of the active document will be displayed; overwrite it and click OK to update the value in the document.

Inventor
100% *CAD
31.3.2015   13822×  
   
this tip shared by ARKANCE experts applies to: Inventor ·

See also:
Tip 14641:Automatic naming of Inventor drawing sheets according to the first model (iLogic).
Tip 14611:Contribution of individual features to the total mass of an Inventor part (iLogic).
Tip 14200:How can I use multiple title blocks in an Inventor drawing?
Tip 13884:How to send e-mails with an iLogic macro?
Tip 13211:Automatic numbering/renaming of multi-volume bodies in a part.


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
  



Featuring:
Revit plugins for automating data management, opening creation for clashes, and documentation Be.Smart Core Collection More info


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