Author Topic: Set Main CUI  (Read 1654 times)

0 Members and 1 Guest are viewing this topic.

Oak3s

  • Guest
Set Main CUI
« on: June 04, 2010, 10:43:59 PM »
I came across this bit of code to set the enterprise cui but I am unable to modify it to set the main cui.

Code: [Select]
  (vl-load-com)
  (setq files (vla-get-files (vla-get-preferences (vlax-get-acad-object))))
  (vla-put-EnterpriseMenuFile files "***path***") ;modify for path
  (princ)

Could someone help me set the main cui as well? Thanks.

Jeff_M

  • King Gator
  • Posts: 4098
  • C3D user & customizer
Re: Set Main CUI
« Reply #1 on: June 05, 2010, 01:35:19 AM »
How about:
Code: [Select]
(vla-put-menufile files "***path***")

Oak3s

  • Guest
Re: Set Main CUI
« Reply #2 on: June 08, 2010, 01:40:20 PM »
:) Thats what I thought it would be. Tried it and it didnt work. Well.... :oops: slightly embarrassing...it would help if my path was correct.

I wasnt sure if the menufile would work in the first place. I am very new to visual lisp. So when it didnt.......maybe someone can use this in the future. GET YOUR PATHS RIGHT ;)

Hangman

  • Swamp Rat
  • Posts: 566
Re: Set Main CUI
« Reply #3 on: June 08, 2010, 01:58:06 PM »
...
 ... maybe someone can use this in the future. GET YOUR PATHS RIGHT ;)

Yeah, ... NOW you tell me.  :wink:
Hangman  8)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Drafting Board, Mechanical Arm, KOH-I-NOOR 0.7mm
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~