Dimension value

Dimension value

Anonymous
Not applicable
1,289 Views
5 Replies
Message 1 of 6

Dimension value

Anonymous
Not applicable

I need in VB.NEt to copy the dimension text to a variable. I have a dimension that display "22" as value, but when I use the .measurement the value is "21.223233". There is a way to obtain the displaied value?

0 Likes
1,290 Views
5 Replies
Replies (5)
Message 2 of 6

Paulio
Advocate
Advocate

I think you're looking for .DimensionText

0 Likes
Message 3 of 6

Anonymous
Not applicable

thank you,

I tried DIMENSIONTEXT and work if I have a dimension with text override.

If the dimension text is not override the result is an empty string so I use the measurement but the result is not formatted as displaied.

0 Likes
Message 4 of 6

Paulio
Advocate
Advocate

Oh I see. Your dimension style has a precision set for the primary units which is rounding the measurement.

I can't see anything that gives you the rounded figure. I guess you could get the number of decimal places from the .dimdec property then format the .measurement value to the same precision...

 

0 Likes
Message 5 of 6

Anonymous
Not applicable

You can call the Dimension's FormatMeasurement() method and pass it the values

of the Measurement and DimensionText properties.

0 Likes
Message 6 of 6

Anonymous
Not applicable

Thank you...I resolved it

Why not implement a function that read the exactly value displaied?

0 Likes