cPropMaterial SetMaterial Method CSi API ETABS 2015
DEPRECATED. Initializes a material property. If this function is called for an existing material property, all items for the material are reset to their default value.

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

int SetMaterial(
	string Name,
	eMatType MatType,
	int Color = -1,
	string Notes = "",
	string GUID = ""
)

Parameters

Name
Type: OnlineSystem String
The name of an existing or new material property. If this is an existing property, that property is modified; otherwise, a new property is added.
MatType
Type: ETABS2015 eMatType
This is one of the items in the eMatType enumeration.
Color (Optional)
Type: OnlineSystem Int32
Notes (Optional)
Type: OnlineSystem String
GUID (Optional)
Type: OnlineSystem String
The GUID (global unique identifier), if any, assigned to the material. If this item is input as Default, the program assigns a GUID to the material.

Return Value

Returns zero if the material is successfully initialized; otherwise it returns a nonzero value.
Remarks

This function is DEPRECATED. Please use AddMaterial(String , eMatType, String, String, String, String) instead.
Examples

See Also