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: 

TextBox from Definition to Result

1 REPLY 1
Reply
Message 1 of 2
JamieVJohnson2
313 Views, 1 Reply

TextBox from Definition to Result

I'm doing a fault check routine before batch plotting, and one of the issues is to make sure the TextBox's Property is showing the latest result.  So far I can get the actual text box I'm after, but I want to be able to see the evaluated text, not just the definition.

Values in Watch windows (VS 2012) display the definition of a property, but not the result:

Textbox.FormattedText "<PhysicalProperty PhysicalPropertyID='72449' Precision='0'>MASS</PhysicalProperty>" 

TextBox.Text "<MASS\P0;>"

 

Is there a way I can see the Result of that expression, from the current idw/dwg drawing document's 'about to print' point of view?

I'm determined to solve the 'N/A' issue with properties that change in the background.

 

(PS I am currently using the 2015 API)

 

Thank you,

jvj
1 REPLY 1
Message 2 of 2

iProperty object expose not only Expression contained in this property but also Value property that returns evaluated value.

If you use expression like  "<PhysicalProperty PhysicalPropertyID='72449' Precision='0'>MASS</PhysicalProperty>" in your own interface you should implement calculations by yourself.


cheers,


Vladimir Ananyev
Developer Technical Services
Autodesk Developer Network

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

Post to forums  

Autodesk Design & Make Report