.NET

Reply
Contributor
matinau
Posts: 25
Registered: ‎05-03-2010
Message 1 of 3 (174 Views)
Accepted Solution

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

174 Views, 2 Replies
05-11-2014 09:38 PM

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?

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

Looks like there's a bug in the API

Contributor
matinau
Posts: 25
Registered: ‎05-03-2010
Message 2 of 3 (144 Views)

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

05-12-2014 01:16 AM in reply to: matinau
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
Contributor
matinau
Posts: 25
Registered: ‎05-03-2010
Message 3 of 3 (113 Views)

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

05-13-2014 10:32 PM in reply to: matinau

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

Looks like there's a bug in the API

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.