Prod.: Engine, ver.: 6010, ID: 60000358, Wish : Actual dimension's text in vdDimension Object

Wish : Actual dimension's text in vdDimension Object

Article60000358
TypeWish
ProductEngine
Version6010
Date Added12/19/2007
FixedYes [12/20/2007]
Submitted byPaul Sajecki
Keywords

Subject

Actual dimension's text in vdDimension Object

Summary

Exported functions for vdDimension object to obtain the measurement and text displayed.

Solution

The returned string is the calculated string from us that is going to be displayed if the dimension is updated.
string
textformatted = dims.GetdimDefaultText();

The returned string is the string contained in the dimension's block or the above if none vdText or vdMtext string exists in the dimension's block. This function's returned string is not always the displayed text since a dimension's block may contain a lot of objects and many texts.This method is NEW
string textdisplayed = dims.GetDisplayedText();     

This is the length of the dimension in drawing units.
double len = dims.DimLength;

This is a NEW property that is used in order to set the measurement of the dimension. Note that it's default initial value is 0.0 or equal to DimLength. It is used also in order to read group code 42 of DXF/DWG Files. Any update to the dimension will cause the recalculation of this property to a value equal to DimLength.
public double Measurement {get set}