Public Sub saveDocument()
Dim doc As GcadDocument
Set doc = thisDrawing.Application.Documents.Add()
Dim ptStart(0 To 2) As Double
Dim ptEnd(0 To 2) As Double
ptStart(0) = 0
ptStart(1) = 0
ptStart(2) = 0
ptEnd(0) = 100
ptEnd(1) = 100
ptEnd(2) = 0
Dim line As GcadLine
Set line = thisDrawing.ModelSpace.AddLine(ptStart, ptEnd)