Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

NXOpen capture current directory 1

Status
Not open for further replies.

sumBuddy

Mechanical
Jun 3, 2011
31
Hello -

I am trying to create a journal that when executed will create a separate .prt file in the same directory as the display part. Is there an NXOpen command that allows me to capture the current directory of a displayed part?

I am using NX6.

Any help would be greatly appreciated. Thanks in advance.

 
Replies continue below

Recommended for you

workpart.FullPath 'Gets the fullpath of the file that is active (with the part name and the .prt)
workpart.leaf 'Gets only the part name

You could retrieve the string until the last "\".

spada
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor