HyperWorks Tools

::hwat::io::ImportModel

::hwat::io::ImportModel

Previous topic Next topic No expanding text in this topic  

::hwat::io::ImportModel

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

NAME

::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 is {} ).

importTransFullPath

Full name with path to the FE import translator.

overwrite

Optional argument to indicate overwrite (1) vs no overwrite (0) (overwrite is default).

offset

Optional argument, which is a list of offsets to apply to the loaded model (“no offset” is default).

e.g. [list comps 0 plots 0...]

 

RETURNS

1 if the model is loaded successfully and a "{}" otherwise.

 

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 HM database

All file types for DYNA, RADIOSS and MADYMO are supported.

 

See also

I/O Functions