::hwat::io::ImportModel

Loads a model into the current session and optionally creates a HyperMesh entity set and assembly for the newly read components.

Syntax

ImportModel model_name assem_name [overwrite] [offset]

Arguments

model_name
The full URL of the model to load. The file type should be one that HWAT supports. In case of no extension, HWAT will try to import it as a dyna key file.
assem_name
HyperMesh assembly to apply to newly loaded data.
Default = {}
importTransFullPath
Full name with path to the FE import translator.
overwrite
Argument to indicate overwrite (1) vs. no overwrite (0)
Default = overwrite.
Optional.
offset
Argument, which is a list of offsets to apply to the loaded model.
Default = “no offset”
For example, [list comps 0 plots 0...]
Optional.

Returns

Success
1 if the model is loaded successfully
Failure
{}

Example

::hwat::io::ImportModel “D:\Hwat\barriers\208barrier.key”  “HWATBarrier” 1 {comps 0 plots 0…….}

Comments

The URL can be of type “file://” or “http://”. If no prefix is given, type “file://” is assumed.

Support extensions include:
  • .hm: Load as binary HyperMesh database
  • All file types for LS-DYNA, Radioss and MADYMO are supported.