Extracting X and Y coords from a point variable
Posted: Thu Apr 08, 2004 6:01 am
Hello again
I am having trouble trying to extract the x and y coordinates from a point variable and wondered if you could let me know how to do it.
On AutoCAD i could use the translatecoordinates function in this routine
Dim DblConv as Variant
Public Function ConvPoint(StartPoint as ACAD_POINT)
Dim StartX, StartY as Double
DblConv = thisdrawing.utility.translatecoordinates(StartPoint,acWorld,acWorld,False)
StartX = DblConv(0)
StartY = DblConv(1)
End Function
i have changed the acad object references to intellicad ones but the function errors on the line
StartX = DblConv(0)
Can you please help
ENSIGN
I am having trouble trying to extract the x and y coordinates from a point variable and wondered if you could let me know how to do it.
On AutoCAD i could use the translatecoordinates function in this routine
Dim DblConv as Variant
Public Function ConvPoint(StartPoint as ACAD_POINT)
Dim StartX, StartY as Double
DblConv = thisdrawing.utility.translatecoordinates(StartPoint,acWorld,acWorld,False)
StartX = DblConv(0)
StartY = DblConv(1)
End Function
i have changed the acad object references to intellicad ones but the function errors on the line
StartX = DblConv(0)
Can you please help
ENSIGN