Пример #1
0
        public bool ConnectToSW(object ThisSW, int cookie)
        {
            iSwApp  = (ISldWorks)ThisSW;
            addinID = cookie;

            //Setup callbacks
            iSwApp.SetAddinCallbackInfo(0, this, addinID);

            iSwApp.AddFileSaveAsItem2(cookie, "ExportToJSON", "Three.JS JSON Format", "json", (int)swDocumentTypes_e.swDocASSEMBLY);
            iSwApp.AddFileSaveAsItem2(cookie, "ExportToJSON", "Three.JS JSON Format", "json", (int)swDocumentTypes_e.swDocPART);

            return(true);
        }