9 Replies Latest reply on Sep 15, 2015 3:51 PM by Deepak Gupta

    PackAndGo API fails, but manually works fine!?!?

    Paul Marsman

      Ok, we've had a macro for a while now that does a pack and go from one file set to another.  In the last few months it has stopped working for everyone here.  We are all running 2015 SP3 installed from our Admin Image.

       

      I have stepped through our code and it fails each time at the same spot no matter who's computer I run it from, so I thought I'd go back to the example from the API Help: 2015 SOLIDWORKS API Help - Add and Remove Files from Pack and Go (VBA)

       

      this one also fails at the same line as ours: Set swPackAndGo = swModelDocExt.GetPackAndGo

       

      I can open the assembly used in the example and go File menu > Pack and Go and it all works fine.  Other macros we have all are working fine, so it isn't some general vba failure.  But I'm at a complete loss as to what else to look for.  I'm at the point of doing a re-install, but thought I'd ask here first.

       

      IDEAS?????