Journalling (VB.Net) - Save As in TCE
Journalling (VB.Net) - Save As in TCE
(OP)
Anyone know how to change the default container (current working directory) when performing a save as using journalling/NXOpen.
Currently If I perform a save as programatically it will save the part in the last folder that was used for a user "open" or "save as" command.
I know it's easy enough to move them over after but I'd like to specify where the Parts are stored.
Any help would be great.
Currently If I perform a save as programatically it will save the part in the last folder that was used for a user "open" or "save as" command.
I know it's easy enough to move them over after but I'd like to specify where the Parts are stored.
Any help would be great.
Mark Benson
Aerodynamic Model Designer





RE: Journalling (VB.Net) - Save As in TCE
Does it not work to record a save as and then copy that section of the operation into your other program. Then you may just have to come up with a way to change the names not the directories.
Best regards
Hudson
RE: Journalling (VB.Net) - Save As in TCE
I created this part of the code from a recorded journal.
That part all works fine. however in TCEng the syntax for files is different and I've not found out how to specify the path.
If you don't specify a path it puts the new part in the last directory used for a manual save or open as I mentioned before.
It looks like I either have to find out the correct syntax for floders in TCEng (I've tried all the obvious ones) or there may be a seperate way to set the "working directory".
Mark Benson
Aerodynamic Model Designer
RE: Journalling (VB.Net) - Save As in TCE
Sorry you're right the Teamcenter way of doing things does make life fairly difficult when it comes to interacting with file management. I don't know if you even do that from within your UG session manually let alone program for it.
Good Luck
Hudson