CreateLine Method (IMathUtility)

CreateLine Method (IMathUtility) | Send Feedback
See Also Example

Line[out]
  IMathLine

StartX
  x coordinate of starting point

StartY
  y coordinate of starting point

StartZ
  z coordinate of starting point

EndX
  x coordinate of ending point

EndY
  y coordinate of ending point

EndZ
  z coordinate of ending point

Type
  Type of line as defined in dsMathLineType_e

Creates a mathematical line of the specified type passing through the specified points.

# Syntax

Visual Basic |
--- | ---
    Function CreateLine( _
       ByVal StartX As System.Double, _
       ByVal StartY As System.Double, _
       ByVal StartZ As System.Double, _
       ByVal EndX As System.Double, _
       ByVal EndY As System.Double, _
       ByVal EndZ As System.Double, _
       ByVal Type As dsMathLineType_e _
    ) As MathLine

C# |
--- | ---
    MathLine CreateLine(
       System.double StartX,
       System.double StartY,
       System.double StartZ,
       System.double EndX,
       System.double EndY,
       System.double EndZ,
       dsMathLineType_e Type
    )

JavaScript |
--- | ---
    CreateLine(
       StartX : Number,
       StartY : Number,
       StartZ : Number,
       EndX : Number,
       EndY : Number,
       EndZ : Number,
       Type : String
    ) : dsMathLine

COM native C++ |
--- | ---
    HRESULT CreateLine(
       DOUBLE StartX,
       DOUBLE StartY,
       DOUBLE StartZ,
       DOUBLE EndX,
       DOUBLE EndY,
       DOUBLE EndZ,
       dsMathLineType_e Type,
       IMathLine** Line
    )

C++ |
--- | ---
    DSRESULT CreateLine(
       double StartX,
       double StartY,
       double StartZ,
       double EndX,
       double EndY,
       double EndZ,
       dsMathLineType_e Type,
       dsMathLine** Line
    )

#### Parameters

StartX
  x coordinate of starting point
StartY
  y coordinate of starting point
StartZ
  z coordinate of starting point
EndX
  x coordinate of ending point
EndY
  y coordinate of ending point
EndZ
  z coordinate of ending point
Type
  Type of line as defined in dsMathLineType_e
Line[out] or Return Value
  IMathLine

# Example

Rotate, Scale, Project, and Mirror a Line Entity (JavaScript)
Rotate, Scale, Project, and Mirror a Line Entity (VB.NET)
Rotate, Scale, Project, and Mirror a Line Entity (C#)
Rotate, Scale, Project, and Mirror a Line Entity (VBA)

# See Also

####

IMathUtility Interface
IMathUtility Members
IMathUtility::CreateLineByPointAndDirection Method

# Availability

DraftSight V1R1.4