how to use tcl script in hypermesh?

shubham Dhokare_21832
shubham Dhokare_21832 Altair Community Member
edited July 2022 in Community Q&A

Does anyone know about how to use tcl script in hypermesh? for example tcl script to organize geometries in their respective components..

I receive 90 geometry files and only 15 to 16 are needed from them. So by making new component and moving the solid in that respected component it takes lot time and patience. I have tried by calculating mass of each solids and according to it tried to organize. But the solids that I receiving from my client changes (like small feature change) every time. So is their any other criteria I can use to oraganize this geometries .... if any please guide...

 

thanks 

Shubham Dhokare

 

Tagged:

Best Answer

  • Nagahashi Kouta
    Nagahashi Kouta Altair Community Member
    edited July 2022 Answer ✓

    Thanks for the reply, Can you please share link of the tutorials ... Cause I try to find but didn't got it

    Hi, shubham Dhokare

    Sorry, I can't access Google for some reasons, so I can't help you.

    You can try contacting your local office of Altair to get the tutorials.

Answers

  • Nagahashi Kouta
    Nagahashi Kouta Altair Community Member
    edited July 2022

    Hi, shubham Dhokare

    If there are only small feature change for each new solid,the length&width&height of the new solid will match the old one(not only length&width&height ,the x_min y_min z_min x_max y_max z_max will be the same).

    Try to use "hm_getboundingbox" to get the information。

     
  • shubham Dhokare_21832
    shubham Dhokare_21832 Altair Community Member
    edited July 2022
    Thanks Nagahashi, So if I create a bounding box for solid then how is that solid going to move in respected component.
  • Nagahashi Kouta
    Nagahashi Kouta Altair Community Member
    edited July 2022

    Hi, shubham Dhokare

    Sorry, can you provide more information? I don't particularly understand.

    If the old solid and the new solid have the same span in the XYZ direction, we think the two solids match.

    Use the following command to get the component name of the old soild.

    "hm_getvalue solids id=old_solid_id dataname=collector.name"

    Use the following command to move the new solid to the collector below.

    *createmark solids 1 "new_solid_id"

    *movemark solids 1 "component_name"

  • shubham Dhokare_21832
    shubham Dhokare_21832 Altair Community Member
    edited July 2022
    Thank You Nagahashi I am new in hypermesh software and I didn't know how to create tcl script. I need a guidance to create this script. And actually I don't have any basic idea of script also. So if it possible to share any guide or anything so that I can follow it and learn it... That will be lot helpful for me
  • Nagahashi Kouta
    Nagahashi Kouta Altair Community Member
    edited July 2022

    Hi, shubham Dhokare

    Sorry, I followed Altair's official tutorials and learned how to write scripts.

    Maybe you could google the official tutorials.

  • shubham Dhokare_21832
    shubham Dhokare_21832 Altair Community Member
    edited July 2022
    Thanks for the reply, Can you please share link of the tutorials ... Cause I try to find but didn't got it
  • Nagahashi Kouta
    Nagahashi Kouta Altair Community Member
    edited July 2022 Answer ✓

    Thanks for the reply, Can you please share link of the tutorials ... Cause I try to find but didn't got it

    Hi, shubham Dhokare

    Sorry, I can't access Google for some reasons, so I can't help you.

    You can try contacting your local office of Altair to get the tutorials.