VB API - Line does not appear at correct place
When drawing a simple line using the sample VB API code, a line appears in the drawing but the wrong place consistently.
Using the code below, a line is expected from 0,0 to 20,0
Dim start As IpfcPoint3D
Dim finish As IpfcPoint3D
model = creoSession.CurrentModel
start = New CpfcPoint3D
start.Set(0, 0)
start.Set(1, 0)
start.Set(2, 0)
finish = New CpfcPoint3D
finish.Set(0, 20)
finish.Set(1, 20)
finish.Set(2, 0)
geom = (New CCpfcLineDescriptor).Create(start, finish)
lineInstructions = (New CCpfcDetailEntityInstructions).Create(geom, Nothing)
drawing.CreateDetailItem(lineInstructions)
When I check the coordinates again, they show correct values.
MessageBox.Show("Start = " & start.Item(0).ToString & " x " & start.Item(1).ToString & vbCrLf &
"End = " & finish.Item(0).ToString & " x " & finish.Item(1).ToString
)

Am I missing any transformation?

