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: 

Pipe Minimum Length

1 REPLY 1
Reply
Message 1 of 2
ridaabderrahmane
136 Views, 1 Reply

Pipe Minimum Length

ridaabderrahmane
Enthusiast
Enthusiast

Hello everyone,

 

when I create a pipe with the API, I verify that its length is superior to the application short curve tolerance defined by the API (application.ShortCurveTolerance). Otherwise I display a message to the user that the pipe cannot be drawn.

But id I create a pipe and then I create a fitting (tee or elbow) the pipe gets shorter (the fitting takes from the length of the pipe) and even if I did the length verification I get a warning message by Revit telling me that the pipe was too short and needs to be deleted whiche is not what I want.

 

So I want to know how much length the tee or the elbow takes from the pipe so that I can do my verification properly.

 

If anyone have an idea about this problem I would highly appreciate your help.

 

Thanks in advance

0 Likes

Pipe Minimum Length

Hello everyone,

 

when I create a pipe with the API, I verify that its length is superior to the application short curve tolerance defined by the API (application.ShortCurveTolerance). Otherwise I display a message to the user that the pipe cannot be drawn.

But id I create a pipe and then I create a fitting (tee or elbow) the pipe gets shorter (the fitting takes from the length of the pipe) and even if I did the length verification I get a warning message by Revit telling me that the pipe was too short and needs to be deleted whiche is not what I want.

 

So I want to know how much length the tee or the elbow takes from the pipe so that I can do my verification properly.

 

If anyone have an idea about this problem I would highly appreciate your help.

 

Thanks in advance

1 REPLY 1
Message 2 of 2

jeremy_tammik
Autodesk
Autodesk

Yes, sure. Try it out, like this:

  

  

The minimum pipe length almost certainly depends on the specific fitting and its properties. Maybe you can use those properties to calculate the specific minimum pipe length on a per-fitting basis. Please let us know what you find out and how you end up solving this. Thank you!

   

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

Yes, sure. Try it out, like this:

  

  

The minimum pipe length almost certainly depends on the specific fitting and its properties. Maybe you can use those properties to calculate the specific minimum pipe length on a per-fitting basis. Please let us know what you find out and how you end up solving this. Thank you!

   

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

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

Post to forums  

Autodesk Design & Make Report