Library | File

Class pfcMaterialProperty

# include <pfcPart.h>

class pfcMaterialProperty
 : public virtual xobject
{
    xdeclare(pfcMaterialProperty)
    ...
};
This is a COMPACT class.



Description

This class specifies a value/units pair for a material property.



Method Summary

static pfcMaterialProperty_ptrCreate (xreal Value, optional xrstring Units)
Returns a new instance of a material property object.
optional xstringGetUnits ()
voidSetUnits (optional xrstring value)
The units material property. null represents a property that doesn't use units, or a property that is using the units of the owner part.
xrealGetValue ()
voidSetValue (xreal value)
The value of the material property in the property units.



Method Detail

xrealGetValue ()
voidSetValue (xreal value)

The value of the material property in the property units.




optional xstringGetUnits ()
voidSetUnits (optional xrstring value)

The units material property. null represents a property that doesn't use units, or a property that is using the units of the owner part.




static pfcMaterialProperty_ptrCreate (xreal Value, optional xrstring Units)

Returns a new instance of a material property object.

If the property doesn't exist on the material, this method creates it.
See Also:
pfcMaterial::SetPropertyValue(pfcMaterialPropertyType, pfcMaterialProperty_ptr)
Manual References:
Solid: Accessing Material Properties, Solid: Accessing Material Properties
Parameters:
Value
The value of the property.
Units
The units to use for the property, or null.
Returns: