Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Possible to convert pipe back to pipe placeholder?

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
Anonymous
9801 Views, 2 Replies

Possible to convert pipe back to pipe placeholder?

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

2 REPLIES 2
Message 2 of 3
jeremytammik
in reply to: Anonymous

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

Message 3 of 3
Anonymous
in reply to: jeremytammik

Many thanks Jeremy!

 

Exactly what I've been looking for 🙂

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Forma Design Contest


Rail Community