 | APIgetMaterialProperty Method |
Return selected property from a material
REST path: /material/prop/[ID]/[name]
REST verb: GET
REST header: {"units", units}
Namespace: NextFEMapiAssembly: NextFEMapi (in NextFEMapi.dll) Version: 2.6.0.0 (2.6.0.0)
Syntaxpublic string getMaterialProperty(
string ID,
string name,
ref string units = ""
)
Public Function getMaterialProperty (
ID As String,
name As String,
Optional ByRef units As String = ""
) As String
Dim instance As API
Dim ID As String
Dim name As String
Dim units As String
Dim returnValue As String
returnValue = instance.getMaterialProperty(ID,
name, units)
public:
String^ getMaterialProperty(
String^ ID,
String^ name,
String^% units = L""
)
member getMaterialProperty :
ID : string *
name : string *
?units : string byref
(* Defaults:
let _units = defaultArg units ""
*)
-> string
Parameters
- ID String
- Material ID
- name String
- Name of the property: alphaT, behaviour, code, E, G, fk, ni, Mden, Wden, type
- units String (Optional)
- String supplied to function to eventually convert units of returned value
Return Value
StringThe requested value as string. Empty in case of error
Remarks"Type" returns: Steel = 1, Aluminium = 2, Concrete = 3, Timber = 4, Masonry = 5, TensionFragile = 6, 0 otherwise
See Also