Transform between Project Base Point and Internal Origin

Transform between Project Base Point and Internal Origin

gifthelper01
Contributor Contributor
911 Views
3 Replies
Message 1 of 4

Transform between Project Base Point and Internal Origin

gifthelper01
Contributor
Contributor

Hi All,

The Project Base Point and Internal Origin of my project are not at the same location as shown below.

Project Coordinate.png

 

I want to use Revit API to place a family at a coordinate (x="831420800" y="843024365" z="46559) relative to Project Base Point. However, I know that Revit API will use Internal Origin as (0,0,0) when placing the family. Is there any ways to get the coordinate of Internal Origin in Revit such that a transformation can be made at (x="831420800" y="843024365" z="46559) before placing the family?

I am looking for an automatic method through API to get the coordinate of Internal Origin.

Thanks.

 

 

Accepted solutions (2)
912 Views
3 Replies
Replies (3)
Message 2 of 4

steven.williams.as
Advocate
Advocate
Accepted solution

Have you tried getting the Project Base Point using the method @grahamcook posted here? You should then be able to use the Transform class with your XYZ points (Internal Origin and Project Base Point) to project your desired coordinate into internal Revit coordinates. Just remember that you are projecting into Revit coordinates for drawing, not making Revit draw things at your desired location, for example relative to the Project Base Point.

Message 3 of 4

gifthelper01
Contributor
Contributor

Hi onomiu2, thanks for your reply.

I tried to use the method you mentioned to get the coordinate of Project Base Point. However, the coordinate I get is not relative to Internal Origin in Revit, am I right?

Is there any way to get the Project Base Point relative to Internal Origin?

Thanks.

0 Likes
Message 4 of 4

mhannonQ65N2
Collaborator
Collaborator
Accepted solution

You can use the BasePoint.Position property to get the base point's position relative to the internal origin.

0 Likes