Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

ug_convert_part utility 2

Status
Not open for further replies.

Ram K

Mechanical
Apr 17, 2018
56
Hi
I want to convert a NX Dataset(NX part file) units in Team Center. For Native NX files 'ug_convert_part' utility is working fine.
Could somebody suggest me the procedure to convert units for Teamcenter NX files?
 
Replies continue below

Recommended for you

is it a single piece part ?

The quick and dirty solution is :
in Teamcenter, select the model ( the NX file) right click - named references.
In the dialog you will see the "1234567.prt" Select that and export to local disk.
in windows, create a copy of the part, if this procedure fails, you can cure the issue using the copy.
In windows , run the conversion of the exported part.
In Teamcenter. Check out the NX model dataset. named references, select the 1234567.prt and delete.
In named references, import the converted 1234567.prt from Windows.

( If this file gives you any issues, you can delete it from named references and import the backup copy.)

Regards,
Tomas


 
This is a good solution to my issue. Unfortunately I am not suppose to export data from Team center due to data security . Is there any other method or utility which can convert units in Team center.
 

Hi RamK,

The command line utility "part_utility -managed_mode=yes" supports these units conversion options and limits changes to authenticated TC users without needing to export any data.

-convert_units_to_mm
-convert_units_to_in

HTH, Joe

Code:
part_utility -managed_mode=yes -help
-------------------------------------------------------------------------------------------------------------
Part Utility with -managed_mode=yes options are:
-------------------------------------------------------------------------------------------------------------

Login Options:
--------------
  -u[ser]=<user>               To specify Teamcenter user name
  -g[roup]=<group>             To specify Teamcenter group name
  -p[assword]                  To specify Teamcenter password
  -pf=<filename>               File to specify the Teamcenter password

Input Part Options:
-------------------
  -part=<part spec>            Specification of single part to process.
                               Part name should be in the @DB/<Item ID or Part Identifier> / <rev_id> format,
                               where Part Identifier is fnd0partIdentifier property on Item
  -i[nput_list]=<filename>     List of specifications of input parts.
                               Part name should be in the @DB/<Item ID or Part Identifier>/<rev_id> format,
                               where Part Identifier is fnd0partIdentifier property on Item
  -f[older]=<foldername>       Name of folder listing input parts
  -folder_user=<username>      Name of user whose folder to use
  -resume                      Line number of input list to start processing from

Functional Options:
-------------------
  -d[rawings]=<update>         Update drawings
  -structure_sync              Synchronize structures between NX and Teamcenter. Default <no>
     =<no|from_teamcenter|from_ug>
  -transforms_source           Source of transforms if different from -structure_sync argument.Default <from_ug>
     =<from_teamcenter|from_ug>
  -sync_arrangements=<yes|no>  Synchronize arrangement data if consistent with
                               other structure sync settings.Default <no>
  -cleanu[p]=<yes|no>          Perform part cleanup before operation. Default <no>
  -anon[ymize]=<yes|no>        Removes user and program version strings from part history. Default <no>
  -force_read_jt               Force to read from a JT dataset even if a master dataset exists
  -convert_mcs=<filename>      Convert mating conditions to assembly constraints and output report
  -regen_lw                    Force all lightweight bodies in the specified part to be regenerated.
                               By default the faceting parameters previously used to create each body will be
                               used again.This option is now being done by default for parts saved
                               before NX7.5.
  -regen_lw_def_tol            Similar to regen_lw however this flag will not use the
                               faceting parameters on the existing body but the default faceting parameters
                               will be utilized instead.
  -remap_drawing_callouts      Remap the callout references in drawing to <attribute_name>
     =<attribute_name>
  -synchronize_callout_to_teamcenter=          Update the Find No.in Teamcenter based on the CALLOUT value on the
     <normal|force_skip_one_level>             NX part occurrences
  -convert_units_to_mm         Convert the part from inches to millimeters
  -convert_units_to_in         Convert the part from millimeters to inches
  -convert_line_widths                 Converts all legacy line width in the specified parts to use new line widths.
                                       Conversion is done based on the Legacy Line Width Conversion part preference.
  -recreate[_missing_stock_components] For Routing assemblies, re-creates any missing stock as component components
  -create_drawing_snapshot             Creates snapshot data of the part for its drawings
  -generate_trueshape=<yes|no> Generate True Shape occupancy data. Default <no>
  -record_part_data=<yes|no>   Record part data (bounding box & mass
                               properties as well as properties to allow Active Workspace to filter search
                               results based on part / assembly / drawing, interpart links,
                               product interfaces, user defined features, reference components,
                               suppressed components, constraints, arrangements, geometry overrides,
                               position overrides, and parts list).Default <no>
  -record_altrep_notes=<yes|no>        Record AltRep occurrence notes. Default <no>
  -h[elp]                      Produces this message

Add-On Options:
---------------
  -non[_masters]=<yes|no>      Automatically process non-master parts.Default <yes>
  -bypass=<yes|no>             Use bypass privilege if necessary. Default <yes>
  -update_mod[_props]=<yes|no> Update last modifying user/date on dataset
  -k[eep_volume]=<yes|no>      Use original volume for output parts. Default <yes>
  -set_new_dataset_o[wner]     Sets the ownership of new datasets to be either that
                               of the owning item - rev or multi - CAD jt dataset
  -allow_released=<yes|no>     Process parts with release status. Default <no>
  -force_structure_sync=<yes|no>               Force synchronize structures
                                               as requested by - structure_sync.Default <no>
  -allow_null_transform                Used with -structure_sync used with -structure_sync=from_teamcenter
                                       and -transforms_source = from_teamcenter to allow transforms
                                       from Teamcenter to be null
  -read_mapped_attri[butes]=<yes|no>   Read mapped attributes if consistent with
                                       other structure sync settings.Default <yes>
  -compression=<compress|uncompress>   Compresses|uncompresses the part(s)
  -y                           Fully load components that are not at the current version of NX
  -force_operate               Used with the -y switch to force all components to be operated on
  -mc_parts_only                       Used in conjunction with convert_mcs to specify only convert
                                       parts which contain mating conditions
  -mc_dry_run                          Used in conjunction with convert_mcs to do the mating condition
                                       conversion and generate the conversion report without saving any parts.
  -mc_dont_load_referenced_geometry    Used in conjunction with convert_mcs to
                                       not load geometry referenced by the mating conditions being converted.
                                       Note this will bypass constraint conversion checking.
  -debug=<yes|no>              Print debug information. Default <no>
  -use_default_load_option_file        Uses specified default load options.
                                       This cannot be used along with - y option, -y option takes precedence if set
  -specified_non_master_only           Used with -input_list option to process
                                       Only specified non - master while processing the non - master parts from the input list
  -env                                 Specify customer environment
  -out[put_file]=<filename>    File to write failure information to
  -log[_file]=<filename>       File to write log information to in case of failure
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor