Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

refile_part utility 1

Status
Not open for further replies.

sunilug

Mechanical
Oct 30, 2012
5
Hi All,

Could you assist me to know 1) correct syntax of refile_part utility and executing procedures? 2)refile overview. Thanks in advance

trying go through below mentioned options. But not successeded..

usage: refile_part [options]
where the [options] are:
[<filename>] Refiles file <filename>.
[-c] Creates components if necessary during upgrade.
[-co] Compresses the part(s) when refiling.
[-d] Convert all parts/UDFs in current directory.
[-d <dirname>] Convert all parts/UDFs in directory <dirname>.
[-g] Upgrade components.
[-l] Logs a short report to the syslog.
[-l <filename>] Logs a short report to the syslog and <filename>
.
[-ll] Logs an extended report to the syslog.
[-ll <filename>] Logs an extended report to the syslog
and <filename>.
[-o <filename>] Sets new file <filename> as the destination.
[-o <dirname>] Sets existing directory <dirname> as
the destination.
[-convert_mcs <filename>] Converts mating conditions to assembly
constraints. Logs a constraint conversion
report to <filename>.
[-mc_parts_only] Used in conjunction with convert_mcs
to specify only refile parts which
contain mating conditions.
[-mc_dry_run] Used in conjunction with convert_mcs
 
Replies continue below

Recommended for you

What version of NX are you running? I ask this since starting with NX 7.5 the list of options has gotten a lot longer than what you've shown above.

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:

To an Engineer, the glass is twice as big as it needs to be.
 
Hi John, First of all thanks for the reply..

We'are using NX 7.5 version and while running utility refile_part are getting invalid filename and volume error message.

Could you please guide me to run this utility smoothly..

Regards,
Sunil
 
OK, here is the complete list of options for the 'refile_part.exe' utility:

D:\UGS_NX_75\UGII\refile_part
usage: refile_part [options]
where the [options] are:

[<filename>] Refiles file <filename>.

[-c] Creates components if necessary during upgrade.

[-co] Compresses the part(s) when refiling.

[-d] Convert all parts/UDFs in current directory.

[-d <dirname>] Convert all parts/UDFs in directory <dirname>.

[-g] Upgrade components.

[-l] Logs a short report to the syslog.

[-l <filename>] Logs a short report to the syslog and <filename>.

[-ll] Logs an extended report to the syslog.

[-ll <filename>] Logs an extended report to the syslog and <filename>.

[-o <filename>] Sets new file <filename> as the destination.

[-o <dirname>] Sets existing directory <dirname> as the destination.

[-r] Prints refile_part (NX) release.

[-s] Traverses subdirectories.

[-u] Refiles UDF files.

[-uo] Refiles UDF files only.

[-uc] Uncompresses the part(s) when refiling.

[-y] Fully load assembly, and refiles components that are not at the current version of NX.

[-f] Used with the -y switch to force all components to be refiled.

[-us] Updates the assembly structure to include any changes in lower level subassemblies.

[-ts] Generates True Shape data only.

[-nop] Do not change file owner and protection.

[-ndates] Do not change file modified date and accessed date.

[-dwg_update] Force update all drawings without any fixup.

[-cleanup] Perform part cleanup.

[-anonymize] Removes user and program version strings from part history.

[-convert_mcs <filename>] Converts mating conditions to assembly constraints. Logs a constraint conversion report to <filename>.

[-mc_parts_only] Used in conjunction with convert_mcs to specify only refile 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.

[-regen_lw] Force all lightweight bodies in the specified part to be regenerated. The faceting parameters previously used to create each body will be used again. Note: For assembly levelrepresentations the regeneration operation will be executed only if the source component parts are loaded. The -y switch can be used to ensure the components are loaded. This option is now done by default for parts saved prior to NX7.5.

[-regen_lw_def_tol] Same as -regen_lw except that with this option the faceting will be ignored and the default system or user specified (if defined in the customer defaults) faceting parameters will be utilized.


To use the utility, you need to run it from a Command window. First enter the complete path of the program and then append the options. For example, if you wished to refile all the parts in a directory, including any sub-directories, as well as generating new lightweight representations based on the current defaults, the command line would look like:

<path where NX was installed>\UGII\refile_part -d -s -regen_lw_def_tol <pathname to the top directory from which you wish to start the refile>

Now there are many other options which can be used so look over the list above. The order that you place the options is not critical just that they need to be separated by a 'space' and they all need to be on the same line.

Anyway, give it shot and let me know hoe it came out.

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:

To an Engineer, the glass is twice as big as it needs to be.
 
Hi John,
Thanks for your patience and time. Really will work on it and later will update you.

Regards,
Sunil
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor