Automatically create APDL snippet in Mechanical after creating a workflow in Workbench

Jean
Jean Member Posts: 23
10 Comments First Anniversary Name Dropper
**

Hi,

I created two script:
1- The first one creates multiple systems in Workbench ;
2- The second one creates one APDL snippet in each system I created first.

My first script is launched in Workbench environment, while my second script is launched in Mechanical environment.

Is there a way to "merge" these twe script ?
My wish is to run a script which create all my system and the create all my APDL snippet in each system.

Regards,
Jean

Best Answer

Answers

  • Mike.Thompson
    Mike.Thompson Member, Employee Posts: 345
    25 Answers 100 Comments 25 Likes First Anniversary
    ✭✭✭✭

    FYI, one other option that is low-code is to simply have a template project file that contains the systems you want with the APDL snippets already included. Your script can then essentially just open that template and do a save as to make a working copy.
    I highly recommend using templates in this manner instead of trying to code every step as it makes it more transparent to users and templates are easy to change via the UI vs. change in code.

    This does break down if the configuration is dependent on case-specific updates, so those should be parsed out to coded solutions.

  • Jean
    Jean Member Posts: 23
    10 Comments First Anniversary Name Dropper
    **

    thanks
    I will try, but I think it's perfectly what I was searching