how to "save project as" or smth like that via mechanical scripting?

Options
cr1stall97
cr1stall97 Member Posts: 3 **

Good afternoon, can anyone tell me how to "save project as" or smth like that via scripting (i need to proceed many solutions in loop and save each as a different project)

Answers

  • James Derrick
    James Derrick Administrator, Employee Posts: 379
    Ancient Membership 100 Comments 100 Likes 25 Answers
    admin

    Hi @cr1stall97 thanks for your question! I think someone in @Structures-Scripting-Team should be able to help.

  • Rohith Patchigolla
    Rohith Patchigolla Member, Moderator, Employee Posts: 253
    50 Answers 100 Likes 100 Comments Second Anniversary
    ✭✭✭✭

    Hi @cr1stall97 ,

    Below script can be used in Mechanical Scripting Console (Mechanical --> Automation --> Scripting --> Scripting Editor --> "Run Script" icon) to save the entire WB project to the specified path

    journalEngine = ExtAPI.Application.ScriptByName("journaling")
    journalEngine.ExecuteCommandAsync('Save(FilePath="D:/data/test_project.wbpj",Overwrite=True)')
    

    cc @James Derrick