.NET

.NET

Reply
Contributor
25 Posts
1 Kudo
Registered: ‎05-03-2010
Post 1 of 3
Accepted Solution

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

187 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
25 Posts
1 Kudo
Registered: ‎05-03-2010
Post 2 of 3

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
25 Posts
1 Kudo
Registered: ‎05-03-2010
Post 3 of 3

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