Author Topic: Showing and hiding toolbars in AutoCAD 2014  (Read 1872 times)

0 Members and 1 Guest are viewing this topic.

BLuigi1971

  • Guest
Showing and hiding toolbars in AutoCAD 2014
« on: November 27, 2014, 02:32:24 AM »
Hello all,

I'm trying to writing some routines to control the visibility of my own toolbars, after the user switched across different workspaces.

Dim cs As CustomizationSection = New CustomizationSection(my_CuiFile, my_CuiName)
Dim tb As Autodesk.AutoCAD.Customization.Toolbar = cs.MenuGroup.Toolbars.FindToolbarWithName(my_ToolbarName)
tb.ToolbarVisible = ToolbarVisible.hide

After the last instruction the toolbar still stay visible.

In other words my need is to make reference to my toolbars and control their visibility.

Some suggestions are very appreciated.

Thankyou

Luigi

dgorsman

  • Water Moccasin
  • Posts: 2437
Re: Showing and hiding toolbars in AutoCAD 2014
« Reply #1 on: November 27, 2014, 10:19:59 AM »
I believe what you are manipulating is the loaded CUIx content, not the active workspace settings.
If you are going to fly by the seat of your pants, expect friction burns.

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