public static string GetSerialNo(ref ISldWorks iSwApp) { SWSNG.errCode = 0; SWSNG.errMsg = string.Empty; SWSNGSelectNoRange dBSNo = new SWSNGSelectNoRange(iSwApp.GetProcessID()); return(dBSNo.serialNumber); }
private IntPtr GetSummaryInfoDialogHandle() { m_CurrentSummaryHandle = IntPtr.Zero; var prc = Process.GetProcessById(m_App.GetProcessID()); for (int i = 0; i < prc.Threads.Count; i++) { var threadId = (uint)prc.Threads[i].Id; EnumThreadWindows(threadId, FindSymmaryInfoDialog, IntPtr.Zero); } return(m_CurrentSummaryHandle); }
private void LogOperation(string operName, ISldWorks app, IModelDoc2 modelDoc, IFeature feature) { Logger.Log($"{operName}: {feature?.Name} in {modelDoc?.GetTitle()} of SOLIDWORKS session: {app?.GetProcessID()}"); }