Gets the value of the material property by the property name.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function GetPropertyByName2( _
ByVal NUnit As System.Integer, _
ByVal SName As System.String, _
ByRef BTempDependent As System.Boolean _
) As System.Double |
Visual Basic (Usage) | |
---|
Dim instance As ICWMaterial
Dim NUnit As System.Integer
Dim SName As System.String
Dim BTempDependent As System.Boolean
Dim value As System.Double
value = instance.GetPropertyByName2(NUnit, SName, BTempDependent) |
C++/CLI | |
---|
System.double GetPropertyByName2(
& System.int NUnit,
& System.String^ SName,
& [Out] System.bool BTempDependent
) |
Parameters
- NUnit
- Unit system as defined in swsUnitSystem_e
- SName
- Property name; for example, 'EX' for Elastic modulus, 'NUXY' for Poisson's ratio, etc.
- BTempDependent
- -1 or true if temperature dependent, 0 or false if not (see Remarks)
Return Value
Value of material property
Remarks
See Also
Availability
SOLIDWORKS Simulation API 2021 SP04