Message 1 of 3

Not applicable
12-11-2018
06:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, is there a way to get coords of a defined Acadpoint ?
If I want to "print" the coords it says "error 13 - type mismatch"
Any idea why ? Thanks.
Sub point()
Dim pointObj As AcadPoint
Dim location(0 To 2) As Double
Dim retCoord As Variant
Dim location(0 To 2) As Double
Dim retCoord As Variant
location(0) = 5#: location(1) = 5#: location(2) = 0#
Set pointObj = ThisDrawing.ModelSpace.AddPoint(location)
retCoord = pointObj.Coordinates
Debug.Print retCoord
Set pointObj = ThisDrawing.ModelSpace.AddPoint(location)
retCoord = pointObj.Coordinates
Debug.Print retCoord
End Sub
Solved! Go to Solution.