TextBox from Definition to Result

TextBox from Definition to Result

Anonymous
Not applicable
412 Views
1 Reply
Message 1 of 2

TextBox from Definition to Result

Anonymous
Not applicable

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,

0 Likes
413 Views
1 Reply
Reply (1)
Message 2 of 2

Vladimir.Ananyev
Alumni
Alumni

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

0 Likes