Hello,
I'm looking for a way to create a new memory file through an automation script.
Can someone direct me to the correct documentation or a similar Q&A?
Thank you.
Hi David,
You can create a memory file with this snippet.
private void CreateScriptMemory(Engine engine)
{
SetScriptMemoryValuesMessage setMemoryFile = new SetScriptMemoryValuesMessage("NameOfTheMemoryFile");
setMemoryFile.Values = new ScriptMemoryValue[] { new ScriptMemoryValue(0, "MemoryFileValue", "MemoryFileDescription" ) };
engine.SendSLNetMessage(setMemoryFile);
}
note: This is an internal call and we do not recommend using this, as it is not officially supported and we cannot guarantee that it will still work in the future. As a rule, you should avoid using SLNet calls, as these are subject to change without notice.
Regards,
Hi David,
This should work.
private void DeleteScriptMemory(Engine engine)
{
DeleteScriptMemoryMessage delMemoryMessage = new DeleteScriptMemoryMessage();
delMemoryMessage.Name = "NAMEOFTHEMEMORYFILE";
engine.SendSLNetMessage(delMemoryMessage);
}
note: This is an internal call and we do not recommend using this, as it is not officially supported and we cannot guarantee that it will still work in the future. As a rule, you should avoid using SLNet calls, as these are subject to change without notice.
Thank you. I appreciate it! =)
Thank you. Do you also have a snippet for deleting a memory file? This would help me a lot.