public DocumentEventHandler(ModelDoc2 document, SwAddin addin)
 {
     this.document = document;
     userAddin = addin;
     this.addin = (ISldWorks)userAddin.SwApp;
     openModelViews = new Hashtable();
 }
 public ModelViewHelper(SwAddin addin, IModelView mv, DocumentEventHandler doc)
 {
     userAddin = addin;
     modelView = (ModelView)mv;
     iSwApp = (ISldWorks)userAddin.SwApp;
     parent = doc;
 }
예제 #3
0
 public UserPMPage(SwAddin addin)
 {
     this.addin = addin;
     if (this.addin != null)
     {
         solidworks = (ISldWorks)this.addin.SwApp;
         CreatePropertyManagerPage();
     }
     else
     {
         System.Windows.Forms.MessageBox.Show("SwAddin not set.");
     }
 }
 public DrawingEventHandler(ModelDoc2 modDoc, SwAddin addin)
     : base(modDoc, addin)
 {
     doc = (DrawingDoc)document;
 }
 public AssemblyEventHandler(ModelDoc2 modDoc, SwAddin addin)
     : base(modDoc, addin)
 {
     assemblyDocument = (AssemblyDoc)document;
     swAddin = addin;
 }
 public PartEventHandler(ModelDoc2 modDoc, SwAddin addin)
     : base(modDoc, addin)
 {
     doc = (PartDoc)document;
 }
예제 #7
0
 public PMPHandler(SwAddin solidworks)
 {
     userAddin       = solidworks;
     this.solidworks = (ISldWorks)userAddin.SwApp;
 }