60000358 Actual dimension's text in vdDimension Object

Article 60000358
Type Wish
Product Engine
Version 6010
Date Added 12/19/2007
Fixed (12/20/2007)
Submitted by Paul Sajecki

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}

Send comments on this topic.