Get Element from Nodes

Post Reply
konstantinosch
Posts: 12
Joined: Mon Jul 29, 2024 5:03 pm

Get Element from Nodes

Post by konstantinosch » Tue Jan 21, 2025 12:48 pm

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

STKO Team
Posts: 2920
Joined: Tue Oct 29, 2019 8:45 am

Re: Get Element from Nodes

Post by STKO Team » Mon Feb 03, 2025 9:03 am

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?

Post Reply