Page 1 of 1

Get Element from Nodes

Posted: Tue Jan 21, 2025 12:48 pm
by konstantinosch
Hello,

I would like to extract the element id of SSP-BRICK elements from nodes ID or coordinates. Could you help me with this?
The nodes data are saved in the following format:

Code: Select all

node_data = {
    'Node ID': [node.id for node in NODES],
    'X Coordinate': [node.x for node in NODES],
    'Y Coordinate': [node.y for node in NODES],
    'Z Coordinate': [node.z for node in NODES]
}
Thank you very much!

Konstantinos

Re: Get Element from Nodes

Posted: Mon Feb 03, 2025 9:03 am
by STKO Team
Some extra info is required:
  • Are you referring to Python API in STKO?
  • What's the logic? all elements that share at least 1 one from the node_data? or all nodes?