Cancel
Showing results for 
Search instead for 
Did you mean: 

How to get working folder of current logged user?

Pioneer
Pioneer

Hello,

 

I there any way to get working forder (for expamle as itxPlanningObject) for currenlty logged user?

 

BR,

Pawel

4 REPLIES

Re: How to get working folder of current logged user?

Siemens Phenom Siemens Phenom
Siemens Phenom

Hi Terror_Error,

 

This is not available with Tecnomatix .NET API, but you can get it using the eMServer client API.

IEmpProjectManager::GetUserFolder

 

Check for the eM-PlannerAPIManual_<version number>.chm at the documentation section of the installation package.

It is part of the official DVD. It contains examples in Visual Basic.

 

Best Regards,

DianaG

 

Re: How to get working folder of current logged user?

Creator
Creator

Dim curUserFolderKey As EMPTYPELIBRARYLib.EmpObjectKey
curUserFolderKey = ProjectM.GetUserFolder(currContext)

 

I can get the working folder key by above code ,but it is not the foldername or folderpath,how can i get the fullname of working folder with the key ?

Re: How to get working folder of current logged user?

Siemens Experimenter Siemens Experimenter
Siemens Experimenter

Hello dongyang,

 

The working folder is a PmCollection object part of the current project, it is not a Windows folder/directory.

GetUserFolder API returns a unique identifier of the working folder in the form of its EmpObjectKey.

You can use the EmpObjectKey by passing it to IEmpNode::Name property to get the name.

 

Best Regards,

Peter

Re: How to get working folder of current logged user?

Creator
Creator

thank you,Peter,I already know how to do it.