cPropMaterial SetWeightAndMass Method CSi API ETABS 2015
Assigns weight per unit volume or mass per unit volume to a material property.

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

int SetWeightAndMass(
	string Name,
	int MyOption,
	double Value,
	double Temp = 0
)

Parameters

Name
Type: OnlineSystem String
The name of an existing material property.
MyOption
Type: OnlineSystem Int32
This is either 1 or 2, indicating what is specified by the Value item.
ValueOption
1Weight per unit volume is specified
2Mass per unit volume is specified
Value
Type: OnlineSystem Double
This is either the weight per unit volume or the mass per unit volume, depending on the value of the MyOption item. [F/L3] for MyOption = 1 (weight), and [M/L3] for MyOption = 2 (mass)
Temp (Optional)
Type: OnlineSystem Double

Return Value

Returns zero if the data is successfully assigned; otherwise it returns a nonzero value.
Remarks

Examples

See Also