Identifying the connector location connected to pipe?

Identifying the connector location connected to pipe?

Anonymous
Not applicable
469 Views
3 Replies
Message 1 of 4

Identifying the connector location connected to pipe?

Anonymous
Not applicable

pipefitting.JPG

 

In the above image pipe marked as A is connected to 32*25 diameter elbow, where as it is also connected to Cross connector 32*32*32*32 diameter connector.

I have to update a parameter called Pap which should update with the value “32*25 elbow for pipe A”, similarly “for Pipe B 32*32*32*32Cross”, “for Pipe C 32*25 elbow”, “for pipe D 32*25 elbow”.

I am using Revit API’s to compare the location of pipe end and the location of the pipe connectors. When I compared these locations its satisfying for all four pipes. But I need to compare only connector which is connected to pipe end. Because of this all pipe parameter are getting the same values. Instead of “32*25 elbow for pipe A”, similarly “for Pipe B 32*32*32*32Cross”, “for Pipe C 32*25 elbow”, “for pipe D 32*25 elbow”.

Is there any solution for this?

Please provide any solutions.

Thanks in advance.

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

Anonymous
Not applicable

Continuation of previous post.

I have to identify the green bands of the connector, based on the green bands i have to update the parameter, like for pipe marked as A is connected to 32*25 elbow, for pipe A elbow is connected and the green band is connected to this pipe. Similarly for rest of pipes.

0 Likes
Message 3 of 4

jeremytammik
Autodesk
Autodesk

Dear Anusha,

 

In order for anyone to be able to provide any advice at all on this issue, you should probably take your code, shorten it to half its length, and then share it here for us to discuss what might be going wrong.

 

It is hard to say and would be pure guesswork just from your description.

 

If you really seriusly want some hard advice on this, you should probably submit the sample model as well, and ensure that your code compiles and runs in a single click, so that people can try it out for themselves, potantially fix the problem, and test in the real world whether the fix really helps.

 

In other words, please submit a minimal reproducible test case:

 

http://thebuildingcoder.typepad.com/blog/about-the-author.html#1b

 

I hope this helps  🙂

 

Cheers,

 

Jeremy



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

0 Likes
Message 4 of 4

Anonymous
Not applicable

Hi Jeremy,

 

Thanks for the response.

 

I have uploaded the sample model and source code in the below link.

https://app.box.com/s/9jyb2mvjdfz8palrrbc3r4mz1dogyogr

Please provide any suggestion.

0 Likes