Create Smiliar

Create Smiliar

hakansupurkeci
Enthusiast Enthusiast
533 Views
3 Replies
Message 1 of 4

Create Smiliar

hakansupurkeci
Enthusiast
Enthusiast

How can I link two models in code with Create Similar?

 

 

0 Likes
Accepted solutions (1)
534 Views
3 Replies
Replies (3)
Message 2 of 4

jeremy_tammik
Alumni
Alumni
Accepted solution

Can you link two models manually in the user interface using Create Similar? 

 

How do you do that? 

 

To determine how to achieve the same programmatically, you can analyse the resulting model of the manual operation using RevitLookup and other tools. That will show you what Revit elements are involved, their properties and relationships. That knowledge will help determine how to approach the task programmatically. Here are some examples of how to proceed:

 

https://thebuildingcoder.typepad.com/blog/2017/01/virtues-of-reproduction-research-mep-settings-onto...

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 3 of 4

hakansupurkeci
Enthusiast
Enthusiast
Firstly, thanks for your response.

I connected the links of the element I added with the "Family Example" added to the connector of the selected element using the "ConnecTo ()" method. This worked.

Thank you again for your answer, helped me find the way.
0 Likes
Message 4 of 4

jeremy_tammik
Alumni
Alumni

Congratulations on solving, and thank you for your appreciation. Very glad it helped!

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes