Originally Posted by
MATT_MERCER_2000
A question I have is: I have created lisp routine that switches layers on and off. I work in an architectural firm. For example main floor is "mp" and upper floor is "up" in the lisp routines. I have created main floor palette and an upper floor palette for different blocks . When I hit "mp" I would like the mainfloor palette to load automatically. When I hit "up" for the upper floor then it automatically switches to the upper floor palette. Is there a command to load tool palettes and unload? Thanks for any help Matt
Matt,
To change tool pallettes, you will need to put them into seperate directories and change the directory path. When you change the path, the tool pallette will update itself. Here is the VLisp way to change the directory:
Code:
(setq pFiles (vla-get-files (vla-get-preferences (vlax-get-acad-object)))) ;;get file preferences
(setq tpPath (vla-get-toolPallettePath pFiles)) ;;get current tool pallette path
(setq tpPath "C:\\ACAD\\ToolPallette\\up") ;;set your path here
(vla-put-toolPallettePath pFiles tpPath) ;;set tool pallette path
HTH,