OOF2: The Manual

Name

OOF.LoadData.MaterialandType — Load Materials from a data file.

Synopsis

OOF.LoadData.MaterialandType(name, properties, materialtype)

Details

  • Parent Menu: OOF.LoadData
  • Callback: function loadMaterialandType in module ooflib.engine.IO.materialmenu
  • Parameters:

    name
    Name of the material. Type: A character string.
    properties
    Properties for the material. Type: A list of character strings.
    materialtype
    Type of the material. Type: An object from the MaterialType enumerated class.

Description

Load Materials definitions from a data file. Data files containing Materials are created by the commands Materials, Microstructure, Skeleton, and Mesh in the OOF.File.Save menu.

The properties argument is a list of names of Properties. They must either have been defined with a OOF.LoadData.Property command in the data file, or already in existence when the data file was read.

This command is only used in data files and is not invoked directly by the OOF2 user interface.