The File_Open pipeline command is used to load a file into the Visual3D workspace.
The command below is as seen in the Visual3D application.
File_Open ! /FILE_NAME= ! /FILE_PATH= ! /SEARCH_SUBFOLDERS=FALSE ! /SUFFIX= ! /SET_PROMPT=File_Open ! /ON_FILE_NOT_FOUND=PROMPT ! /FILE_TYPES_ON_PROMPT= ;
The following table shows the command parameters:
Parameter | Description |
/FILE_NAME= | Name of the file being opened. This can be left blank if prompting the user |
/FILE_PATH= | Path to the folder where the file is stored. |
/SEARCH_SUBFOLDERS=FALSE | If set to 'TRUE', Visual3D will also search in subfolders under 'FILE_PATH' |
/SUFFIX= | Optional suffix to append to the base file name. |
/SET_PROMPT=File_Open | If provided, prompts the user with a dialog box titled with this label to choose a file manually. |
/ON_FILE_NOT_FOUND=PROMPT | If the file is not found, 'PROMPT' or 'SKIP' |
/FILE_TYPES_ON_PROMPT | Filter for the file types when using prompt. |
The command can be edited in a text editor or in a dialog form. To edit in the dialog, either click on the Edit button in the pipeline workshop or double-click on the pipeline command.
The dialog is shown below:
The following examples will go through the use of the File_Open command within the Visual3D application.
This example will prompt the user for the files by opening a dialog box for selection.
File_Open /FILE_NAME= ! /FILE_PATH= ! /SEARCH_SUBFOLDERS=FALSE ! /SUFFIX= ! /SET_PROMPT=File_Open ! /ON_FILE_NOT_FOUND=PROMPT ! /FILE_TYPES_ON_PROMPT= ;
This example specifies the filename explicitly. Note that the filename should contain the complete path to the file.
File_Open /FILE_NAME= c:\demo_files\walking.c3d ! /FILE_PATH= ! /SEARCH_SUBFOLDERS=FALSE ! /SUFFIX= ! /SET_PROMPT=File_Open ! /ON_FILE_NOT_FOUND=PROMPT ! /FILE_TYPES_ON_PROMPT= ;
This example specifies the filename by using a wildcard. All C3D files in the c:\demo_files folder will be opened.
File_Open /FILE_NAME= c:\demo_files\*.c3d ! /FILE_PATH= ! /SEARCH_SUBFOLDERS=FALSE ! /SUFFIX= ! /SET_PROMPT=File_Open ! /ON_FILE_NOT_FOUND=PROMPT ! /FILE_TYPES_ON_PROMPT=
This example uses Pipeline Parameters to specify the folder containing the data files and uses a wildcard in the filename
Set_Pipeline_Parameter_To_Folder_Path /PARAMETER_NAME= DATA_FOLDER /PARAMETER_VALUE=c:\demo_files ; ! Now open the file. File_Open /FILE_NAME= ::DATA_FOLDER&*.c3d ! /FILE_PATH= ! /SEARCH_SUBFOLDERS=FALSE ! /SUFFIX= ! /SET_PROMPT=File_Open ! /ON_FILE_NOT_FOUND=PROMPT ! /FILE_TYPES_ON_PROMPT=
This example uses Pipeline Parameters to specify the default data folder containing the data files and uses a wildcard in the filename.
Set_Pipeline_Parameter_To_Folder_Path /PARAMETER_NAME= DATA_FOLDER /PARAMETER_VALUE=VISUAL3D_DEFAULT_DATA_FOLDER ; ! Now open the file. File_Open= File_Open /FILE_NAME= ::DATA_FOLDER&*.c3d ! /FILE_PATH= ! /SEARCH_SUBFOLDERS=FALSE ! /SUFFIX= ! /SET_PROMPT=File_Open ! /ON_FILE_NOT_FOUND=PROMPT ! /FILE_TYPES_ON_PROMPT=
The following file types are supported and can be added within Visual3D:
You can filter using the following filter types:
Multiple file types can be specified by using a plus sign (ex. C3D+CMO+P2D)