Solid Edge FrameworkSupport Type Library
AngleClockwise Property
Description
Returns True if the referenced Dimension object measures the angle clockwise.
Property type
Read-write property
Syntax
Visual Basic
Public Property AngleClockwise As Boolean
Remarks
The AngleClockwise property is required only for dimension measuring angle, others ignore this property.
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 objDimension As SolidEdgeFrameworkSupport.Dimension
    Dim bAnglClocWis 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 object
    Set objline = objSheet.Lines2d.AddBy2Points(x1:=0.1, y1:=0.3, _
                                                x2:=0.3, y2:=0.1)
    'create dimension for the Line object
    Set objDimension = objSheet.Dimensions.AddAngle(Object:=objline)
    'check/read whether the angle is clockwise
    bAnglClocWis = objDimension.AngleClockwise
    'set angleclockwise for dimension
    objDimension.AngleClockwise = True
    ' USER DISPLAY
    ' Release objects
    Set objApp = Nothing
    Set objDoc = Nothing
    Set objSheet = Nothing
    Set objline = Nothing
    Set objDimension = Nothing
End Sub
See Also

Dimension Object  | Dimension Members