Add to the CUI "LISP Files" section using .NET

Add to the CUI "LISP Files" section using .NET

Anonymous
Not applicable
713 Views
2 Replies
Message 1 of 3

Add to the CUI "LISP Files" section using .NET

Anonymous
Not applicable

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?

0 Likes
Accepted solutions (1)
714 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
I should add that I'm actually referring to AutoCAD 2014 CUIX not CUI. Couldn't find a way of editing my original post. Apologises
0 Likes
Message 3 of 3

Anonymous
Not applicable
Accepted solution

The solution was to use csMain.SaveAs(menuFile + ".cuix"); instead of csMain.Save();

Looks like there's a bug in the API

0 Likes