*start_batch_import
Initializes a sequence of multi-file batch import/merge operations.
Syntax
*start_batch_import mode
Type
HyperMesh Tcl Modify Command
Description
Initializes a sequence of multi-file batch import/merge operations. This is intended to improve performance of importing/merging a series of files. Certain operations that generally are run for each import/merge, and queued up and executed just once at then end of the import. These operations are different for each type of import/merge operation, and therefore cannot be mixed. It is essential to only import/merge valid file types per the mode argument. This command must be followed by a corresponding call to *end_batch_import. It is potentially dangerous to perform other operations within a *start_batch_import/*end_batch_import block, so take proper precaution and make sure to always call these commands in pairs.
Inputs
- mode
-
- 1 - Merge HyperMesh files using *mergefile or *mergefile2
- 2 - Import FE files using *feinputwithdata2
- 3 - Import CAD files using *feinputwithdata2
Example
To execute a sequence of importing multiple CAD files, where the variable cad_files contains the list of files:
*start_batch_import 3
foreach cad_file $cad_files {
*feinputwithdata2 "#Detect" "$cad_file" 1 0 -0.01 0 0 1 0 1 0
}
*end_batch_import
Errors
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
14.0