/// <summary> /// 初始化全局变量(即Globals中的变量) /// </summary> private void InitializeGlobalsVariables() { //获取SolidWorks文件名及文件ID Globals.FileName = swAppHelper.GetFileName(); Globals.FileID = PDMHelper.GetFileID(Globals.FileName).ToString(); //获取PDM登录信息 Globals.PDM_UserID = PDMHelper.GetLoginID(); Globals.PDM_UserAccount = PDMHelper.GetLoginUserName(); Globals.PDM_UserFullName = PDMHelper.GetLoginFullName(); }