Solid Edge FrameworkSupport Type Library
OriginLineDirection Property
Description
Specifies the orientation of the origin line for coordinate dimensions.
Property type
Read-write property
Syntax
Visual Basic
Public Property OriginLineDirection As Boolean
Remarks
This orientation can be vertical or horizontal. If OriginLineDirection is True, the direction of the origin line is vertical. The direction of measurement is perpendicular to the origin line. That is, if the origin line is vertical, the direction of measurement is either to the left or to the right of the origin line. The direction of measurement is set by the MeasureLineDirection property. The origin line direction determines the dimension axis to measure along. The common origin's projection line is perpendicular to the dimension axis.
Example
Private Sub Form_Load()
    Dim objApp As SolidEdgeFrameWork.Application
    Dim objDoc As SolidEdgeDraft.DraftDocument
    Dim objSheet As SolidEdgeDraft.Sheet
    Dim objline As SolidEdgeFrameworkSupport.Line2d
    Dim objDim As SolidEdgeFrameworkSupport.Dimension
    Dim bOrignLinDir As Boolean
    ' Report errors
    Const PI = 3.14159265358979
    ' Create/get the application with specific settings
    On Error Resume Next
    Set objApp = GetObject(, "SolidEdge.Application")
    If Err Then
        Err.Clear
        Set objApp = CreateObject("SolidEdge.Application")
        Set objDoc = objApp.Documents.Add("SolidEdge.DraftDocument")
        objApp.Visible = True
    Else
        Set objDoc = objApp.ActiveDocument
    End If
    'getting the Active Sheet object
    Set objSheet = objDoc.ActiveSheet
    'create a line
    Set objline = objSheet.Lines2d.AddBy2Points(x1:=0.1, y1:=0.1, x2:=0.3, y2:=0.3)
    'create a dimension object addcoordinate
    Set objDim = objSheet.Dimensions.AddAngle(Object:=objline)
    'get property OriginLineDirection
    bOrignLinDir = objDim.OriginLineDirection
    ' set property OriginLineDirection
    objDim.OriginLineDirection = True
    ' USER DISPLAY
    ' Release objects
    Set objApp = Nothing
    Set objDoc = Nothing
    Set objSheet = Nothing
    Set objline = Nothing
    Set objDim = Nothing
End Sub
See Also

Dimension Object  | Dimension Members