API Reference

Detailed and full API reference helps you master Tekla development

This is the most recent version of Tekla Open API.
For older versions, please visit Tekla Warehouse.

MaterialItem Methods

The MaterialItem type exposes the following members.

  Name Description
Public method Delete
Delete this material from material database.
Public methodCode example Export
Exports the material item in the material database to given file name. Materials are exported to *.lis format. If path is not given material is exported to model folder. If filename is empty material name is used as filename.
Public method Insert
Inserts this material item to material database.
Public methodStatic member MaterialNameMaxLength
Returns the maximum length a material name can be.
Public method Modify
Modifies the material in material database that has the same name as this instance.
Public method Select
Selects the material item from the database based on the material name and alias name in this instance.
Public method Select(String)
Selects the material item based on the name from the material database. The material name can also be an alias name.
See Also