Community
Is it possible to add lisp files to the CUI "LISP Files" section using .NET?
I can get the collection using:
var csMain = new CustomizationSection(Application.GetSystemVariable("MENUNAME"));
LspFileCollection lspFiles = csMain.MenuGroup.LspFiles;
And this to add my lisp to the collection:
lspFiles.Add(lispFile);
Unfortunately the changes are not saved and no lisps are loaded?
Solved! Go to Solution.
The solution was to use csMain.SaveAs(menuFile + ".cuix"); instead of csMain.Save();
Looks like there's a bug in the API
Can't find what you're looking for? Ask the community or share your knowledge.