Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Origin to Center

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
429 Views, 3 Replies

Origin to Center

Dear Forum Members,

 

Say for example I have a unit -2378,1234 in origin to origin how do i convert these unit for center to center purpose or I have a unit -2378,1234 in center to center  how do i convert these unit for origin to origin  purpose.

 

Thanks & Regards

 

3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: Anonymous

 

Hope I have not asked for anything unachievable.

Message 3 of 4
Anonymous
in reply to: Anonymous

Again rephrasing the question in the hope of getting some reply.

 

I have two x,y in millemeters:

 

-1833709.80286033,-577277.227451012

-1849457.51109224,-571583.279971418

 

Now I insert the cad using origin to origin method and via api draw the pipe using the above x,y positions. The Pipe draws fine.

 

Now  I insert the cad using center to center method and via api draw the pipe using the above x,y positions. The Pipe draws but very far from the cad drawing.

 

For this purpose I need to have the formula/algorithm/help/direction  to convert the units from center to center  TO origin to origin.

 

Thanks & Regards

Message 4 of 4
Anonymous
in reply to: Anonymous

When you place using ImportPlacement.Centered are you also setting a reference point? If you use ImportPlacement.Centered without setting the reference point, you are actually geting centre to origin, not center to center. You need to set a point that represents the Revit document's center if you want center to center.

 

Or am I misunderstanding and you are placing the DWG imports manually using the UI and then only using API for the pipe placement?

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Forma Design Contest


Rail Community