How to get connected fittings of selected item using C#

kite15
Advocate

How to get connected fittings of selected item using C#

kite15
Advocate
Advocate

Hi,

I am trying to get connected fittings by selected Item. can any one helps on that in Fabrication CADmep using C#.

I can get the connector. whereas, not find the fitting please, help !

Thanks and regards,

0 Likes
Reply
570 Views
4 Replies
Replies (4)

nathan.chapman
Collaborator
Collaborator

Can you please clarify what you are trying to do.  You are selecting items then you want to see what is connected to each other?

Nathan Chapman
Production Manager at General Heating and Air Conditioning

Revit Architecture Certified Professional
Revit MEP Mechanical Certified Professional
Revit MEP Electrical Certified Professional
DynaFabrication Package Author

Was this answer helpful? If so, please click the ACCEPT AS SOLUTION or the KUDOS button.
0 Likes

kite15
Advocate
Advocate

Hi,

Attached a snap for better under standing.

Please help................Smiley Frustrated

0 Likes

nathan.chapman
Collaborator
Collaborator

Whats the reason you are grabbing the connector and not the part right away?  Sorry its been a while using the CADmep api but will try to help you out.   Mostly work in Revit now.  

Nathan Chapman
Production Manager at General Heating and Air Conditioning

Revit Architecture Certified Professional
Revit MEP Mechanical Certified Professional
Revit MEP Electrical Certified Professional
DynaFabrication Package Author

Was this answer helpful? If so, please click the ACCEPT AS SOLUTION or the KUDOS button.
0 Likes

jhoward-HOB
Contributor
Contributor

Due to multiple bugs in the Fabrication API, I would say this isn't technically possible in a consistent way using the API in its current state. If you know lisp, then you could gain access to 4+ decimal precision (using List Setup in the right click) via 300 dxf group codes. From there you will have to analyze every part either in the model or in a selection against your baseline part manually creating the associations; which i've done and its ugly. Even that creates a scenario that still cannot be solved; O-Lets. Those you WILL need to use the .Net API and approach it from the basic AutoCAD entity to get its grip point that resides along the pipe centerline. Honestly you could do the whole thing using the Entity grip points because there are no native logical associations with or without the Fab API. CADmep is the best MEP sandbox ever created and thats why people like me can make it do all kinds of things it was never intended to do, but it almost always involves a long hard road...

0 Likes