How can I place "Reducer" - Pipe fitting via Revit API..? Help me

How can I place "Reducer" - Pipe fitting via Revit API..? Help me

holyhuman1
Contributor Contributor
585 Views
2 Replies
Message 1 of 3

How can I place "Reducer" - Pipe fitting via Revit API..? Help me

holyhuman1
Contributor
Contributor

Please let me know how to do this.. Thank you all!

제목 없음3.png

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

jeremy_tammik
Alumni
Alumni

The fitting is a family instance. 

 

Afaik, the main way to place a family instance it by using one of the NewFamilyInstance overloads :

 

https://www.revitapidocs.com/2020/451ee414-cea0-e9bd-227b-c73bc93507dd.htm

 

Another way that probably works better with the optimised Revit workflow and best practices is to let the pipe routing settings determine and place the appropriate fitting automatically:

  

https://www.google.com/search?q=routing+preferences&as_sitesearch=thebuildingcoder.typepad.com

    

In any case, you should research the optimal workflow and best practices to address your task at hand manually through the user interface first.

 

To do so, please discuss and analyse it with an experienced application engineer, product usage expert, or product support.

 

Once you have got that part sorted out, it is time to step up into the programming environment, cf. How to research to find a Revit API solution:

 

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

  

I hope this clarifies.

  

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

holyhuman1
Contributor
Contributor
Accepted solution

Thank you jeremy, your always generously helping people here is very nice.

It is solved thank to googling and other's help.

I solved this via using NewTransitionFitting method in Document Class to solved this.

 

Hope this hint help other one.

 

Thank you all!

0 Likes