public DocumentEventHandler(ModelDoc2 modDoc, SwAddin addin) { document = modDoc; userAddin = addin; iSwApp = (ISldWorks)userAddin.SwApp; openModelViews = new Hashtable(); }
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."); } }
/// <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."); } }
public NewFeatureHandler(SwAddin addin, NewFeaturePMPage npage) { userAddin = addin; iSwApp = (ISldWorks)userAddin.SwApp; newFeaturePmPage = npage; }
public NewFeatureHandler(SwAddin addin) { userAddin = addin; iSwApp = (ISldWorks)userAddin.SwApp; }
public PartEventHandler(ModelDoc2 modDoc, SwAddin addin) : base(modDoc, addin) { doc = (PartDoc)document; }
public DrawingEventHandler(ModelDoc2 modDoc, SwAddin addin) : base(modDoc, addin) { doc = (DrawingDoc)document; }
public AssemblyEventHandler(ModelDoc2 modDoc, SwAddin addin) : base(modDoc, addin) { doc = (AssemblyDoc)document; swAddin = addin; }
public DrawingEventHandler(ModelDoc2 modDoc, SwAddin addin, ConnectAPI connect) : base(modDoc, addin, connect) { doc = (DrawingDoc)document; }
public AssemblyEventHandler(ModelDoc2 modDoc, SwAddin addin, ConnectAPI connect) : base(modDoc, addin, connect) { doc = (AssemblyDoc)document; swAddin = addin; }
public PartEventHandler(ModelDoc2 modDoc, SwAddin addin, ConnectAPI connect) : base(modDoc, addin, connect) { doc = (PartDoc)document; }
public PMPHandler(SwAddin addin) { userAddin = addin; iSwApp = (ISldWorks)userAddin.SwApp; }