.NET

.NET

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

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

183 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 (153 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 (122 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

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.