private void SetPWVarsCE_NewDesignFileEvent(Bentley.MstnPlatformNET.AddIn sender, NewDesignFileEventArgs eventArgs) { if (eventArgs.WhenCode == NewDesignFileEventArgs.When.AfterDesignFileOpen) { string sFileName = Bentley.MstnPlatformNET.Session.Instance.GetActiveDgnFile().GetFileName(); BPSUtilities.WriteLog($"Filename is '{sFileName}'"); int iProjectNo = 0, iDocumentNo = 0; PWWrapper.aaApi_Initialize(0); if (mcmMain_GetDocumentIdByFilePath(sFileName, 1, ref iProjectNo, ref iDocumentNo)) { BPSUtilities.WriteLog($"IDs: {iProjectNo}, {iDocumentNo}"); if (iProjectNo > 0 && iDocumentNo > 0) { UpdatePWEnvVars(iProjectNo, iDocumentNo); } else { BPSUtilities.WriteLog("No integrated session of ProjectWise."); } } else { BPSUtilities.WriteLog("No integrated session of ProjectWise."); } ListReferences(true); } }
public static PenetrationVM getInstance( Bentley.MstnPlatformNET.AddIn addin, string unparsed) { addin_ = addin; return(loadInstace(unparsed)); }
private void SetPWVarsCE_ReloadEvent(Bentley.MstnPlatformNET.AddIn sender, ReloadEventArgs eventArgs) { }
private void SetPWVarsCE_UnloadingEvent1(Bentley.MstnPlatformNET.AddIn sender, UnloadingEventArgs eventArgs) { base.OnUnloading(eventArgs); }
public static PenetrationVM getInstance( Bentley.MstnPlatformNET.AddIn addin, KeyinOptions options) { addin_ = addin; return(loadInstace(new GroupByTaskModel(addin), options)); }