1 Reply Latest reply on Mar 24, 2016 12:02 PM by Matt Gjertson

    IF Not Empty then API Macro Issue

    Joe Pickens

      I have a macro that contains the following code so i can determine if a component has geometry or not.


      vBodies = SWChildComp.GetBodies3(SwConst.swBodyType_e.swSolidBody, vBodyInfo)


      If Not vBodies = Empty Then


      with this code if vBodies is empty the code works fine if it does have geometry then is get a type mismatch error.

      is there a way for me to accomplish this statement im trying to make