Reporting Shared Coordinates

Reporting Shared Coordinates

Anonymous
Not applicable
490 Views
4 Replies
Message 1 of 5

Reporting Shared Coordinates

Anonymous
Not applicable

Hi,

 

I would like to select corners of an element and also, retrieve each coordinates located in the red box on the following picture.

 

How can I realize this ?

 

Thanks.

Sans titre.png

0 Likes
491 Views
4 Replies
Replies (4)
Message 2 of 5

augusto.goncalves
Alumni
Alumni
Hi,

If you want to read the geometry, you'll need to get the geometry and run through each piece of it (like solids and faces). But that will return the whole thing, not only the selected red point. If you want a specific selected point, why not ask the user to select it?

In case this doesn't meet your scenario, can you please clarify?
Regards,



Augusto Goncalves
Twitter @augustomaia
Autodesk Developer Network
0 Likes
Message 3 of 5

Anonymous
Not applicable

In fact, I've use already a "pickpoint" to select a point in a face, but coordinates are "local".

 

I just want to retrieve  "global" coordinates of each corners of a face, like the picture.

I will use theses coordinates to calculate the plane equation of the face.

If I directly do the function "plane", this plane is local.

I need to have a georeferenced face.

 

I don't know the command of the function which retrieve theses coordinates.

 

Thanks

 

 

 

0 Likes
Message 4 of 5

augusto.goncalves
Alumni
Alumni

Not sure what you mean by "global", but the pickpoint will return the coordinate, but in feet, not in centimeters (metric), so you need to convert... that's probably what you're seeing here, can you confirm?

Regards,



Augusto Goncalves
Twitter @augustomaia
Autodesk Developer Network
0 Likes
Message 5 of 5

Anonymous
Not applicable

No, when i use pickpoint one a face, Revit create automatically an origin et two vectors specific of each face.

 

Revit use the command "Reporting Shared Coordinates"

I just want to write a command which do exactly the same thing : ask the user to pick a corner and calculate the spot coordinate.

 

(Sorry for my poor english)

0 Likes