Possible to convert pipe back to pipe placeholder?

Possible to convert pipe back to pipe placeholder?

Anonymous
Not applicable
10,111 Views
2 Replies
Message 1 of 3

Possible to convert pipe back to pipe placeholder?

Anonymous
Not applicable

Hi,

 

I'm fairly new to booth Revit and it's API.

I wonder if it would be possible to convert a pipe, with it's fittings, back to a pipe placeholder.

Thankful for any help and suggestions.

 

Regards

Mikael

0 Likes
Accepted solutions (1)
10,112 Views
2 Replies
Replies (2)
Message 2 of 3

jeremytammik
Autodesk
Autodesk
Accepted solution

Dear Mikael,

 

Creating a pipe placeholder is very simple.

 

All you need, basically, is the start and end point.

 

Here is some sample code:

 

http://thebuildingcoder.typepad.com/blog/2011/07/mep-placeholders.html

 

Since the start and end points are immediately provided by the pipe start and end point, handling the pipes is pretty trivial.

 

You might loose your fitting information, though.

 

You might be able to store that somewhere and implement code to recreate them again when desired.

 

Cheers,

 

Jeremy



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

0 Likes
Message 3 of 3

Anonymous
Not applicable

Many thanks Jeremy!

 

Exactly what I've been looking for 🙂

0 Likes