cancel
Showing results for 
Search instead for 
Did you mean: 

Open project on eMServer from command line

Pioneer
Pioneer

Hello,

 

I know that it is possible to load study (.psz) form command line. For example:

tune.exe /c NewAssembler /l offline /file c:\dummy_cell.psz

 

Is it possible to open Process Simulate eMServer and choose project (maybe aslo user) by command line?

 

 

 

9 REPLIES

Re: Open project on eMServer from command line

Siemens Phenom Siemens Phenom
Siemens Phenom

Hello Terror_Error,

 

It is possible to launch Process Simulate on eMServer and open a project using the command line.

The sintax is as follow:

tune.exe /c NewAssembler /l ems /user {user} /pass {pass} /project {project} /study {studyId}

 

where:

{user} is the user name
{pass} is the password
{project} is the name of the project

{studyId} is the internal id of the study

 

Example:

tune.exe /c NewAssembler /l ems /user admin /pass 123 / project ProjectA /study 420668

 

Best Regards,

DianaG

Re: Open project on eMServer from command line

Pioneer
Pioneer

Great !

Thank you

Re: Open project on eMServer from command line

Pioneer
Pioneer

I checked it and it works fine for logging and opening proejct, but I approved problems while loading study

 

You said:

"{studyId} is the internal id of the study"

 

How can I get "internal id of the study" ?

I tried with normal ExternalID and it does not work.

 

Re: Open project on eMServer from command line

Siemens Phenom Siemens Phenom
Siemens Phenom

Hi Terror_Error,

 

To get the internal id of the study follow these steps:

1. Open Process Simulate on eMServer and load the project.

2. Open Properties Viewer and select the study node in the Navigation Tree

3. In Properties Viewer, in General Tab, there is a field ID:, this is the internal id of the study

 

Best Regards,

DianaG

Re: Open project on eMServer from command line

Pioneer
Pioneer

 

Working !

Thank you!

Re: Open project on eMServer from command line

Pioneer
Pioneer

Is it also possible to set sysroot path or choos loading mode(normal or lineSimulation) by command line ?

Re: Open project on eMServer from command line

Siemens Phenom Siemens Phenom
Siemens Phenom

Hi,

 

System Root and loading mode are not supported from the command line. We support starting a command from the command line:

Tune.exe /c NewAssembler /l ems /user {user} /pass {pass} /project {project} /command MyProject.MyNamespace.MyCommandClass

You can implement your own command that will set the system root and load the study in linesimulation mode.

public void Execute(object parameters)
{

TxApplication.SystemRootDirectory = "My system root";

 ITxEmsGlobalServicesProvider provider = TxApplication.ActiveDocument.PlatformGlobalServicesProvider as ITxEmsGlobalServicesProvider;
ITxPlanningObject studyNode = provider.GetObjectByInternalId(internalId);
provider.LoadLineSimulationStudy(studyNode); 

}

Best Regards,

DianaG

Re: Open project on eMServer from command line

Creator
Creator

Diana,

 

The Property SystemRootDirectory is read only.

Best regards

Witalij.

Re: Open project on eMServer from command line

Siemens Phenom Siemens Phenom
Siemens Phenom

Hi Witalij,

 

SystemRootDirectory can be set starting from Tecnomatix V13.1.1

 

Best Regards,

DianaG