Cancel
Showing results for 
Search instead for 
Did you mean: 

Load Windows Files in Teamcenter

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor

Hello,

 

I would like to load folders with their content in teamcenter.

For example i have this structure  in windows

 

 Big folder 

     Folder 1

     Folder 2

     Folder 3

 

In folder 1 i have a .jt and .xml file and a .e file.

I would like to create a new item for each folder in Big Folder which has the datasets attached to the itemrevision with different relations(for example jt to be related with rendering, the xml to be related with KinematicsRelation etc.)

Anyone did this before or has any ideea with path i can follow?

I'll keep updating my progress.

 

Thank you

 

Thank you.

6 REPLIES

Re: Load Windows Files in Teamcenter

Legend
Legend

May be write ITK program

Re: Load Windows Files in Teamcenter

Phenom
Phenom

Re: Load Windows Files in Teamcenter

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor

Hello,

 

 I think your answer Arthur might be the answer.

All i have to do is to read the folder with some program in C# and then generate the csv.

Thank you.

Re: Load Windows Files in Teamcenter

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom
The easiest way without programming is the "poor man's" migration...

The general procedure for importing legacy images/files in batch mode is as follows:

Step 1: If items do not exist to store the files run the ps_upload utility from a Tc shell to create the items where the new datasets will be stored.

e.g.
ps_upload -u=userid -p=password -g=group -t=Document -i=ps_upload.txt

Where ps_upload.txt is a file containing the items you want to create containing the Item ID & name of the item. Sample contents below.

# item name
1234567, Bolt
1234568, Washer

Step 2: Exectute import_file to import the file to the appropriate dataset type and attach it to the desired item revision.

e.g.

import_file -user=user-id -p=password -g=group -i=my_files.dat

Where my_files.dat is a file that contains information about the files you need to import into their corresponding items.

-f=1234567_A.pdf -d=1234567_A -type=PDF -ref=PDF_Reference -item=1234567 -rev=A
-f=1234568_A.pdf -d=1234568_A -type=PDF -ref=PDF_Reference -item=1234568 -rev=A

There is an article No. 001-6857875 and the only changes are the following:
Just tweak the dataset type info while running import_file. e.g.

-f=1234567_A.docx -d=1234567_A -type=MSWordX -ref=word -item=1234567 -rev=A
-f=1234568_A.docx -d=1234568_A -type=MSWordX -ref=word -item=1234568 -rev=A

This will import & attach the datasets for the existing items (created using ps_upload).

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

Re: Load Windows Files in Teamcenter

Gears Phenom Gears Phenom
Gears Phenom
You can read a folder with a program called Directory List & Print Pro. A single license is less than $25. It is a pretty awesome tool. This is the tool I use to generate my lists from folders when doing data migration. If you have questions about CSV2TCXML, there are some good posts on the board here. Also, just ask a question on the board and tag it. I try to follow all the CSV2TCXML posts if I see them.

https://www.infonautics-software.ch/directorylistprint/buy/

Regards,

Jamie Griffis
Mercury Digital Services

Re: Load Windows Files in Teamcenter

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor

Hello Randy,

 

This solution worked.

I managed to packet a windows form application that creates me the files necesarry for this 2 commands.

Works like water on fire.

I'll post the exe as soon as i make it for general use, maybe others who use tecnomatix can reuse it.

 

Thank you.