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 JAE on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

journal - Create new file in TC

Status
Not open for further replies.

MANox

Mechanical
Joined
Apr 2, 2007
Messages
130
Location
PL
Hello everybody,

I write journal for create new componets in existing assembly.
I want save new components in the assembly folder.
For native find this folder is easy:
Code:
currentPath = Path.GetDirectoryName(workPart.FullPath)
currentFile = Path.GetFileNameWithoutExtension(workPart.FullPath)
I have problem with find it in TC.

I only know formula for select these folder:
Code:
theSession.PdmSession.SetDefaultFolder("user:BaseFolder:EndFolder")

I can't find something like (f.ex.)
theSession.PdmSession.GetFolder ("@DB/myfile/A")

Maybe somebody know, which I have to use formula

Best regards

Michał Nowak

NX9 & Tc10
 
Why would you need to care about folders in a database environment ?
 
Beceuse I have structure with folder in TC.
Par example: User:Home:InsideProject:ProjectNumber:Elements
Somebody create this some years ago and I must fit to this structure

Best regards

Michał
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top