GetFieldProperty
Returns the value for the material property, if the property is available as a field. The name of the property is specified by the argument string.
Calling convention:
const IFieldValue* GetFieldProperty (const char* name)
Argument | Data type | Description |
---|---|---|
name | const char* | The name of material property. |
For the full list of supported arguments, see HasProperty.
You can find a definition of this function in theCaeUtils_Exp_IMaterial.hxx header file.
IFieldValue* pYoungModulus = pMaterial->GetFieldProperty( "YoungModulus" );
The following example shows how to access the Yong's modulus through the
GetFieldProperty
method.
pMaterial = pContext->GetMaterial();
IFieldValue* pYoungModulus = pMaterial->GetFieldProperty( "YoungModulus" );