LinearGeneralDimension Object

Derived from: GeneralDimension Object

Description

The LinearGeneralDimension object represents a linear general dimension placed on a sheet.

Methods

Name Description
CenterText Method that centers the dimension text on the dimension line.
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.
PromoteToSketch Method that copies the dimension to the underlying sketch. This method only works for dimensions associated with a draft view.
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.
ShowAllExtensionLines Method that un-hides all the extension lines associated with this dimension. If there are no hidden extension lines associated with this dimension, this method does nothing and returns a success.

Properties

Name Description
AlignmentGeometry
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.
ArrowheadsInside
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.
BaselineDimensionSet Property that returns the BaselineDimensionSet that owns this dimension.
ChainDimensionSet Property that returns the ChainDimensionSet that owns this dimension. This property returns nothing if this dimension is not a chain dimension set member. This can be checked using the IsChainSetMember property.
DimensionLine Property that returns the dimension line geometry of the dimension.
DimensionType Property that returns the dimension type. Possible values are kAlignedDimensionType, kHorizontalDimensionType, kVerticalDimensionType, kArcLengthDimensionType, kSymmetricDimensionType and kDiametricDimensionType.
ExtensionLineOne Property that returns the first extension line of the dimension.
ExtensionLineOneVisible
ExtensionLineTwo Property that returns the second extension line of the dimension.
ExtensionLineTwoVisible
FirstArrowheadInside
FirstArrowheadType
FullDimensionLine
GeneralDimensionType Returns an enum indicating the type of general dimension.
HideSecondArrowhead
HideValue
IntentOne
IntentThree
IntentTwo
IsBaselineSetMember Property that returns whether this dimension is a member of a baseline dimension set. If this property returns True, the BaselineDimensionSet object is returned by the BaselineDimensionSet property.
IsChainSetMember Property that returns whether this dimension is a member of a chain dimension set. If this property returns True, the ChainDimensionSet object is returned by the ChainDimensionSet property.
IsInspectionDimension
Layer
ModelValue Property that gets the dimension value as defined in the model or as measured in the drawing.
ModelValueOverridden
OverrideModelValue
Parent Property that returns the parent sheet of the object.
Precision
Retrieved Property that indicates whether the dimension was created as a result of retrieving it either from the model or a drawing view sketch. If True, the RetrievedFrom property returns the object that the dimension was retrieved from.
RetrievedFrom Property that returns the object that this dimension was retrieved from. Possible return objects include all sketch constraint objects that derive from DimensionConstraint and their proxies, FeatureDimension and FeatureDimensionProxy. The property returns Nothing if the Retrieved property returns False.
SecondArrowheadInside
SecondArrowheadPosition
SecondArrowheadType
ShowLeader
Style
Text
Tolerance Property that returns the Tolerance object associated with this dimension.
TolerancePrecision
Type Returns an ObjectTypeEnum indicating this object's type.
VirtualArcPosition

Accessed From

BaselineDimensionSet.AddMember, GeneralDimensions.AddArcLengthForeshortened, GeneralDimensions.AddLinear, GeneralDimensions.AddLinear2, GeneralDimensions.AddLinearForeshortened

Samples

Name Description
Center Dimension Text This sample demonstrates how to center the text of all dimensions on the active sheet in a drawing.
Add surface texture symbol to dimension This sample demonstrates the creation of a surface texture symbol attached to the extension line of a drawing dimension.

Version

Introduced in version 11