Share

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.
GetHoleThreadNoteOptionValue Gets the option value for hole thread notes.
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.
SetHoleThreadNoteOptionValue Sets the option value for hole thread notes.
UpdateFromGlobal Method that updates this style from the global repository.

Properties

Name Description
AlignedDimensionTextOrientation Gets and sets the orientation of the text in an aligned dimension.
AlternateDecimalMarkerType Gets and sets the character to use as a decimal marker for alternate dimensions.
AlternateDisplayFormat Gets and sets the alternate units display format for all non-angular dimensions.
AlternateDisplayUnitType Gets and sets whether to display units for alternate dimensions in the drawing.
AlternateFractionalTextScale Gets and sets the size of the stacked text relative to the default text size when using alternate units. The valid range of values is 0.25 to 1.25.
AlternateIncludedZeroDisplay Gets and sets whether to display the included zeroes for alternate dimensions in the drawing.
AlternateLeadingZeroDisplay Gets and sets whether to display the leading zeroes for alternate dimensions in the drawing.
AlternateLinearPrecision Gets and sets the precision for linear alternate dimensions in the drawing.
AlternateLinearUnits Gets and sets the units of length measure used for alternate dimensions in the drawing.
AlternateTrailingZeroDisplay Gets and sets whether to display the trailing zeroes for alternate dimensions in the drawing.
AngularArrowsInside Gets and sets inside or outside placement of arrows for Angular dimensions.
AngularFormatIsDecimalDegrees Gets and sets whether to display angular dimension values as decimal degrees or degrees-minutes-seconds.
AngularHideExtensionLineOne Gets and sets if the first extension line of an angular dimension is hidden.
AngularHideExtensionLineTwo Gets and sets if the second extension line of an angular dimension is hidden.
AngularLeadingZeroDisplay Gets and sets whether to display the leading zeroes for angular dimensions in the drawing.
AngularPrecision Gets and sets the precision for angular dimensions in the drawing.
AngularTextModifier Gets and sets the optional modifier that controls the controls the position of text in an angular dimension.
AngularTextOrientation Gets and sets the orientation of angular dimension text.
AngularTrailingZeroDisplay Gets and sets whether to display the trailing zeroes for angular dimensions in the drawing.
AngularUseQuadrant Gets and sets whether to use a quadrant or ignore the quadrant angular dimension text.
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.
ArcLengthDimensionSymbolAbove Gets and sets whether the arc length dimension symbol is above the arc length dimension value or before it.
ArrowheadHeight Gets and sets the height of the arrowhead relative to the associated line.
ArrowheadSize Gets and sets the size of the arrowhead.
ArrowheadType Gets and sets the arrowhead style to use.
ArrowheadTypeForChainDimensions Gets and sets the internal arrowhead styles to use for chain dimensions.
BasicDimensionPrefixSuffixInside Gets and sets whether the prefix and suffix are inside or outside the basic dimension box.
BendNoteDualFormat Gets and sets the arrangement of the alternate dimension display for bend notes.
ChamferNoteDualFormat Gets and sets the arrangement of the alternate dimension display for chamfer notes.
Color Gets and sets the color for the style.
Comments Gets and sets comments associated with the style.
DecimalMarkerType Gets and sets the character to use as a decimal marker for dimensions.
DiameterArrowsInside Gets and sets inside or outside placement of arrows for diameter dimensions.
DiameterDualDimensionLine Gets and sets if single or dual diameter dimension lines should be displayed.
DiameterExternalTextOrientation Gets and sets the orientation of text in a diameter dimension when the text is external using a leader line.
DiameterInternalTextOrientation Gets and sets the orientation of text in a diameter dimension when the text is within a dimension line.
DiameterLeaderFromCenter Gets and sets if the leader line of a diameter dimension extends to the center or not.
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 Gets and sets if the diameter symbol should be shown in a diameter dimension.
DimensionDualFormat Read-write property that gets and sets the arrangement of the alternate dimension display for dimensions.
DisplayFormat Gets and sets the display format for all non-angular dimensions.
DisplayUnitType Gets and sets whether to display units for dimensions in the drawing.
Extension Gets and sets the distance the extension line is drawn past the dimension line.
FractionalTextScale Gets and sets the size of the stacked text relative to the default text size. The valid range of values is 0.25 to 1.25.
Gap Gets and sets the distance between the dimension text and the dimension lines.
HoleNoteDualFormat Gets and sets the arrangement of the alternate dimension display for hole notes.
HoleThreadTypeList Returns the hole and thread type list.
HorizontalDimensionTextOrientation Read-write property that gets and sets the orientation of the text in a horizontal dimension. Valid values are kParallelDimensionText and kInlineHorizontalText.
IncludedZeroDisplay Gets and sets whether to display the included zeroes for dimensions in the drawing.
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 Gets and sets whether to display the leading zeroes for dimensions in the drawing.
LinearArrowsInside Gets and sets inside or outside placement of arrows for linear dimensions.
LinearHideExtensionLineOne Gets and sets if the first extension line of a linear dimension is hidden.
LinearHideExtensionLineTwo Gets and sets if the second extension line of a linear dimension is hidden.
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 Gets and sets the precision value for linear dimensions in the drawing.
LinearUnits Gets and sets the units of length measure used for dimensions in the drawing.
LineType Gets and sets the line type override for the style.
LineWeight Gets and sets the line weight override for the style.
Name Gets/Sets the name of the Style.
OrdinateAlignment Gets and sets the type of alignment to use for ordinate dimensions.
OrdinateDimensionOriginArrowheadType Gets and sets the arrowhead type for the origin member of ordinate dimension sets.
OrdinateHideOriginIndicator Gets and sets if the origin indicator is to be hidden or not.
OrdinateJoggingAllowed Gets and sets if jogged leaders for ordinate dimensions is allowed or not.
OrdinatePositiveBothDirections Gets and sets if positive values should be shown in both directions or not for an ordinate dimension.
OrdinateShowDirection Gets and sets if the direction arrow should be shown or not for ordinate dimensions.
OrdinateUseOriginIndicator Gets and sets if the origin indicator is to be used or not.
OriginOffset Gets and sets the distance from an edge or point to the endpoint of the extension line.
Parent Property returning the parent of this object.
PartOffset Gets and sets the distance from the referenced part edge to a parallel dimension line.
Prefix Gets and sets the dimension prefix.
PrefixAndSuffixOrder Gets and sets the location of prefix and suffix.
PunchNoteDualFormat Gets and sets the arrangement of the alternate dimension display for punch notes.
RadialArrowsInside Gets and sets inside or outside placement of arrows for radial dimensions.
RadialJoggedLeader Gets and sets if the leader line of a radial dimension is jogged or not.
RadialLeaderFromCenter Gets and sets if the leader line of a radial dimension extends from the center or not.
RadialMultiLineTextOrientation Gets and sets the position of multiple lines of text relative to the landing line in a radial dimension.
RadialTextOrientation Gets and sets the orientation of text in a radial dimension.
ShowBreakSymbol Gets and sets whether to display break symbols for dimensions on a broken view.
ShowDimensionLine Gets and sets whether to display the dimension line when arrowheads are outside the dimension extension lines.
Spacing Gets and sets the distance between the parallel dimension lines.
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 Gets and sets the dimension suffix.
TextStyle Gets and sets the text style used for the dimension style.
Tolerance Property that returns the Tolerance object. The Tolerance object contains methods and properties to query and modify tolerance types and values.
ToleranceAlternateIncludedZeroDisplay Gets and sets whether to display the included zeroes for tolerances in alternate units.
ToleranceAlternateLeadingZeroDisplay Gets and sets whether to display the leading zeroes for tolerances in alternate units.
ToleranceAlternateTrailingZeroDisplay Gets and sets whether to display the trailing zeroes for tolerances in alternate units.
ToleranceAlternateUnitPrecision Gets and sets the number of decimal places visible to the right of the decimal marker in tolerance text for alternate dimensions.
ToleranceAngularPrecision Gets and sets the precision of the tolerance text for angular dimensions.
ToleranceFontSize Gets and sets the size of the font used for tolerances.
ToleranceIncludedZeroDisplay Gets and sets whether to display the included zeroes for tolerances.
ToleranceJustification Gets and sets the vertical justification of dimension tolerance text.
ToleranceLeadingZeroDisplay Gets and sets whether to display the leading zeroes for tolerances.
ToleranceLinearPrecision Gets and sets the number of decimal places visible to the right of the decimal marker in tolerance text for linear dimensions.
ToleranceShowMinuteSecond Gets and sets whether to show angles using fractional degrees or minutes and seconds.
ToleranceTextStyle Gets and sets the text style used for tolerance.
ToleranceTrailingZeroDisplay Gets and sets whether to display the trailing zeroes for tolerances.
ToleranceZeroToleranceDisplay Gets and sets how to display zero tolerances.
TrailingZeroDisplay Gets and sets whether to display the trailing zeroes for dimensions in the drawing.
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 Gets and sets the orientation of the text in a vertical dimension.

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

Was this information helpful?