Enhance SAM with features tailored to your specific needs! We collaborate with companies, universities, and organizations to privately fund new capabilities or analyses. Your investment drives innovation while benefiting the broader energy community. Email us to learn more.

LK Script - deleting and renaming SAM GUI cases

  • kaiyer
  • Topic Author
More
17 Oct 2020 17:08 #8878 by kaiyer
Let us say we have "case 1" and "case 2" as two cases in SAM.
I can make "case 1" as the active case with the following code snippet.
Code:
active_case("case 1");
How do I delete this active case programatically?
Also how do I rename the active_case programatically?
I want to rename this case as "case 1 - renamed".

Thanks for your help.

Please Log in or Create an account to join the conversation.

  • Paul Gilman
More
19 Oct 2020 14:53 #8886 by Paul Gilman
Replied by Paul Gilman on topic LK Script - deleting and renaming SAM GUI cases
Hello,

It is not possible to delete or rename a case from an LK script. The available functions are:

create_case() to create a new case.

duplicate_case() to make a copy of the active case.

active_case() to set or get the active case.

list_cases() to get a list of cases in the file.

Best regards,
Paul.

Please Log in or Create an account to join the conversation.

Moderators: Paul Gilman
Powered by Kunena Forum