Solid Edge FrameworkSupport Type Library
Add Method
For annotation objects, this argument is the x coordinate of the terminal end of the annotation object's leader. For dimensioning objects, this argument is the x coordinate for the start of the object.
For annotation objects, this argument is the y coordinate of the terminal end of the annotation object's leader. For dimensioning objects, this argument is the y coordinate for the start of the object.
For annotation objects, this argument is the z coordinate of the terminal end of the annotation object's leader. For dimensioning objects, this argument is the z coordinate for the start of the object.
For annotation objects, this argument is the x coordinate of the break point of the annotation object's leader. For dimensioning objects, this argument is the x coordinate for the end of the object.
For annotation objects, this argument is the y coordinate of the break point of the annotation object's leader. For dimensioning objects, this argument is the y coordinate for the end of the object.
For annotation objects, this argument is the z coordinate of the break point of the annotation object's leader. For dimensioning objects, this argument is the z coordinate for the end of the object.
Description
Adds an occurrence of the referenced object.
Syntax
Visual Basic
Public Function Add( _
   ByVal x1 As Double, _
   ByVal y1 As Double, _
   ByVal z1 As Double, _
   ByVal x2 As Double, _
   ByVal y2 As Double, _
   ByVal z2 As Double _
) As CenterLine
Parameters
x1
For annotation objects, this argument is the x coordinate of the terminal end of the annotation object's leader. For dimensioning objects, this argument is the x coordinate for the start of the object.
y1
For annotation objects, this argument is the y coordinate of the terminal end of the annotation object's leader. For dimensioning objects, this argument is the y coordinate for the start of the object.
z1
For annotation objects, this argument is the z coordinate of the terminal end of the annotation object's leader. For dimensioning objects, this argument is the z coordinate for the start of the object.
x2
For annotation objects, this argument is the x coordinate of the break point of the annotation object's leader. For dimensioning objects, this argument is the x coordinate for the end of the object.
y2
For annotation objects, this argument is the y coordinate of the break point of the annotation object's leader. For dimensioning objects, this argument is the y coordinate for the end of the object.
z2
For annotation objects, this argument is the z coordinate of the break point of the annotation object's leader. For dimensioning objects, this argument is the z coordinate for the end of the object.
Example
Private Sub Form_Load()
    Dim objApp As SolidEdgeFramework.Application
    Dim objDoc As SolidEdgeDraft.DraftDocument
    Dim objCenterLines As SolidEdgeFrameworkSupport.CenterLines
    ' 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 CenterLines object on the active sheet
    Set objCenterLines = objDoc.ActiveSheet.CenterLines
    ' drawing a center line on the active sheet
    Call objCenterLines.Add(x1:=0.25, y1:=0.15, z1:=0, x2:=0.25, y2:=0.35, z2:=0)
    ' USER DISPLAY
    ' Release objects
    Set objApp = Nothing
    Set objDoc = Nothing
    Set objCenterLines = Nothing
End Sub
See Also

CenterLines Collection  | CenterLines Members