Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

FileSelectionBox CatFileSelectionModeSave with initial path/name

M1nh

Automotive
Nov 22, 2023
3
Hi, does anyone here know how to set the initial file name when using the "Fileselectionbox" with the "CatFileSelectionModeSave" ?
I want to write some data in a text file where the file name of the text file is set as the part number of the selected part.
the problem I'm having is setting the initial name in the dialogue.
at the moment i can only set the Title and the Extension. any help would be appreciated.


eg.
CATIA.FileSelectionBox("Save txt File", "*.txt", CatFileSelectionModeSave)
 
Replies continue below

Recommended for you

Can't be done with FileSelectionBox

Check this thread
 

Part and Inventory Search

Sponsor