I came across this bit of code to set the enterprise cui but I am unable to modify it to set the main cui.
(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.