NX Need full syntax to import drawing file and altrep's using "tcin_import" utility

2021-10-06T23:28:06Z
NX for Design

Summary


Details

Can you help me by providing full syntax to import drawing files and altrep's using "tcin_import" (alternate to below ones)?

Old commands used:
>ug_import -part=48012341_01_110_001.prt -id=4022.480.12341 -rev=AA -type=spec -name=110-001-01


>ug_import -part=alt_43922341-slang-112mm.prt -id=4022.439.22341 -rev=AA -type=altrep -name="43922341-WS-slang-112mm"

How to import drawing (UGPART) and altrep's. What additional switches do I need to add to import them?

Solution

Please ensure to set the below variable for importing "altrep" datasets.

"set UGII_UGMGR_ALLOW_ALTREPS_FOR_ASSEMBLIES=true"

This helps to avoid errors for altrep and imports them.

Native files:
Command used:
tcin_import.exe -u=username -p=password -g=dba -asse=(Full path of the Master file) -asse=(Full path of the altrep file) -asse=(Full path of the Drawing file) -default_n=autotranslate -default_a=overwrite
Results:

Documentation:
Importing non-master files, drawings, and CAE data
When you import master and non-master files together using the autotranslate naming scheme, the non-master files typically follow the master files if their base names (itemid_revid) are the same. For example, if you import the following together:


  • Native master parts that are named using the itemid_revid.prt format
  • Native non-master parts that are named using the itemid_revid plus <relationship name> or <appdata name>.prt format
If the base names are different, the utility may have difficulty determining which non-masters go with which masters. To help with this, you can do a dry run to generate a log file, and then specify the correct item_id and rev_id in the non-masters in the log file, and then use that log file as the import file to setup and drive the import.


Ex: part12345_AA_s_datasetname.prt --> For Specification


     part12345_AA_a_datasetname.prt  --> For Altrep


     part12345_AA_m_datasetname.prt  --> For Manifestation



Notes and References


Hardware/Software Configuration

Platform: INTL64
OS: windows
OS Version: 1064
Product: NX
Application: NXMANAGER
Version: V1980
Function: CLONE_IMPORT

Ref: 001-10124241

KB Article ID# PL8568755

Contents

SummaryDetails

Associated Components

Teamcenter Integration for NX