Modifying Analysis type of a Load Step

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

Hello Everyone,

 

I am trying to find the right commant to modify the analysis type of a loadstep by a small script.

When I am looking for the cmd. file after doing this manually using the gui, I see the following command: *setvalue loadsteps id=1 STATUS=2 OS_TYPE=1

But nothing happens when I insert this command into my small code. No error message jumps up, but the setting of the analysis type will be not changed.

In the small macro I created it looks like the following:

*retainmarkselections 1
*renamecollector loadsteps 'loadstep1' 'temp'
*retainmarkselections 0
*setvalue loadsteps id=1 STATUS=2 OS_TYPE=1

But the result is just the creation of the load step, but without setting the Analysis type:

<?xml version="1.0" encoding="UTF-8"?>56a8e156a380f_Analysistype.thumb.jpg.415

 

Tagged:

Answers

  • tinh
    tinh Altair Community Member
    edited January 2016

    Hi

    analysis type is stored in attribute #4060

    so you have to add this command

    *setvalue loadsteps id=1 STATUS=1 4060='STATICS'

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited January 2016

    thank you

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited January 2016

     

     

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited January 2016

    Dear tinh!

     

    Thank you very much for the answer!

    I tried it, but actually nothing happened when running the command.

    I see the Analysis Type remains unmodified as it is to see in the upper picture.

    D o you have any further idea?

    Thanks in advance for your comments!

     

    Bests, David

  • tinh
    tinh Altair Community Member
    edited February 2016

    Hi,

    Perhaps new GUI did not write enough commands to cmf file

    you can still use old method to update analysis type

    -delete cmf file

    -enter panel loadstep, select 'temp' loadstep, switch analysis type to Linear Static > click Update

    - open the cmf file to get relevant commands (remember to remove '(', ',' and ')' by space)

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited March 2016

    Pls help me the ways to setup the analysis method , constraint or Forece  in the Loadstep option by Tcl

    <?xml version="1.0" encoding="UTF-8"?>2016-03-24_13-05-01.png

  • Rahul Rajan_21763
    Rahul Rajan_21763 New Altair Community Member
    edited May 2016

    You can do this through GUI.If you are commercial customer you can contact local hyperworks support for customization.