Cancel
Showing results for 
Search instead for 
Did you mean: 

plmxml export with windows shell on a client

Experimenter
Experimenter

Hi Community,

i would like import/export PLMXML with a Windows shell on clientside. I have found the tool plmxml_export.exe for a tc command prompt but this doesnt work on a client system. (Login fail! Error code = 26003)

Have somebody an idea how I can realize an export without the GUI? (Tools->Export)

 

Thanks!

 

Version: Teamcenter 10 (10.1.0(20130604.00)) 64-Bit

Windows 10

 

7 REPLIES

Re: plmxml export with windows shell on a client

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom
It sounds like the problem you're having is creating a TC command window on the client. The easiest way to resolve it is to "share" TC_ROOT/TC_DATA (or a common folder, e.g. Tc10.1 in Tc10.1\tcroot and Tc10.1\tcdata). Once you're able to reach those directories on the client-side then you can create a source script for a TC command window using UNC syntax. Note: you can test the UNC path by pasting the path in File Explorer.
set TC_ROOT=\\your_server\your_share\tcroot
set TC_DATA=\\your_server\your_share\tcdata
%TC_DATA%\tc_profilevars.bat

Test your TC command window to validate that you see a lot of "TC" settings...
set TC

Now you're ready to run TC utilities, like plmxml_export.

Randy Ellsworth, Teamcenter Architect, Applied CAx, LLC
NX 11 | SW 2016 | Creo 4 | TcUA 11.4
Evaluating: AW 3.4

Re: plmxml export with windows shell on a client

Siemens Phenom Siemens Phenom
Siemens Phenom
In addition to what Randy explained, make sure you're accomodating for white spaces in variable paths.
Are you able to execute any other Tc command line utilities from the client?
Can you post your syntax?

Regards, Ben

Re: plmxml export with windows shell on a client

Experimenter
Experimenter

Hi Ben, Hi Randy,

 

thanks for your comment.

But it doesnt work:

 

Steps I do:

-I have on my client a TC install, with GUI i can connect to the server and use TC

-In the install files, I found the programs in \bin\ folder and copied to my TC local install.

„F:\programme\Siemens\TC\bin“

After this I open a windows command shell and set the variabels to

set TC_ROOT=\\myserver\c$\TC\Teamcenter10\
set TC_DATA=\\myserver\c$\TC\Teamcenter10\data

 

after this I try it the command in the explorer:
%TC_DATA%\tc_profilevars.bat

Windows said „it cant found the path %TC_DATA%, manuael input to \\myserver\c$\TC\Teamcenter10\ say, I need a loginname and password. I think it doesnt work so correctly…

 

My test command:

plmxml_import -u=USERNAME -p=PASSWORD -g=dba -xml_file=testimport\importtest.xml

 

The given user and password work on the TC GUI, and can write and read files and other thinks.

 

Output oft he windows command shell is:


F:\programme\Siemens\TC\bin>plmxml_import -u=USERNAME -p=PASSWORD -g=dba -xml_file=testimport\importtest.xml

Command line login fail! Error code = 26003 (POM_start_not_yet_called)

ERROR: (D:\workdir\tc101w0604_64\src\core\main\plmxml_import_itk_main.cxx:129)

 

Have you any idea whats wrong?

Thank you very much!

Re: plmxml export with windows shell on a client

Siemens Phenom Siemens Phenom
Siemens Phenom

Is your Tc install on your client 2-tier or 4-tier?

In your Tc session, select "Help > About" and then select "More Information".  If the dialog shows TC_DATA and TC_ROOT, do they match what you're entering for your Tc command shell?

Re: plmxml export with windows shell on a client

Experimenter
Experimenter

Hi,

thanks for your answer.

 

No the doesnt match.  Smiley Sad 

 

TC_ROOT: C:\TC\Teamcenter10

TC_DATA: D:\Teamcenter\tcdata

 

I think I have the wrong command shell? Only the windows commandshell not a specific shell. 

 

The setupmanager says is a Basicinstall (i hope the translate from german setup to english is correct) with a Teamcenter Rich Client 4-Tier

 

Re: plmxml export with windows shell on a client

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom
You cannot simply copy the TC_ROOT\bin folder. You must either install "Foundation" or must point TC_ROOT to a location where "Foundation" has been installed. The easiest way is to "share" the TC_ROOT folder and use UNC to set it at the client level, as explained previously.

Validate that you've performed this successfully by typing "set TC" and hitting Enter. You should see all the TC variables are set. If not then you know your command window is wrong and you need to revisit setting TC_ROOT/TC_DATA correctly.

Randy Ellsworth, Teamcenter Architect, Applied CAx, LLC
NX 11 | SW 2016 | Creo 4 | TcUA 11.4
Evaluating: AW 3.4

Re: plmxml export with windows shell on a client

Experimenter
Experimenter

Hi Randy,

 

after I install and configure the Foundation part it works for me now.

 

Thanks for your help!