Share

DrawingDimension Object


Description

The DrawingDimension object is the base class for all dimensions placed on a sheet.

Methods

Name Description
Delete Method that deletes the DrawingDimension.
GetInspectionDimensionData Method that returns the data associated with an inspection dimension. This method returns an error if the IsInspectionDimension property returns False.
GetReferenceKey Method that generates and returns the reference key for this entity.
SetInspectionDimensionData Method that sets the data associated with an inspection dimension. This method automatically sets the IsInspectionDimension property to True, if it isn't already.

Properties

Name Description
Application Returns the top-level parent application object. When used the context of Inventor, an Application object is returned. When used in the context of Apprentice, an ApprenticeServer object is returned.
Attached Indicates whether this dimension is attached to anything. If not, it is considered orphaned and can be removed.
AttributeSets Property that returns the AttributeSets collection object associated with this object.
DimensionLine Property that returns the dimension line geometry of the dimension.
HideValue Gets and sets the HideValue setting.
IsInspectionDimension Gets and sets whether this is an inspection dimension.
Layer Gets and sets the layer applied to this dimension.
ModelValue Property that gets the dimension value as defined in the model or as measured in the drawing.
ModelValueOverridden Read-write property that gets and sets whether the model value is overridden for the dimension.
OverrideModelValue Gets and sets the NominalValue setting.
Parent Property that returns the parent sheet of the object.
Precision Gets and sets the Precision setting.
Text Gets and sets the DimensionText setting.
Tolerance Property that returns the Tolerance object associated with this dimension.
TolerancePrecision Gets and sets the precision of the tolerance text for the dimension.
Type Returns an ObjectTypeEnum indicating this object's type.

Accessed From

DimensionText.Parent, DrawingDimensions.Item

Derived Classes

GeneralDimension, OrdinateDimension

Samples

Name Description
Center Dimension Text This sample demonstrates how to center the text of all dimensions on the active sheet in a drawing.
Aligning drawing dimensions This sample demonstrates aligning the selected drawing dimensions along a horizontal or vertical axis.

Version

Introduced in version 9

Was this information helpful?