示例#1
0
 public DocumentEventHandler(ModelDoc2 modDoc, SwAddin addin)
 {
     document       = modDoc;
     userAddin      = addin;
     iSwApp         = (ISldWorks)userAddin.SwApp;
     openModelViews = new Hashtable();
 }
示例#2
0
 public DocView(SwAddin addin, IModelView mv, DocumentEventHandler doc)
 {
     userAddin = addin;
     mView     = (ModelView)mv;
     iSwApp    = (ISldWorks)userAddin.SwApp;
     parent    = doc;
 }
        // TODO(SIMINT-164) pm.Show() crashes with drag drop
        //[Theory]
        //[InlineData("3_DOF_ARM")]
        public void TestPropertyManagerOpens(string modelName)
        {
            OpenSWDocument(modelName);
            SwAddin addin = new SwAddin();

            addin.ConnectToSW(SwApp, 0);
            addin.SetupAssemblyExporter();
            SwApp.CloseAllDocuments(true);
        }
 public UserPMPage(SwAddin addin)
 {
     userAddin = addin;
     if (userAddin != null)
     {
         iSwApp = (ISldWorks)userAddin.SwApp;
         CreatePropertyManagerPage();
     }
     else
     {
         System.Windows.Forms.MessageBox.Show("SwAddin not set.");
     }
 }
示例#5
0
        /// <summary>
        /// 此页面的构造函数
        /// </summary>
        /// <param name="addin"></param>
        /// <param name="isModify"></param>
        public NewFeaturePMPage(SwAddin addin, bool isModify)
        {
            userAddin = addin;

            if (userAddin != null)
            {
                iSwApp = (ISldWorks)userAddin.SwApp;
                CreatePropertyManagerPage(isModify);
            }
            else
            {
                System.Windows.Forms.MessageBox.Show("SwAddin not set.");
            }
        }
示例#6
0
 public NewFeatureHandler(SwAddin addin, NewFeaturePMPage npage)
 {
     userAddin        = addin;
     iSwApp           = (ISldWorks)userAddin.SwApp;
     newFeaturePmPage = npage;
 }
示例#7
0
 public NewFeatureHandler(SwAddin addin)
 {
     userAddin = addin;
     iSwApp    = (ISldWorks)userAddin.SwApp;
 }
示例#8
0
 public PartEventHandler(ModelDoc2 modDoc, SwAddin addin)
     : base(modDoc, addin)
 {
     doc = (PartDoc)document;
 }
示例#9
0
 public DrawingEventHandler(ModelDoc2 modDoc, SwAddin addin)
     : base(modDoc, addin)
 {
     doc = (DrawingDoc)document;
 }
示例#10
0
 public AssemblyEventHandler(ModelDoc2 modDoc, SwAddin addin)
     : base(modDoc, addin)
 {
     doc     = (AssemblyDoc)document;
     swAddin = addin;
 }
示例#11
0
 public DrawingEventHandler(ModelDoc2 modDoc, SwAddin addin, ConnectAPI connect)
     : base(modDoc, addin, connect)
 {
     doc = (DrawingDoc)document;
 }
示例#12
0
 public AssemblyEventHandler(ModelDoc2 modDoc, SwAddin addin, ConnectAPI connect)
     : base(modDoc, addin, connect)
 {
     doc     = (AssemblyDoc)document;
     swAddin = addin;
 }
示例#13
0
 public PartEventHandler(ModelDoc2 modDoc, SwAddin addin, ConnectAPI connect)
     : base(modDoc, addin, connect)
 {
     doc = (PartDoc)document;
 }
示例#14
0
 public PMPHandler(SwAddin addin)
 {
     userAddin = addin;
     iSwApp    = (ISldWorks)userAddin.SwApp;
 }