Thanks for sharing this.
The last line doesn't look to be valid, however. I can't find where EmpNodeClass() is defined. Any help would be appreciated.
To get this to work, I had to tweak it slightly:
int session = TxApplication.ActiveDocument.eMSSessionId; EmpApplication empApp = Microsoft.VisualBasic.Interaction.GetObject("", "EmpApplication.EmpApplication") as EmpApplication; EmpObjectKey userObjKey = empApp.CurrentUser; EmpContext context = new EmpContext(); context.sessionId = session; return new EmpNodeClass().get_Name(ref context, ref userObjKey);
Thanks again for your help! :-)