/// <summary>
        /// Called when addin is loaded into SolidWorks
        /// </summary>
        /// <param name="ThisSW"></param>
        /// <param name="Cookie"></param>
        /// <returns></returns>
        public bool ConnectToSW(object ThisSW, int Cookie)
        {
            _swApp  = (ISldWorks)ThisSW;
            _cookie = Cookie;
            _swApp.SetAddinCallbackInfo2(0, this, Cookie);
            _cmdMgr = _swApp.GetCommandManager(_cookie);

            SetupUI();

            return(true);
        }