TCL Command for Finding Elements Containing a Given Node in HyperView

juniorzllsaoirse1230
juniorzllsaoirse1230 New Altair Community Member

Hi,everyone

In HyperView, I want to retrieve the element IDs that contain a given node ID. Which command should I use?

Tagged:

Answers

  • Michael Herve
    Michael Herve
    Altair Employee

    hello @juniorzllsaoirse1230 ,

    please use *findmark to get elements including a given node.

    Here's an example in this video:

    Michael

  • Cesar_Rivas1
    Cesar_Rivas1 Altair Community Member

    hello. In hyperview, as far as I know, there is no direct way to get the elements attached to some nodes. I faced that issue some years ago, and the solution was to do a couple of queries to get the elements attached to the nodes. See the attached tcl file. it get the elements using spheres with origin in the node coordinates. It will create a user set with the elements attached to the nodes. I tested in Hyperview 2022.3 and 2024.1. Also, I tried my best to comment the code but there are no warranties.

    you need to modify the variables 'node_list' and 'radius', see below as an example.

    set node_list [ list 10008516 10007226 ]
    set radius 20.0

    best regards,

    cesar

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.