How to find an Element inside a connection API

How to find an Element inside a connection API

Benjamin.Ainsworth
Contributor Contributor
183 Views
0 Replies
Message 1 of 1

How to find an Element inside a connection API

Benjamin.Ainsworth
Contributor
Contributor

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:

BenjaminAinsworth_0-1730881317008.png

 

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? 

0 Likes
184 Views
0 Replies
Replies (0)