×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Import Assembly to TeamCenter
2

Import Assembly to TeamCenter

Import Assembly to TeamCenter

(OP)
I know how to import assembly to teamcenter but I would like to have original native file names in teamcenter instead of number.
I use TeamCenter 8.3 and NX7.5
Thanks in advance


Regards
Didier Psaltopoulos
http://www.psi-cad.com

RE: Import Assembly to TeamCenter

2
We have found a solution to this problem in the following way.

1) In the import menu you must choose autogenerate in the nomenclature rule.
2) In the tab log files select output log file and try dry run first. This create a log file with the new names.
3) Edit the log file:
   a) In the header change AUTO_GENERATE to USER_NAME
   b) Change the Part_Name and the Part_Description for each file in the assembly with the native name of the prt
4) Now in tab log file, select load an apply existing log file.

In order to change the name and description automatically, I have made an script in awk called clone_tc.awk to make this edition of the log file.

To run the awk script you need the awk program or gawk.exe which is easily found in internet, if you have linux or unix the awk comes by default.

To run the script in a console command type:
awk -f clone_tc.awk input_log_file > output_log_file
or
gawk -f clone_tc.awk input_log_file > output_log_file

I attach the script.

Hope this helps.
Regards
Frank.

Regards
Frank.  

RE: Import Assembly to TeamCenter

(OP)
Hi Franck
Forget my previous message. It's wrong.
All is perfect without any script modification.
Just one question:
Is it possible to have only the name without the number ?


Regards
Didier Psaltopoulos
http://www.psi-cad.com

RE: Import Assembly to TeamCenter

Hi Didier,

I don't understand very well what do you mean with to have only the name without the number but, in TC all items must have an unique identifier, this is created when you say AUTO_GENERATE, this item number or item identifier is created according the naming rules you have defined.

The script can change this data base number too, but this identifier, as I said before must be unique and it should follow the naming rule defined.

Regards and a happy new year.
Frank.

RE: Import Assembly to TeamCenter

(OP)
Hi Franck,

First of all, I wish you also a happy new year

I mean that:
If you create a new part and assign a name instead of press the touch assign, you will have a name without number before.
So, I would like the same result during import assembly operation.

One question:
What the difference between auto generate and auto translate ?

Thanks in advance


Regards
Didier Psaltopoulos
http://www.psi-cad.com

RE: Import Assembly to TeamCenter

Hi Didier:

Didider wrote:
>> If you create a new part and assign a name instead of press the touch assign, you will have a name without number before.
>> So, I would like the same result during import assembly operation.

You can do it with AUTO_TRANSLATE but, you often will find errors due to duplicate names. There is a user exit what is called to parse the native part name and generate a new item number and revision.

You can do it too, with the script and AUTO_GENERATE changing the item number in the filed DB@number/revision but try a dry run with the log file to see what happen and what errors in bad item numbers were created.

>> What the difference between auto generate and auto translate ?

Auto translate calls a user exit (you can modify with open API), in order to parse the native part name into a valid item number/item revision, but this generate often duplicate item numbers and the names don't follow the naming rules defined.

Auto translate is better for export purposes than import ones.

Regards
Frank.
 

RE: Import Assembly to TeamCenter

(OP)
Hi Franks
I's clear for me now, thanks a lot.


Regards
Didier Psaltopoulos
http://www.psi-cad.com

RE: Import Assembly to TeamCenter

Hello Frank,
I have downloaded and used your program. It works great except for one caveat. If the UG part file on the OS has spaces in the name then there is a problem.
When reading back in the log file UG will let you know what line has the issue. If I open the log file and go to that line I can see that the Part_Name and the Part_Description have spaces. If I put quotations around the name then all works fine.
Is it possible for you to modify your clone_tc.awk file to put quotations around the Part_Name and the Part_Description.
eg.
&LOG Part_Name: 787 Section 41
&LOG Part_Description: 787 Section 41
should be
&LOG Part_Name: "787 Section 41"
&LOG Part_Description: "787 Section 41"

Thanks in advance.
Your program has saved me hours of mind numbing work.
Jurgen

RE: Import Assembly to TeamCenter

You're right, I will check it out, and I'll tell you something.

Frank.

RE: Import Assembly to TeamCenter

Hello Frank,

Thank you for the revised file.

Regards
Jurgen

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources