Mapping a Drawing Name attribute to the drawing file

2021-10-06T23:27:49Z

Summary


Details

How to add the UGPART drawing specification dataset name as an attribute in NX. 
Once the drawing has this attribute in NX, it can be used in a Note on the drawing.



Solution

1. Export your Teamcenter mapping file. 
     a. Open a Teamcenter command prompt. 
     b. Type: export_attr_mappings -u=infodba -p=<password> -g=dba -file=C:\user\mapping.txt 
          NOTE: Specify your own infodba password and specify a path for the mapping file that fits your folders. 
2. Edit the mapping.txt in a text editor. 
    a. Under UGPART, add the following mapping: 
NOTE: That you would enter the ItemType of the data being mapped. This example is mapping to the OOTB "Item" ItemType.


{ Dataset type="UGPART" 
 # (hard-wired) DB_DATASET_ID : "Part File ID" 
 # (hard-wired) DB_DATASET_REV : "Part File Rev" 
 {Item type="Item" 
 NX_DATASET_NAME : object_name /master=iman /description="Dataset Name" 

}


3. Save the mapping file. 
4. Import the modified mapping file back into Teamcenter. 
    a. Open a Teamcenter command prompt. 
    b. Type: import_attr_mappings -u=infodba -p=<password> -g=dba -file=C:\user\mapping.txt 
NOTE: Specify your own infodba password and specify a path for the file that fits your folders.

Notes and References


Hardware/Software Configuration

Platform: all
OS: n/a
OS Version: n/a
Product: NX
Application: NXMANAGER
Version: V1926
Function: FILE_NEW

Ref: 001-9944768

KB Article ID# PL8521227

Contents

SummaryDetails

Associated Components