Adds or edits a diameter dimension.
Namespace: Autodesk.iLogic.Interfaces
Assembly: Autodesk.iLogic.Interfaces (in Autodesk.iLogic.Interfaces.dll) Version: 29.0
Syntax
VB
Function AddDiameter ( name As String, textOrigin As DiameterDimensionTextPositionSpec, intent As GeometryIntent, Optional arrowHeadsInside As Boolean = false, Optional leaderFromCenter As Boolean = false, Optional singleDimensionLine As Boolean = true, Optional dimensionStyle As DimensionStyle = Nothing, Optional layer As Layer = Nothing ) As IManagedDiameterGeneralDimension
C#
IManagedDiameterGeneralDimension AddDiameter( string name, DiameterDimensionTextPositionSpec textOrigin, GeometryIntent intent, bool arrowHeadsInside = false, bool leaderFromCenter = false, bool singleDimensionLine = true, DimensionStyle dimensionStyle = null, Layer layer = null )
Parameters
- name
- Type: System.String
The name of the dimension. - textOrigin
- Type: Autodesk.iLogic.Types.DiameterDimensionTextPositionSpec
The position of the dimension text on the sheet. - intent
- Type: GeometryIntent
Specifies the arc or circle to dimension. A parameter along the curve should be specified in the intent. If not, a default is assumed. - arrowHeadsInside (Optional)
- Type: System.Boolean
Indicates whether to place the dimension line arrows inside or outside. Default: False - leaderFromCenter (Optional)
- Type: System.Boolean
Indicates whether the leader starts from the center of the arc or the circle. If not specified, the argument defaults to False indicating that the leader will not start from the center. - singleDimensionLine (Optional)
- Type: System.Boolean
Indicates whether to use a single dimension line. If not specified, the argument defaults to True indicating a single dimension line will be used. - dimensionStyle (Optional)
- Type: DimensionStyle
Specifies the dimension style to use for the dimension. If not specified, the style defined by the active standard is used. - layer (Optional)
- Type: Layer
Specifies the layer to use for the dimension. If not specified, the layer defined by the active standard is used.
Return Value
Type: IManagedDiameterGeneralDimensionThe dimension.