AnsweredAssumed Answered

VBA - Check for toolbox component on a suppressed model

Question asked by Cad Admin on Aug 23, 2017
Latest reply on Aug 25, 2017 by 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?

Outcomes