Having used the
method (in C#), returns the tag of the created point feature as the output. This variable is simply called "NewPointTag" in my case.
What I would like to do is print the XYZ coordinates of the newly created point to the listing window.
seems to return the point object, but ".Coordinates" does not work.
How can I access the coordinates?
Here's one method:
You can use the .GetTaggedObject method to get the point object from the tag. Once you have the point object, you can access its .Coordinates property to get the XYZ values.
As is often the case in NX, there is more than one way to acoomplish this. Cowski has pointed out one. Another method if you have the tag is to call the wrapper method for UF_CURVE_ask_point_data(). It takes the tag as the input, and provides an array of three doubles for the output relative to the Absolute coordinate system.