Prompts the user for the name of the file to open.
.NET Syntax
Visual Basic (Usage) | |
---|
Dim instance As ISldWorks
Dim DialogTitle As System.String
Dim InitialFileName As System.String
Dim FileFilter As System.String
Dim OpenOptions As System.Integer
Dim ConfigName As System.String
Dim DisplayName As System.String
Dim DisplayStateName As System.String
Dim value As System.String
value = instance.GetOpenFileName2(DialogTitle, InitialFileName, FileFilter, OpenOptions, ConfigName, DisplayName, DisplayStateName) |
Parameters
- DialogTitle
- Title of the dialog
- InitialFileName
- Path and file name of the file to open
- FileFilter
- File name extension of the file to open
- OpenOptions
- Open options as defined by swGetOpenFileNameOptions_e
- ConfigName
- Name of configuration of InitialFileName; comma-separated list of sheet names beginning with active sheet if OpenOptions is swGetOpenFileNameOptions_e.swGetOpenFileNameOptions_SelectedSheets
- DisplayName
- Recommended name to use for opened file
- DisplayStateName
- Selected display state name
Return Value
Path and file name of the file to open
Example
See Also
Availability
SOLIDWORKS 2022 FCS, Revision Number 30