Selecting only 3D elements

JaNo
JaNo Altair Community Member
edited May 2023 in Community Q&A

Hi, how can I select only 3D elements via tcl script? I tried *createmark , but the only possible option is "by config" choosing specific element types. I want to do it for all solid elements.

Tagged:

Best Answer

  • Adriano A. Koga
    Adriano A. Koga
    Altair Employee
    edited May 2023 Answer ✓

    i don't have a direct command for that, but running the command you've mentioned, you could use multiple config codes.

    For 2D, i.e:

    *createmark elems 1 "by config" 103 104 105 ...

     

    For 3D, i.e:

    *createmark elems 1 "by config" 203 204 205 206 207 208 ...

     

    Each of these codes represent a certain element type, extracted from the documentation, under 'Data Names'.

    image

Answers

  • Adriano A. Koga
    Adriano A. Koga
    Altair Employee
    edited May 2023 Answer ✓

    i don't have a direct command for that, but running the command you've mentioned, you could use multiple config codes.

    For 2D, i.e:

    *createmark elems 1 "by config" 103 104 105 ...

     

    For 3D, i.e:

    *createmark elems 1 "by config" 203 204 205 206 207 208 ...

     

    Each of these codes represent a certain element type, extracted from the documentation, under 'Data Names'.

    image

  • JaNo
    JaNo Altair Community Member
    edited May 2023

    i don't have a direct command for that, but running the command you've mentioned, you could use multiple config codes.

    For 2D, i.e:

    *createmark elems 1 "by config" 103 104 105 ...

     

    For 3D, i.e:

    *createmark elems 1 "by config" 203 204 205 206 207 208 ...

     

    Each of these codes represent a certain element type, extracted from the documentation, under 'Data Names'.

    image

    Thanks :) Documentation is so unreadable for me :/ Can you hint to me on how to get node coordinate, I found the command hm_getentityvalue but I can find no explanation of it in the documentation. Could you help me?

    Any hints how to learn hm scripting? There are not many resources.