Anyone wish to develop a custom script?

 From:  Michael Gibson
4801.124 In reply to 4801.118 
Hi Brian,

> On a side note, still trying to figure out how to extract the x, y,
> and z values, from a given point.
> Either vector math, or the "get" method in point?

There are a couple of different kinds of points - there's a "point object" which is one that can be added to the geometry database and will then show up on the screen and can be selected and assigned an object name and so forth, and then there's a plain data point as well that only contains x,y,z values and nothing else.

If you have a "point geometry database object" that you might have got as a result from a geometry factory or something like that, then that object has a "pt" property on it that will return a plain data point that has the x,y,z values in it.

So you would do something like this to get the data structure point from a point object:

var datapt = pt_object.pt;

Then for the data structure type point has x,y,z values that can be accessed like:

var x = datapt.x;
var y = datapt.y;
var z = datapt.z;

Hope this helps!

- Michael