6 Replies Latest reply on Aug 25, 2017 8:21 AM by Cad Admin

    VBA - Check for toolbox component on a suppressed model

    Cad Admin

      How do i return if a model is a toolbox component if it is suppressed?

      Normally below works, but if it is suppressed it fails.... i understand because modeldoc is empty on suppressed items

       

      For i = 0 To UBound(ComponentArr)

          Set swCompModel = ComponentArr(i).GetModelDoc

          Set modelDocExt = swCompModel.Extension

          ret = modelDocExt.ToolboxPartType

       

      Is there a better way, where it will handle even suppressed components?, envelopes?, and virtual Components?