- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Dear Autocad Experts,
I would like to call ThisDrawing.Utility.GetPoint method in C#.
Autodesk documentation shows how this can be done in VBA:
a) With relative base point input
basePnt(0) = 0#: basePnt(1) = 0#: basePnt(2) = 0#
returnPnt = ThisDrawing.Utility.GetPoint(basePnt, "Enter a point: ")
b) Without relative base point input:
returnPnt = ThisDrawing.Utility.GetPoint(, "Enter a point: ")
How to replicate the second (b) option in C#?
This option does not require 'basePnt' input.
I tried, using: null or 0, but then I get an error: 'Invalid argument Point in GetPoint'
I tried using an empty array, but then GetPoint method assumes that I supplied an array with 0,0,0 coordinates.
Does anyone know how to use the GetPoint method in C#, without the relative base point input?
I would be very grateful for any kind of help. Thank you in advance.
Solved! Go to Solution.