How to find an Element inside a connection API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Good day
I am working with an addin that creates connections automatically, the connections require a list of ElementIds for all connected items in order to build correctly. When the connection only holds members then this is a non issue, however in the case where I wish to create a connection built from other connection elements I am having an issue.
I currently have a base plate connection that is built. I wish to now build a "Gusset plate to Column and Base Plate" Connection. I require the column, a brace and the base plate, when doing this manually you can select the parts individually:
As you can see, only the plate is selected, not the whole connection.
In the coding side I have access to the StructuralConnectionHandler Object for the BasePlate connection, and this gives access to SubElements, but I do not seem to be able to get the Element from this SubElement. I can access a Unique ID, but when I try to return the element with this ID, I get a null value. It seems like the connection is hiding the plate element. I can access the plate element if I break the connection manually, but I require all connections to be intact.
Does anyone know how to access this plate's element?