0 Replies Latest reply on Oct 3, 2014 8:47 AM by Chris Christy

    Hide Design Table

    Chris Christy

      My macro is reading values from the design table to populate some comboboxes. I have been able to connect everything properly and populate everything as needed. However, i would prefer if the Design Table was hidden after I activate it. Is there a way to do this so it never shows on screen? I know I can use Document Manager to access it without ever opening the file, but for now I just want to do it from the open part.

       

      Option Explicit

      Public swApp As SldWorks.SldWorks
      Public swPart As SldWorks.ModelDoc2
      Public pm As clsPropMgr

      Public swDesTable As SldWorks.DesignTable
      Public bRet As Boolean

      Sub main()

      Set swApp = Application.SldWorks
      Set swPart = swApp.ActiveDoc

      Set swDesTable = swPart.GetDesignTable
      bRet = swDesTable.Attach

      'Create a new instance of the PropertyManager class
      Set pm = New clsPropMgr

      pm.Show

      End Sub