Using a lisp to edit the cui

Using a lisp to edit the cui

Anonymous
Not applicable
752 Views
7 Replies
Message 1 of 8

Using a lisp to edit the cui

Anonymous
Not applicable
So, I've been exploring the internet and tinkering with AutoCAD for a way to write a script that can functionally change a users cui settings so i can insert a custom ribbon, toolbar, with custom lisp commands. 


at this point i don't think its possible but I'm holding out hope that it can be done. anyone got a solution?

0 Likes
753 Views
7 Replies
Replies (7)
Message 2 of 8

JTBWorld
Advisor
Advisor

There is an AutoLisp forum where you can get better help. But for what you want to do I suggest using .NET. 


Jimmy Bergmark
JTB World - Software development and consulting for CAD and license usage reports
https://jtbworld.com

0 Likes
Message 3 of 8

rkmcswain
Mentor
Mentor

I've been doing this for many years, but just by using a partial menu, loaded onto whatever main menu the user has loaded. The only lisp code involved is one that loads the partial menu without the user having to know anything about it (name, location, etc.)

R.K. McSwain     | CADpanacea | on twitter
0 Likes
Message 4 of 8

Anonymous
Not applicable

i dont think i understand what your trying to say.

im trying to use a lisp to manipulate the cui.

 

0 Likes
Message 5 of 8

Anonymous
Not applicable

so if you have been doing it do you know the code that can be used to accomplish this?

0 Likes
Message 6 of 8

rkmcswain
Mentor
Mentor

Yes, I do. 

R.K. McSwain     | CADpanacea | on twitter
0 Likes
Message 7 of 8

Anonymous
Not applicable

so do you mind sharing the code?

0 Likes
Message 8 of 8

rapidcad
Collaborator
Collaborator

@Anonymous you can use something like the following which is simple Autolisp:

(command ".cuiload" "C:\\MYCADfolder\\MYsubfolder\\MY_MENU.cuix")

However there is a lot more you can do if you want to add partial menus for various user groups. I agree with Jimmy though - I think you should ask a few more specific questions in the Visual Lisp or .net customization forums 

ADN CAD Developer/Operator
0 Likes