Autodesk Inventor Services & Support

List of Inventor pre-defined iProperty names

Published date: 2009-Oct-26
ID: TS14053666

Applies to:
AutoCAD® Inventor® Professional Suite 2010
Autodesk® Inventor™ Professional 2009
AutoCAD® Inventor® Suite 2010
Autodesk® Inventor® Series 2009

Issue:

In Inventor you can specify new custom iProperties by referring to existing Inventor properties. For example:

=<Flat pattern area>

=<Volume>

=<Mass>

Not all of these properties are exposed in the user interface. You want to know the list of all these hidden properties that exist in the current Inventor document.

Solution:

You can list the document properties by using a macro and follow this procedure

  • Open an Inventor part. For example a sheet metal part of which you want to find out if it contains any special properties.
  • Start the Visual Basic Editor
  • Select Module 1 of the current document or insert a new module
  • Paste following code in the module

    Sub PropertyNameList()
        Dim oProp As Property, i As Integer, j As Integer
        For j = 3 To ThisApplication.ActiveDocument.PropertySets.Count
            For i = 1 To ThisApplication.ActiveDocument.PropertySets(j).Count
                Set oProp = ThisApplication.ActiveDocument.PropertySets(j).Item(i)
           
                Debug.Print oProp.Name
               
            Next
        Next
    End Sub

  • Run the code
  • The properties will be listed in the Immediate window
  • Please see attached image.


    Give us your feedback on this document:
     Resolved my issue.
     Helpful but incomplete.
     Difficult to find.
     Difficult to understand.
     Did not resolve my issue.
     Document contains broken links and references.
     No comment.
     

    AUTODESK DOES NOT GUARANTEE THAT YOU WILL BE ABLE TO SUCCESSFULLY DOWNLOAD OR IMPLEMENT ANY SERVICE PACK OR WORKAROUND, OR ANY OF THE TIPS, TRICKS, EXAMPLES OR SUGGESTIONS OUTLINED IN ANY AUTODESK PRODUCT SUPPORT TECHNICAL DOCUMENTS. TECHNICAL DOCUMENTS, SERVICE PACKS AND WORKAROUNDS ARE SUBJECT TO CHANGE WITHOUT NOTICE TO YOU. AUTODESK PROVIDES TECHNICAL DOCUMENTS, SERVICE PACKS AND WORKAROUNDS "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED, INCLUDING WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL AUTODESK OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF DATA, OR LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, THAT MAY OCCUR AS A RESULT OF IMPLEMENTING ANY SERVICE PACK OR WORKAROUND, OR ANY SUGGESTION OUTLINED IN ANY AUTODESK PRODUCT SUPPORT TECHNICAL DOCUMENT, EVEN IF AUTODESK OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.