General Mechanical

General Mechanical

Topics related to Mechanical Enterprise, Motion, Additive Print and more.

How to translate parameter to jscript ?

TAGGED: 

    • chenqingsen
      Subscriber
    • Erik Kostson
      Ansys Employee
      Hi

      As this is not part of our scripting tools (ACT) and not part of
      the act script suite, we (Ansys employees) cannot provide any help in regards to
      this (e.g., jscript).

      What is though, that you want to do? Do you want to export to text
      file, say some results, like when we do right mouse button click on the
      results object in mechanical (say total deformation result) and then choose
      export to text file (which export results to a text file)?

      Thank you

      Erik
    • chenqingsen
      Subscriber
      Yes, I want to export the result table data to txt file in ACT, but what i want is not doing right mouse button clicking on the results object in mechanical,it is that we do right mouse button to export table result.


    • Erik Kostson
      Ansys Employee
      Hi

      OK - thank you.
      In 2021 R2 there could be a possible way to do what you need, and with the native documented and supported act/api calls.

      See in the help manual for act scripts, it is called:
      act_script_demo_modal_acoustic

      Thank you and kind regards

      Erik
    • chenqingsen
      Subscriber
      OK, I will install ANSYS 2021R2 and try it . Thinks
      By the way , can you share "act_script_demo_modal_acoustic" in which help manualpart ? The screen or link ?
    • Erik Kostson
      Ansys Employee
      Hi

      The script is called act and script and demo and modal and acoustic so if you search for that in the help manual it should find it.

      The link is:

      Modal Acoustic Analysis (ansys.com)

      https://ansyshelp.ansys.com/account/secured?returnurl=/Views/Secured/corp/v212/en/act_script/act_script_demo_modal_acoustic.html?q=act%20and%20script%20and%20demo%20and%20modal%20and%20acoustic

      Open your help from workbench and then copy and paste the above link address.

      thank you

      Erik
    • chenqingsen
      Subscriber
      You mean this ? It seems that we can get the table data from python. OK. I will try after installing ANSYS 2021R2, thinks
    • chenqingsen
      Subscriber
      in the static structure, it can't work.
      But in Modal Acoustic Analysis ,it can work.
      So why ?


    • Erik Kostson
      Ansys Employee
      Hi

      Unfortunately I do not know, but it seems it is not working for static deformation results.

      All the best

      Erik
    • chenqingsen
      Subscriber
      Thinks
Viewing 9 reply threads
  • The topic ‘How to translate parameter to jscript ?’ is closed to new replies.