Author Topic: AutoCAD 2019 Toolbar Icon "?" - code to fix  (Read 2230 times)

0 Members and 1 Guest are viewing this topic.

ronjonp

  • Needs a day job
  • Posts: 7527
AutoCAD 2019 Toolbar Icon "?" - code to fix
« on: April 16, 2018, 05:22:39 PM »
Nothing groundbreaking, but based off the thread HERE ( for some reason I cannot edit my posts anymore ) here's updated code that isn't as 'heavy' as my previous solution to this problem.

Code - Auto/Visual Lisp: [Select]
  1. (defun fix2019toolbars (menus)
  2.   ;; RJP - 04.16.2018
  3.   (cond
  4.     ;; If AutoCAD 2019
  5.     ((= 23 (atof (substr (getvar 'acadver) 1 4)))
  6.        (if (vl-position (strcase (vla-get-name x)) (mapcar 'strcase menus))
  7.          (vlax-for tb (vla-get-toolbars x)
  8.            (cond ((= -1 (vlax-get tb 'visible)) (vlax-put tb 'visible 0) (vlax-put tb 'visible -1)))
  9.          )
  10.        )
  11.      )
  12.     )
  13.   )
  14.   (princ)
  15. )
  16. ;; Usage - list of menus to reload
  17. ;; (fix2019toolbars '("IDT" "AutoCADTools" "Bluebeam"))

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

RGUS

  • Newt
  • Posts: 106
Re: AutoCAD 2019 Toolbar Icon "?" - code to fix
« Reply #1 on: April 16, 2018, 08:07:17 PM »
Nothing groundbreaking, but based off the thread HERE ( for some reason I cannot edit my posts anymore ) here's updated code that isn't as 'heavy' as my previous solution to this problem.

Code - Auto/Visual Lisp: [Select]
  1. (defun fix2019toolbars (menus)
  2.   ;; RJP - 04.16.2018
  3.   (cond
  4.     ;; If AutoCAD 2019
  5.     ((= 23 (atof (substr (getvar 'acadver) 1 4)))
  6.        (if (vl-position (strcase (vla-get-name x)) (mapcar 'strcase menus))
  7.          (vlax-for tb (vla-get-toolbars x)
  8.            (cond ((= -1 (vlax-get tb 'visible)) (vlax-put tb 'visible 0) (vlax-put tb 'visible -1)))
  9.          )
  10.        )
  11.      )
  12.     )
  13.   )
  14.   (princ)
  15. )
  16. ;; Usage - list of menus to reload
  17. ;; (fix2019toolbars '("IDT" "AutoCADTools" "Bluebeam"))

Thanks Ron,
One would think ADESK might have provided a solution as well all ready.

ronjonp

  • Needs a day job
  • Posts: 7527
Re: AutoCAD 2019 Toolbar Icon "?" - code to fix
« Reply #2 on: April 16, 2018, 09:20:53 PM »
Nothing groundbreaking, but based off the thread HERE ( for some reason I cannot edit my posts anymore ) here's updated code that isn't as 'heavy' as my previous solution to this problem.

Code - Auto/Visual Lisp: [Select]
  1. (defun fix2019toolbars (menus)
  2.   ;; RJP - 04.16.2018
  3.   (cond
  4.     ;; If AutoCAD 2019
  5.     ((= 23 (atof (substr (getvar 'acadver) 1 4)))
  6.        (if (vl-position (strcase (vla-get-name x)) (mapcar 'strcase menus))
  7.       (cond ((= -1 (vlax-get tb 'visible)) (vlax-put tb 'visible 0) (vlax-put tb 'visible -1)))
  8.     )
  9.        )
  10.      )
  11.     )
  12.   )
  13.   (princ)
  14. )
  15. ;; Usage - list of menus to reload
  16. ;; (fix2019toolbars '("IDT" "AutoCADTools" "Bluebeam"))

Thanks Ron,
One would think ADESK might have provided a solution as well all ready.
They know about it .. timeline on fix ... who knows.  :?
« Last Edit: April 16, 2018, 10:40:23 PM by ronjonp »

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

dgorsman

  • Water Moccasin
  • Posts: 2437
Re: AutoCAD 2019 Toolbar Icon "?" - code to fix
« Reply #3 on: April 17, 2018, 10:01:12 AM »
Check the "point-oh-one" fix - it may have been included in that.  Otherwise, solving it on their end may take a little more work.
If you are going to fly by the seat of your pants, expect friction burns.

try {GreatPower;}
   catch (notResponsible)
      {NextTime(PlanAhead);}
   finally
      {MasterBasics;}

ronjonp

  • Needs a day job
  • Posts: 7527
Re: AutoCAD 2019 Toolbar Icon "?" - code to fix
« Reply #4 on: April 17, 2018, 10:21:42 AM »
Check the "point-oh-one" fix - it may have been included in that.  Otherwise, solving it on their end may take a little more work.
Just updated .. no dice.


Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC