Hypermesh TCL script to export solver deck

Sebastian Yang
Sebastian Yang Altair Community Member
edited November 2022 in Community Q&A

Hi,

 

I am trying to export a model using scripting. What I do is I export it manually and then I check the command.tcl file. But in this case no code was recorded with my action of exporting the solver deck.

Is there any way to record a macro of exporting a solver deck?

This is what I´d like to do with a script:

image

Welcome!

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

Best Answer

  • PaulAltair
    PaulAltair
    Altair Employee
    edited November 2022 Answer ✓

    it should be there in your command.tcl, line should begin:

    *feoutputwithdata

    did you actually click 'export'? it won't be written to command file until you do that

    Anyway, for more information, documentation for the tcl is here:

    feoutputwithdata in hm documentation

Answers

  • PaulAltair
    PaulAltair
    Altair Employee
    edited November 2022 Answer ✓

    it should be there in your command.tcl, line should begin:

    *feoutputwithdata

    did you actually click 'export'? it won't be written to command file until you do that

    Anyway, for more information, documentation for the tcl is here:

    feoutputwithdata in hm documentation

  • Sebastian Yang
    Sebastian Yang Altair Community Member
    edited November 2022

    it should be there in your command.tcl, line should begin:

    *feoutputwithdata

    did you actually click 'export'? it won't be written to command file until you do that

    Anyway, for more information, documentation for the tcl is here:

    feoutputwithdata in hm documentation

    Hi Paul,

     

    Ok, I could find the lines of codes that do the output. It is not in the command.tcl, instead it  is in a file called command1.tcl.  (I also have a command2.tcl...)

     

    Thanks for the help.

     

  • Ben Buchanan
    Ben Buchanan
    Altair Employee
    edited November 2022

    Hi Paul,

     

    Ok, I could find the lines of codes that do the output. It is not in the command.tcl, instead it  is in a file called command1.tcl.  (I also have a command2.tcl...)

     

    Thanks for the help.

     

    Yes this is the new way of handling command files.  There is one for each session now.

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.