anaStruct icon indicating copy to clipboard operation
anaStruct copied to clipboard

How to find element id

Open tanbin-hasnat-shehab opened this issue 2 years ago • 1 comments

Is there any way to get the element id of a member by vertex or node point co ordinates when entire structure is drawn

tanbin-hasnat-shehab avatar Oct 02 '21 15:10 tanbin-hasnat-shehab

I found this after taking a look at the docs. The link is https://anastruct.readthedocs.io/ .

Find node id based on coordinates:

SystemElements.find_node_id(vertex)[source] Retrieve the ID of a certain location.

Parameters: vertex (Union[Vertex, Sequence[float]]) – Vertex_xz, [x, y], (x, y)

Return type: Optional[int]

Returns: id of the node at the location of the vertex

I hope it helps!

pgalan94 avatar Jan 06 '23 04:01 pgalan94