DimensionStyle Object

Derived from: Style Object

Description

The DimensionStyle object represents a dimension style in a drawing.

Methods

Name Description
ConvertToLocal Method that creates a local cached copy of a global style and returns the local style.
Copy Method that creates a new local Style object. The newly created style is returned.
Delete Method that deletes the Style/Layer/UnfoldMethod.
GetCustomLineType Method that returns information regarding the custom line type in use. The method returns a failure if the return value of the LineType property is not kCustomLineType.
GetReferenceKey Method that generates and returns the reference key for this entity.
SaveToGlobal Method that saves this style to the global repository. If a style with the same name is found in the repository, that style is updated.
SetCustomLineType Method that sets a custom line type to the style from the specified .lin file. The method automatically changes the value of LineType property to kCustomLineType.
UpdateFromGlobal Method that updates this style from the global repository.

Properties

Name Description
AlignedDimensionTextOrientation
AlternateDecimalMarkerType
AlternateDisplayFormat
AlternateDisplayUnitType
AlternateFractionalTextScale
AlternateIncludedZeroDisplay
AlternateLeadingZeroDisplay
AlternateLinearPrecision
AlternateLinearUnits
AlternateTrailingZeroDisplay
AngularArrowsInside
AngularFormatIsDecimalDegrees
AngularHideExtensionLineOne
AngularHideExtensionLineTwo
AngularLeadingZeroDisplay
AngularPrecision
AngularTextModifier
AngularTextOrientation
AngularTrailingZeroDisplay
AngularUseQuadrant
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.
ArrowheadHeight
ArrowheadSize
ArrowheadType
ArrowheadTypeForChainDimensions
BasicDimensionPrefixSuffixInside
BendNoteDualFormat
ChamferNoteDualFormat
Color
Comments
DecimalMarkerType
DiameterArrowsInside
DiameterDualDimensionLine
DiameterExternalTextOrientation
DiameterInternalTextOrientation
DiameterLeaderFromCenter
DiameterMultiLineTextOrientation Read-write property that gets and sets the position of multiple lines of text relative to the landing line in a diameter dimension. Valid values are kFirstLineCenteredOnLandingLine, kAllAboveLandingLine, kAllAboveLandingLineWithUnderline, kFirstLineAboveLandingLine, and kJISAlignment.
DiameterShowDiameterSymbol
DimensionDualFormat Read-write property that gets and sets the arrangement of the alternate dimension display for dimensions.
DisplayFormat
DisplayUnitType
Extension
FractionalTextScale
Gap
HoleNoteDualFormat Gets and sets the arrangement of the alternate dimension display for hole notes.
HorizontalDimensionTextOrientation Read-write property that gets and sets the orientation of the text in a horizontal dimension. Valid values are kParallelDimensionText and kInlineHorizontalText.
IncludedZeroDisplay
InternalName Property that returns the internal name of the style. The name is the internal English name of the standard style. This name will remain constant and is not affected by locale. This name is never displayed to the user. Note that this name is not guaranteed to be unique.
InUse Property that indicates if this style is in use.
LeaderStyle Property that gets and sets the leader style used for the dimension style.
LeadingZeroDisplay
LinearArrowsInside
LinearHideExtensionLineOne
LinearHideExtensionLineTwo
LinearMultiLineTextOrientation Read-write property that gets and sets the position of multiple lines of text relative to the landing line in a linear dimension. Valid values are kAllAboveLandingLine and kFirstLineAboveLandingLine.
LinearPrecision
LinearUnits
LineType
LineWeight
Name
OrdinateAlignment
OrdinateDimensionOriginArrowheadType
OrdinateHideOriginIndicator
OrdinateJoggingAllowed
OrdinatePositiveBothDirections
OrdinateShowDirection
OrdinateUseOriginIndicator
OriginOffset
Parent Property returning the parent of this object.
PartOffset
Prefix
PrefixAndSuffixOrder
PunchNoteDualFormat
RadialArrowsInside
RadialJoggedLeader
RadialLeaderFromCenter
RadialMultiLineTextOrientation
RadialTextOrientation
ShowBreakSymbol
ShowDimensionLine
Spacing
StyleLocation Property that returns the location of this style, i.e. local to the document, cached locally in the document, exists in the library. Styles that exist in the library cannot be edited.
StyleType Gets the type of the style.
Suffix
TextStyle
Tolerance Property that returns the Tolerance object. The Tolerance object contains methods and properties to query and modify tolerance types and values.
ToleranceAlternateIncludedZeroDisplay
ToleranceAlternateLeadingZeroDisplay
ToleranceAlternateTrailingZeroDisplay
ToleranceAlternateUnitPrecision
ToleranceAngularPrecision
ToleranceFontSize
ToleranceIncludedZeroDisplay
ToleranceJustification
ToleranceLeadingZeroDisplay
ToleranceLinearPrecision
ToleranceShowMinuteSecond
ToleranceTextStyle
ToleranceTrailingZeroDisplay
ToleranceZeroToleranceDisplay
TrailingZeroDisplay
Type Returns an ObjectTypeEnum indicating this object's type.
UpToDate Property that gets the up-to-date status of the style against the global repository.
VerticalDimensionTextOrientation

Accessed From

AngularGeneralDimension.Style, BaselineDimensionSet.Style, BendNote.DimensionStyle, ChainDimensionSet.Style, ChamferNote.DimensionStyle, DiameterGeneralDimension.Style, DimensionStylesEnumerator.Item, GeneralDimension.Style, HoleTag.DimensionStyle, HoleThreadNote.Style, LeaderNote.DimensionStyle, LinearGeneralDimension.Style, ObjectDefaultsStyle.AngularDimensionStyle, ObjectDefaultsStyle.BaselineDimensionStyle, ObjectDefaultsStyle.BendNoteStyle, ObjectDefaultsStyle.BendTagStyle, ObjectDefaultsStyle.ChainDimensionStyle, ObjectDefaultsStyle.ChamferNoteStyle, ObjectDefaultsStyle.DiameterDimensionStyle, ObjectDefaultsStyle.HoleNoteStyle, ObjectDefaultsStyle.HoleTagStyle, ObjectDefaultsStyle.LeaderTextStyle, ObjectDefaultsStyle.LinearDimensionStyle, ObjectDefaultsStyle.OrdinateDimensionStyle, ObjectDefaultsStyle.OrdinateSetDimensionStyle, ObjectDefaultsStyle.PunchNoteStyle, ObjectDefaultsStyle.RadialDimensionStyle, ObjectDefaultsStyle.ThreadNoteStyle, OrdinateDimension.Style, OrdinateDimensionSet.Style, PunchNote.DimensionStyle, RadiusGeneralDimension.Style

Samples

Name Description
Dimensions - edit This sample demonstrates the editing of sheet dimensions and the associated dimension style.

Version

Introduced in version 9