How to Create a  new Solid from a pipe like Solid ? (to make void cut)

How to Create a  new Solid from a pipe like Solid ? (to make void cut)

ChengboZhang
Enthusiast Enthusiast
2,231 Views
5 Replies
Message 1 of 6

How to Create a  new Solid from a pipe like Solid ? (to make void cut)

ChengboZhang
Enthusiast
Enthusiast

All family Instance  are  made by Adaptive Metrics Generic Template. 

I want steal some info from the "Pipe" like    (as first picture) to create a new one (as the second picture).

Att:  The  pipe's cross section  are not all ways circles, it can makey  be  any arc and line (as the third picture)

 

finally I will  use the new solid to  void cut other instance( as the fourth picture)

 

 

ChengboZhang_1-1606958971386.png

 

 

ChengboZhang_0-1606958958248.png

ChengboZhang_2-1606959412539.png

 

 

ChengboZhang_0-1606959723585.png

 

 

0 Likes
Accepted solutions (2)
2,232 Views
5 Replies
Replies (5)
Message 2 of 6

ChengboZhang
Enthusiast
Enthusiast

The above is a simplified description
The following is an example in a real scenario.  

Thanks in advance.

 

ChengboZhang_1-1606963757805.png

 

 
0 Likes
Message 3 of 6

jeremytammik
Autodesk
Autodesk

Just out of curiosity:

 

Is you final goal to create and display insulation around the pipe?

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 4 of 6

jeremytammik
Autodesk
Autodesk
Accepted solution

Do you really mean Solid when you say Solid?

 

The Revit API Solid class is a non-persistent memory-only geometrical object that is not stored in the database:

 

https://www.revitapidocs.com/2020/7a3b5ac1-c66d-9f81-a11d-9bcd4e026295.htm

 

If that is what you are after, your task is easy.

 

Use the methods on the GeometryCreationUtilities class:

 

https://www.revitapidocs.com/2020/e829700d-48ff-0914-b288-5ceb93d8ee86.htm

 

From the pipe, you can extract the centre line as a curve and the radius.

  

With those, the GeometryCreationUtilities enable you to create the desired solid.

 

 

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 5 of 6

ChengboZhang
Enthusiast
Enthusiast

No, My goal is to   manager  a pipe  intersect  with(or connect with)  another  pipe.

0 Likes
Message 6 of 6

ChengboZhang
Enthusiast
Enthusiast
Accepted solution

Thank you for your kind reply.

The word Solid is ambiguous in Chinese ,sorrry for my poor English. 

I understand what you mean. 

I have solved this problem by delete the void Form

 

ChengboZhang_0-1606994796843.png

 

Also Refer to this article ,it's helperfull.

https://thebuildingcoder.typepad.com/blog/2009/07/revit-form-creation-api.html

 

Thanks~

0 Likes