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

Madlen
Madlen 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

Tagged:

Answers

  • QuyNguyenDai
    QuyNguyenDai 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 :-)

  • QuyNguyenDai
    QuyNguyenDai 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 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.

  • Jonny_CAP
    Jonny_CAP Altair Community Member
    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.