How to get True Coordinate of Internal Origin by Revit API?

gifthelper01
Contributor
Contributor

How to get True Coordinate of Internal Origin by Revit API?

gifthelper01
Contributor
Contributor

Hi All,

I am writing an add-in to place family based on several coordinates relative to Revit Coordination System.

I know that Revit API/C# will treat Internal Origin as 0,0,0. However, actually the Internal Origin is not sitting at 0,0,0 in the Revit model.

Is anyone know how to find the "true coordinate" of Internal Origin in Revit model by using Revit API and compare the displacement of Internal Origin from 0,0,0?

Thanks a lot.

 

0 Likes
Reply
1,217 Views
1 Reply
Reply (1)

Yien_Chao
Advisor
Advisor

try to get the location by this :

https://www.revitapidocs.com/2022/94d93a9c-04d1-b277-5785-7b661ab2eaba.htm

 

then get the coordinates.

 

and for distance relative to the internal origin, use math :

https://www.math.usm.edu/lambers/mat169/fall09/lecture17.pdf

 

hope that could help

0 Likes