| Library | File | Frames | Expand |
| pfcMaterial_ptr | CreateMaterial (xrstring Name) | |
| Creates a material of the specified name (with default values) in the part. | ||
| optional pfcMaterial_ptr | GetCurrentMaterial () | |
| void | SetCurrentMaterial (optional pfcMaterial_ptr value) | |
| The part material | ||
| optional pfcMaterial_ptr | GetMaterial (xrstring Name) | |
| Locates a material by name. | ||
| pfcMaterials_ptr | ListMaterials () | |
| Lists the materials that exist in the part. | ||
| pfcMaterial_ptr | RetrieveMaterial (xrstring FileName) | |
| Reads the named material properties from file and adds (or updates) the specified material name to the part's database. | ||
| optional pfcMaterial_ptr | GetCurrentMaterial | () |
| void | SetCurrentMaterial | (optional pfcMaterial_ptr value) |
|
The part material By default, assigning a material to a sheetmetal part through pfcPart::SetCurrentMaterial(optional pfcMaterial_ptr) modifies the values of the sheetmetal properties such as Y factor and/or bend table as per the material file definition. This triggers a regeneration and a modification of the developed length calculations of the sheetmetal part. However, you can avoid this behavior by setting the value of the config option "material_update_smt_bend_table" to "never_replace".
|
| pfcMaterials_ptr | ListMaterials | () |
|
Lists the materials that exist in the part.
|
| pfcMaterial_ptr | CreateMaterial | (xrstring Name) |
|
Creates a material of the specified name (with default values) in the part. Exceptions thrown (but not limited to): pfcXToolkitFound - The material name already exists.
|
| pfcMaterial_ptr | RetrieveMaterial | (xrstring FileName) |
|
Reads the named material properties from file and adds (or updates) the specified material name to the part's database. Exceptions thrown (but not limited to): pfcXToolkitInvalidType - The model handle you passed to the function is not a part. pfcXToolkitNotFound - The specifed file was not found on the drive.
|
| optional pfcMaterial_ptr | GetMaterial | (xrstring Name) |
|
Locates a material by name. The material must be stored in the part and not stored in an external file.
|