Glyph Version 3.18.3 Mode Types - - - GridImporter |
pw:: GridImporterThe GridImporter IO mode type Derives Frompw::Object pw::Mode pw::IOMode NotesTo create a mode of this type, use the pw::Application.begin command with the mode GridImport specified, like this: set importer [pw::Application begin GridImport] Summary
getFileTypes
This action gets a list of the file types that are supported for grid entity import, with certain file types excluded based on the current CAE and dimension. ParametersThis action has no parameters. ReturnsThis action returns a list containing file type names that can be used in the <initialize> command. read
This action verifies the IO mode attributes and tries to read the file that is being imported. ParametersThis action has no parameters. ReturnsThis action returns a boolean of true if read, false if not. A Tcl error is thrown on failure if -strict was specified for <initialize>. NoteThis action must be called after initialize, but before convert. Possible ErrorsAttributeIsInvalid, CannotOpenFile, CannotAccessFile, FormatIsInvalid, DuplicateNameDetected, MissingReferencesDetected, UnsupportedEntityDetected, UnsupportedByCAEDetected, Unknown, InconsistentDimensionDetected convert
This action converts the data read in by creating pw::GridEntity objects based on the imported data. ParametersThis action has no parameters. ReturnsThis action returns a boolean of true if read, false if not. A Tcl error is thrown on failure if -strict was specified for <initialize>. NoteThis action must be called after initialize and read. Possible ErrorsCannotConvertEntity, Unknown |
This action gets a list of the file types that are supported for grid entity import, with certain file types excluded based on the current CAE and dimension.
$io getFileTypes
This action verifies the IO mode attributes and tries to read the file that is being imported.
$io read
This action checks if there is data that will be converted when the read action is used.
$io canConvert
This action converts the data read in by creating pw::GridEntity objects based on the imported data.
$io convert
This action begins a mode in the application.
pw::Application begin ?-mode_specific_flags? mode ?entities?