cPropMaterial AddMaterial Method CSi API ETABS 2015
Adds a new material property to the model.

Namespace: ETABS2015
Assembly: ETABS2015 (in ETABS2015.dll) Version: 15.0.0.0 (15.0.0.0)
Syntax

int AddMaterial(
	ref string Name,
	eMatType MatType,
	string Region,
	string Standard,
	string Grade,
	string UserName = ""
)

Parameters

Name
Type: OnlineSystem String 
This item is returned by the program. It is the name that the program ultimately assigns for the material property. If no UserName is specified, the program assigns a default name to the material property. If a UserName is specified and that name is not used for another material property, the UserName is assigned to the material property.
MatType
Type: ETABS2015 eMatType
This is one of the items in the eMatType enumeration.
Region
Type: OnlineSystem String
The region name of the material property that is user-predefined in the file "CSiMaterialLibrary*.xml" located in subfolder "Property Libraries" under the program installation.
Standard
Type: OnlineSystem String
The Standard name of the material property with the specified MatType within the specified region.
Grade
Type: OnlineSystem String
UserName (Optional)
Type: OnlineSystem String

Return Value

Returns zero if the material property is successfully added, otherwise it returns a nonzero value.
Remarks

This function adds a new material property to the model based on the Code-specified and other pre-defined material properties defined in the installed file "CSiMaterialLibrary*.xml" located in subfolder "Property Libraries" under the program installation folder.
Examples

See Also