0 Replies Latest reply on Jan 26, 2018 7:13 AM by Taus Moller

    How do i check if the motion addin is loaded

    Taus Moller

      Part of our Add-in requires that the motion add-in is loaded and our Add-in will act differently if it is not loaded. However, i can't find a way to check if it is.

       

      I am able to load the motion Addin with LoadAdd. This will tell me if the Addin is loaded already.  However, I would like to be able to check if it is loaded without actually loading it.  For the Simulation Addin found a way with GetAddInObject like so:

       

      return (CwAddincallback)sldWorks.GetAddInObject("SldWorks.Simulation");

       

      If it return null it means that the it is not loaded. Unfortunately the Motion addin ProgID that i can use with GetAddInObject. Is there anyway i can get information about whether the Motion Addin is loaded, or even better, a genral way to get the state of different addins?