Aftertouch Posted June 2, 2023 Posted June 2, 2023 Hi all, When i switch from 'Model' to 'Layout' in AutoCAD-Map-3D, the ribbon changes tot 'Layout Tools'. I know i can change the setting 'Full Focus' to 'Full without Focus' in the CUI interface. But is there a way i can manage this using LISP, so i push this setting to all users? Quote
Steven P Posted June 2, 2023 Posted June 2, 2023 not the answer, but I ditch the ribbon as soon as I can, gives me more drawing area rather than more ribbon area Not sure if there is anything in this that might help? (defun c:setupworkspace ( / MyWorkspace ) ;;Get workspace name to edit menubars later (setq MyWorkspace (getvar "wscurrent") ) ;;close ribbon (command "ribbonclose") ;;Show menubars / toolbar (setvar 'menubar 1) ;;menus (command "-toolbar" "draw" "s") (command "-toolbar" "draw order" "s") (command "-toolbar" "layers" "s") (command "-toolbar" "modify" "s") (command "-toolbar" "standard" "s") (command "-toolbar" "styles" "s") (command "-toolbar" "properties" "s") (command "properties") ;;ViewCube (command "DISPLAYVIEWCUBEIN2D" "Off") (command "DISPLAYVIEWCUBEIN3D" "On") ;;modelspace paper colour, RGB "255 255 255" = white "0 0 0" = black (defun somefunc (x y z) (apply '+ (mapcar 'lsh (list x y z) '(16 8 0))) ) (setenv "Background" (itoa (somefunc 255 255 255))) ; background colour ;;Go to model space (setvar "ctab" (nth 0 (layoutlist) )) (setvar "ctab" "Model" ) ) Quote
rcb007 Posted June 2, 2023 Posted June 2, 2023 Nice idea. Ditching the ribbon all together. Alot of people do not even know about the menubar being on. Quote
Aftertouch Posted June 2, 2023 Author Posted June 2, 2023 Too bad the 'MenuBar' is not present in AutoCAD-MAP-3D... 1 Quote
troggarf Posted June 4, 2023 Posted June 4, 2023 This is a setting that I always set up during the installation process when I set up a new machine for people. It would be cool if we could set this programmatically, but I still do this manually. Luckily we have a small Civil firm. Quote
BIGAL Posted June 5, 2023 Posted June 5, 2023 I use a lisp to set all the support paths, user toolbars and load custom menu's, so no reason not to add the set menu as part of this code. Happy to provide a sample. Quote
Aftertouch Posted June 6, 2023 Author Posted June 6, 2023 Hi All, Setting up a new system is not a problem. Just changing this ribbon setting is a pain in the ass. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.