TCL script to import patran group session file (.ses)

Madlen
Madlen New Altair Community Member
edited March 2023 in Community Q&A

Hello!

 

I need to make a script which is creating sets from patran groups, reading .ses file. In last HyperWorks this function is realised with help of Set Browser. Does somebody know which command can do this in tcl script or how to find this in program folders/scripts?

<?xml version="1.0" encoding="UTF-8"?>image.thumb.png.8801c5a31d871295c33545bba1a26ccc.png

Thank you

Answers

  • Q.Nguyen-Dai
    Q.Nguyen-Dai Altair Community Member
    edited June 2019

    I don't know where's this script. But by checking .SES file, I found the format is simple. So you can write yourself the script :-)

  • Q.Nguyen-Dai
    Q.Nguyen-Dai Altair Community Member
    edited June 2019

    Have a look the script 'default_component.tcl' within  'hm/scripts/browser'.

    Maybe you found some good idea to code.

  • Madlen
    Madlen New Altair Community Member
    edited June 2019

    Hello Q.Nguyen-Dai. Thank you!

    Yes I have already looked at this code, it is for opposite operation export ses; there are some tips here.

  • Unknown
    edited March 2023
    I was exactly the reverse operation! tcl to export .ses file ! Can you tell me exactly where can I find it?
  • Ben Buchanan
    Ben Buchanan
    Altair Employee
    edited March 2023

    I was exactly the reverse operation! tcl to export .ses file ! Can you tell me exactly where can I find it?

    @Giovanni Capasso  Isn't the ExportToSession procedure in the default_component.tcl what you are looking for?

    @Madlen Strange they don't have an import procedure in that same file.