Hide Table of Contents

Document Properties > Dimensions > Diameter

 

Setting

Get/Set Methods

Return Value or <Value>

Comments

Base diameter dimension standard

IModelDocExtension::GetUserPreferenceInteger(swUserPreferenceIntegerValue_e.swDetailingDimensionStandard, swUserPreferenceOption_e.swDetailingDiameterDimension)

IModelDocExtension::SetUserPreferenceInteger(swUserPreferenceIntegerValue_e.swDetailingDimensionStandard, swUserPreferenceOption_e.swDetailingDiameterDimension, swDetailingStandard_e.<Value>)

See swDetailingStandard_e for valid options

Specifies the base diameter dimensioning standard to use

Leader style - Leader Style

IModelDocExtension::GetUserPreferenceInteger(swUserPreferenceIntegerValue_e.swLineFontDimensionsStyle, swUserPreferenceOption_e.swDetailingDiameterDimension)

IModelDocExtension::SetUserPreferenceInteger(swUserPreferenceIntegerValue_e.swLineFontDimensionsStyle, swUserPreferenceOption_e.swDetailingDiameterDimension, swLineStyles_e.<Value>)

See swLineStyles_e for valid options

Specifies style of lines for diameter dimensions

Leader style - Leader Thickness

IModelDocExtension::GetUserPreferenceInteger(swUserPreferenceIntegerValue_e.swLineFontDimensionsThickness, swUserPreferenceOption_e.swDetailingDiameterDimension)

IModelDocExtension::SetUserPreferenceInteger(swUserPreferenceIntegerValue_e.swLineFontDimensionsThickness, swUserPreferenceOption_e.swDetailingDiameterDimension, swLineWeights_e.<Value>)

See swLineWeights_e for valid options

Specifies thickness of lines for diameter dimensions

Leader style - Custom Thickness

IModelDocExtension::GetUserPreferenceDouble(swUserPreferenceDoubleValue_e.swLineFontDimensionsThicknessCustom, swUserPreferenceOption_e.swDetailingDiameterDimension)

IModelDocExtension::SetUserPreferenceDouble(swUserPreferenceDoubleValue_e.swLineFontDimensionsThicknessCustom, swUserPreferenceOption_e.swDetailingDiameterDimension, <Value>)

Double value

Specifies a custom thickness for lines in diameter dimensions; sets Custom Thickness to the specified thickness and Leader Thickness to Custom Size

Text - Font...

IModelDocExtension::GetUserPreferenceTextFormat(swUserPreferenceTextFormat_e.swDetailingDimensionTextFormat, swUserPreferenceOption_e.swDetailingDiameterDimension)

IModelDocExtension::SetUserPreferenceTextFormat(swUserPreferenceTextFormat_e.swDetailingDimensionTextFormat, swUserPreferenceOption_e.swDetailingDiameterDimension, <Value>)

See ITextFormat for font options

To set font property values, implement ITextFormat, set the appropriate ITextFormat member values, and pass the ITextFormat object in the API set method

Text - Horizontal

IModelDocExtension::GetUserPreferenceInteger(swUserPreferenceIntegerValue_e.swDetailingDimensionTextAlignmentHorizontal, swUserPreferenceOption_e.swDetailingDiameterDimension)

IModelDocExtension::SetUserPreferenceInteger(swUserPreferenceIntegerValue_e.swDetailingDimensionTextAlignmentHorizontal, swUserPreferenceOption_e.swDetailingDiameterDimension, swTextJustification_e.<Value>)

See swTextJustification_e for valid options

 

Text - Vertical

IModelDocExtension::GetUserPreferenceInteger(swUserPreferenceIntegerValue_e.swDetailingDimensionTextAlignmentVertical, swUserPreferenceOption_e.swDetailingDiameterDimension)

IModelDocExtension::SetUserPreferenceInteger(swUserPreferenceIntegerValue_e.swDetailingDimensionTextAlignmentVertical, swUserPreferenceOption_e.swDetailingDiameterDimension, swTextAlignmentVertical_e.<Value>)

See swTextAlignmentVertical_e for valid options

 

Dual dimensions - Dual dimensions display

IModelDocExtension::GetUserPreferenceToggle(swUserPreferenceToggle_e.swDetailingDualDimensions, swUserPreferenceOption_e.swDetailingDiameterDimension)

IModelDocExtension::SetUserPreferenceToggle(swUserPreferenceToggle_e.swDetailingDualDimensions, swUserPreferenceOption_e.swDetailingDiameterDimension, <Value>)

Boolean value

Specifies whether to display dimensions in two kinds of units

Dual dimensions - Show units for dual display

IModelDocExtension::GetUserPreferenceToggle(swUserPreferenceToggle_e.swDetailingShowDualDimensionUnits, swUserPreferenceOption_e.swDetailingDiameterDimension)

IModelDocExtension::SetUserPreferenceToggle(swUserPreferenceToggle_e.swDetailingShowDualDimensionUnits, swUserPreferenceOption_e.swDetailingDiameterDimension, <Value>)

Boolean value

Specifies whether to display units for dual dimensions

Dual dimensions - Dimension position

IModelDocExtension::GetUserPreferenceInteger(swUserPreferenceIntegerValue_e.swDetailingDualDimPosition, swUserPreferenceOption_e.swDetailingDiameterDimension)

IModelDocExtension::SetUserPreferenceInteger(swUserPreferenceIntegerValue_e.swDetailingDualDimPosition, swUserPreferenceOption_e.swDetailingDiameterDimension, swDetailingDualDimPosition_e.<Value>)

See swDetailingDualDimPosition_e for valid options

Positions the display of dimensions in two kinds of units

Primary precision - Unit Precision

IModelDocExtension::GetUserPreferenceInteger(swUserPreferenceIntegerValue_e.swDetailingLinearDimPrecision, swUserPreferenceOption_e.swDetailingDiameterDimension)

IModelDocExtension::SetUserPreferenceInteger(swUserPreferenceIntegerValue_e.swDetailingLinearDimPrecision, swUserPreferenceOption_e.swDetailingDiameterDimension, <Value>)

Number of decimal places to display; 0 through 8

Specifies primary precision for linear dimension

Primary precision - Tolerance Precision

IModelDocExtension::GetUserPreferenceInteger(swUserPreferenceIntegerValue_e.swDetailingLinearTolPrecision, swUserPreferenceOption_e.swDetailingDiameterDimension)

IModelDocExtension::SetUserPreferenceInteger(swUserPreferenceIntegerValue_e.swDetailingLinearTolPrecision, swUserPreferenceOption_e.swDetailingDiameterDimension, swDimensionPrecisionSettings_e .<Value>)

See swDimensionPrecisionSettings_e for valid options

Specifies primary precision for tolerance

Dual precision - Unit Precision

IModelDocExtension::GetUserPreferenceInteger(swUserPreferenceIntegerValue_e.swDetailingAltLinearDimPrecision, swUserPreferenceOption_e.swDetailingDiameterDimension)

IModelDocExtension::SetUserPreferenceInteger(swUserPreferenceIntegerValue_e.swDetailingAltLinearDimPrecision, swUserPreferenceOption_e.swDetailingDiameterDimension, <Value>)

Number of decimal places to display; 0 through 8

Specifies dual precision for alternate linear dimension

Dual precision - Tolerance Precision

IModelDocExtension::GetUserPreferenceInteger(swUserPreferenceIntegerValue_e.swDetailingAltLinearTolPrecision, swUserPreferenceOption_e.swDetailingDiameterDimension)

IModelDocExtension::SetUserPreferenceInteger(swUserPreferenceIntegerValue_e.swDetailingAltLinearTolPrecision, swUserPreferenceOption_e.swDetailingDiameterDimension, swDimensionPrecisionSettings_e .<Value>)

See swDimensionPrecisionSettings_e for valid options

Specifies dual precision for alternate linear tolerance

Foreshortened

IModelDocExtension::GetUserPreferenceInteger(swUserPreferenceIntegerValue_e.swDetailingForeshortenedDiameterStyle, swUserPreferenceOption_e.swDetailingNoOptionSpecified)

IModelDocExtension::SetUserPreferenceInteger(swUserPreferenceIntegerValue_e.swDetailingForeshortenedDiameterStyle, swUserPreferenceOption_e.swDetailingNoOptionSpecified, swDetailingForeshortenedDiameterStyle_e .<Value>)

See swDetailingForeshortenedDiameterStyle_e for valid options

 

Display second outside arrow

IModelDocExtension::GetUserPreferenceToggle(swUserPreferenceToggle_e.swDetailingRadialDimsDisplay2ndOutsideArrow, swUserPreferenceOption_e.swDetailingDiameterDimension)

IModelDocExtension::SetUserPreferenceToggle(swUserPreferenceToggle_e.swDetailingRadialDimsDisplay2ndOutsideArrow, swUserPreferenceOption_e.swDetailingDiameterDimension, <Value>)

Boolean value

Specifies whether to display two outside arrows

Display with solid leader

See Comments

See Comments

Currently not available in the SolidWorks API

Tolerance...

See Comments

See Comments

See Dimension Tolerance

Layer

IModelDocExtension::GetUserPreferenceString(swUserPreferenceStringValue_e.swDetailingLayer, swUserPreferenceOption_e.swDetailingDiameterDimension)

IModelDocExtension::SetUserPreferenceString(swUserPreferenceStringValue_e.swDetailingLayer, swUserPreferenceOption_e.swDetailingDiameterDimension, <Value>)

Valid Options:

  • "Border"

  • "Dimensions"

  • "Notes"

  • "BOM"

  • "FORMAT"

This setting is available only on drawings; depending on drawing, some options may not apply

Text position

IModelDocExtension::GetUserPreferenceInteger(swUserPreferenceIntegerValue_e.swDetailingDimensionTextAndLeaderStyle, swUserPreferenceOption_e.swDetailingDiameterDimension)

IModelDocExtension::SetUserPreferenceInteger(swUserPreferenceIntegerValue_e.swDetailingDimensionTextAndLeaderStyle, swUserPreferenceOption_e.swDetailingDiameterDimension, swDisplayDimensionLeaderText_e.<Value>)

See swDisplayDimensionLeaderText_e for valid options

Specifies how to display leader



Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   Document Properties > Dimensions > Diameter
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:




x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2010 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.