Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

Scan directory and give which part are inch 2

Status
Not open for further replies.

cubalibre000

Mechanical
Joined
Jan 27, 2006
Messages
1,070
Location
IT
Hi,
someone has a journal that scan a directory and give as result the file name where the part is in inch ?

Thank you...

Using NX 8 and TC9.1
 
It wouldn't take much effort to create something using the 'ug_inspect.exe' utility that you can find in the UGII folder of your NX install.

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.
 
Cubalibre00,

Here is a "one-liner" that can be run from the "NX Tools, Command Prompt".

Code:
for %i in (*.prt) do @("%UGII_BASE_DIR%\ugii\ug_inspect" "%i" | findstr /c:"Part units: Inches" > nul && echo %i)

Here is an NX Customize "System Command" that can be added to a tool bar.

Code:
start "inch parts" cmd  /k "for %i in (z:\*.prt) do @("%UGII_BASE_DIR%\ugii\ug_inspect" "%i" | findstr /c:"Part units: Inches" > nul && echo "%i")"

HTH, Joe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top