Share

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 Read-only property that returns the geometry that defines the direction the linear dimension aligns to.
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 Gets and sets the ArrowheadsInside setting.
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 Gets and sets whether the first extension line is visible.
ExtensionLineTwo Property that returns the second extension line of the dimension.
ExtensionLineTwoVisible Gets and sets whether the second extension line is visible.
FirstArrowheadInside Read-write property that gets and sets whether the first arrowhead is inside or outside.
FirstArrowheadType Read-write property that gets and sets the type of the first arrowhead.
FullDimensionLine Gets and sets whether the full dimension line should be displayed for linear diametric dimensions.
GeneralDimensionType Returns an enum indicating the type of general dimension.
HideSecondArrowhead Gets and sets whether hide the second arrowhead of the dimension.
HideValue Gets and sets the HideValue setting.
IntentOne Gets the sets first geometry associated with the dimension.
IntentThree Gets the sets the third geometry associated with the dimension.
IntentTwo Gets the sets second geometry associated with the dimension. This may return Nothing in some cases where a single geometry was used for the dimension creation.
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 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.
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 Read-write property that gets and sets whether the second arrowhead is inside or outside.
SecondArrowheadPosition Gets and sets the position of the second arrowhead.
SecondArrowheadType Read-write property that gets and sets the type of the second arrowhead.
ShowLeader Gets and sets whether to display a leader line for the dimension text.
Style Gets and sets the DimensionStyle associated with the dimension.
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.
VirtualArcPosition Gets and sets the geometry that defines the position of the virtual arc.

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

Was this information helpful?