Pipe direction

Pipe direction

Anonymous
Not applicable
589 Views
3 Replies
Message 1 of 4

Pipe direction

Anonymous
Not applicable

Hi,

 

How do I check that a pipe is upward or downward.

 

Thanks & Regards

Sanjay Pandey

0 Likes
590 Views
3 Replies
Replies (3)
Message 2 of 4

jeremytammik
Autodesk
Autodesk

Dear Sanjay,

 

How about simply asking it for its curve and checking the start and end points?

 

Cheers, 

 

Jeremy



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

0 Likes
Message 3 of 4

Anonymous
Not applicable

Hi,

 

I compared the Z of the pipe's start point and end point. If the Z of the pipe's end point is more then the Z of the pipe's start point the pipe if upward and vice versa.

 

Thanks & Regards

Sanjay Pandey

0 Likes
Message 4 of 4

jeremytammik
Autodesk
Autodesk

Dear Sanjay,

 

Good. That is exactly what I meant. I love going to the underlying geometry for non-equivocal results. Glad it helped. Thank you for the confirmation.

 

Cheers,

 

Jeremy



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

0 Likes