InsertLinearDimension Method (ISketchManager)

InsertLinearDimension Method (ISketchManager) | Send Feedback
See Also

LinearDimension[out]
  Linear Dimension

ExtensionLine1PointDblArray
  Array of three doubles indicating the origin of the first extension line

ExtensionLine2PointDblArray
  Array of three doubles indicating the origin of the second extension line

DimensionLinePointDblArray
  Array of three doubles indicating the point where to place the linear Dimension

DimensionTextOverride
  Text with which to override the default Dimension text

Inserts a linear Dimension.

# Syntax

Visual Basic |
--- | ---
    Function InsertLinearDimension( _
       ByVal ExtensionLine1PointDblArray As System.Object, _
       ByVal ExtensionLine2PointDblArray As System.Object, _
       ByVal DimensionLinePointDblArray As System.Object, _
       ByVal DimensionTextOverride As System.String _
    ) As RotatedDimension

C# |
--- | ---
    RotatedDimension InsertLinearDimension(
       System.object ExtensionLine1PointDblArray,
       System.object ExtensionLine2PointDblArray,
       System.object DimensionLinePointDblArray,
       System.string DimensionTextOverride
    )

JavaScript |
--- | ---
    InsertLinearDimension(
       ExtensionLine1PointDblArray : Array,
       ExtensionLine2PointDblArray : Array,
       DimensionLinePointDblArray : Array,
       DimensionTextOverride : String
    ) : dsRotatedDimension

COM native C++ |
--- | ---
    HRESULT InsertLinearDimension(
       VARIANT ExtensionLine1PointDblArray,
       VARIANT ExtensionLine2PointDblArray,
       VARIANT DimensionLinePointDblArray,
       BSTR DimensionTextOverride,
       IRotatedDimension** LinearDimension
    )

C++ |
--- | ---
    DSRESULT InsertLinearDimension(
       const dsDoubleArray& ExtensionLine1PointDblArray,
       const dsDoubleArray& ExtensionLine2PointDblArray,
       const dsDoubleArray& DimensionLinePointDblArray,
       const dsString& DimensionTextOverride,
       dsRotatedDimension** LinearDimension
    )

#### Parameters

ExtensionLine1PointDblArray
  Array of three doubles indicating the origin of the first extension line
ExtensionLine2PointDblArray
  Array of three doubles indicating the origin of the second extension line
DimensionLinePointDblArray
  Array of three doubles indicating the point where to place the linear Dimension
DimensionTextOverride
  Text with which to override the default Dimension text
LinearDimension[out] or Return Value
  Linear Dimension

# Remarks

Inserting a linear Dimension creates a rotated linear Dimension with a rotation angle of 0°, which results in horizontal Dimension lines and text.

# See Also

####

ISketchManager Interface
ISketchManager Members
ISketchManager::InsertRotatedDimension Method

# Availability

DraftSight V1R3.0