Revit API Links Positioning

Revit API Links Positioning

mahmoudelrawi
Explorer Explorer
632 Views
4 Replies
Message 1 of 5

Revit API Links Positioning

mahmoudelrawi
Explorer
Explorer

Hello all,

 

Does anyone knows if Revit API supports positioning for linked models (center to Center or Base Point to Base Point)?

I am working on Revit 2019.

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

architect.bim
Collaborator
Collaborator

Hi!

When you place new RevitLinkInstance you need to use this overload of Create methor. The third argument is ImportPlacement  Enumeration. Using it you can specify necessary type of placement.


Maxim Stepannikov | Architect, BIM Manager, Instructor
0 Likes
Message 3 of 5

mahmoudelrawi
Explorer
Explorer

Hi

When I make positioning Cenetered or Site , got this massage from reviterror placement.png

0 Likes
Message 4 of 5

architect.bim
Collaborator
Collaborator

Oh I see. Create method really supports only Origin and Shared placement, sorry for the inaccuracy. In case of base point you can try to place link with Origin Enumeration. And then call MoveBasePointToHostBasePoint method. In case of "center" actually I don't know any working solution.


Maxim Stepannikov | Architect, BIM Manager, Instructor
0 Likes
Message 5 of 5

mahmoudelrawi
Explorer
Explorer

thanks Maxim for your response, now i got it