Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results forย 
Showย ย onlyย  | Search instead forย 
Did you mean:ย 

VBA iproperty formulas

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
623 Views, 2 Replies

VBA iproperty formulas

Firstly I'm not sure if this post should be listed in the customization group, but I remember Brian Ekins mentioning
something about these concatenations at AU2007

Is it possible to concatenate Inventor's iproperties using the API? What is the syntax for such concatenation?
ie Can you define a new Custom iproperty derived from a string and existing common/existing custom iproperties such as "description", "part number" "width" "length" is the same manner as you would do using the customising functions in the content center editor expression columns?

I have not seen any detailed documents describing how to concatenate iproperties generally..could someone please point me at some information regarding this too ๐Ÿ™‚ thanks
in advance
Allan
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous

Here's some example code that sets the formula for the Comment property to
be a combination of the Title and Subject properties. Notice that is uses
the Expression property of the Property object.

Public Sub SetPropExpression()
Dim oDoc As Document
Set oDoc = ThisApplication.ActiveDocument

Dim oSummaryInfo As PropertySet
Set oSummaryInfo = oDoc.PropertySets("Inventor Summary Information")

Dim oCommentsProp As Property
Set oCommentsProp = oSummaryInfo.Item("Comments")
oCommentsProp.Expression = "= and <SUBJECT>"<BR /> End Sub<BR /> -- <BR /> Brian Ekins<BR /> Autodesk Inventor API</SUBJECT>
Message 3 of 3
Anonymous
in reply to: Anonymous

Brian,
Thank you that is the code example I was looking for.

I have looked through the Inventor discussion groups to see if I can find a more detailed explanation of the concatenation of iproperties generally.Previously MDT allowed quite a range of manipulation of formula (BOM table)that Inventor doesn't seem to offer.
Would you have any information that describes the syntax for the formulas from a non-programming persective? The help is seems thin on the subject.
Allan

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report