.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
matinau
476 Views, 2 Replies

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

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?

2 REPLIES 2
Message 2 of 3
matinau
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
Message 3 of 3
matinau
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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost