| Library | Package | Frames | Expand | Java Toolkit |
| Method Summary | |
|---|---|
| Material | CreateMaterial
(String Name)
Creates a material of the specified name (with default values) in the part. |
| /*optional*/ Material | GetCurrentMaterial
()
Get method for attribute "CurrentMaterial" The part material |
| /*optional*/ Material | GetMaterial
(String Name)
Locates a material by name. |
| Materials | ListMaterials
()
Lists the materials that exist in the part. |
| Material | RetrieveMaterial
(String FileName)
Reads the named material properties from file and adds (or updates) the specified material name to the part's database. |
| void | SetCurrentMaterial
(
/*optional*/
Material value)
Set method for attribute "CurrentMaterial" The part material |
| Methods Inherited from Interface com.ptc.pfc.pfcObject.Parent |
|---|
| GetChild |
| Methods Inherited from Interface com.ptc.pfc.pfcModelItem.ModelItemOwner |
|---|
| GetItemByName, GetItemById, ListItems |
| Methods Inherited from Interface com.ptc.pfc.pfcView.ViewOwner |
|---|
| RetrieveView, GetView, SaveView, GetCurrentViewTransform, SetCurrentViewTransform, CurrentViewRotate, ListViews, GetCurrentView |
| Methods Inherited from Interface com.ptc.pfc.pfcObject.Child |
|---|
| GetDBParent, GetOId |
| Methods Inherited from Interface com.ptc.pfc.pfcBase.ActionSource |
|---|
| AddActionListener, RemoveActionListener, AddActionListenerWithType |
| Methods Inherited from Interface com.ptc.pfc.pfcModelItem.RelationOwner |
|---|
| DeleteRelations, GetRelations, SetRelations, RegenerateRelations, EvaluateExpression |
| Methods Inherited from Interface com.ptc.pfc.pfcModelItem.ParameterOwner |
|---|
| GetParam, CreateParam, ListParams, SelectParam, CreateParamWithUnits, SelectParameters |
| Method Detail |
|---|
| GetCurrentMaterial/SetCurrentMaterial |
|---|
| /*optional*/ Material | GetCurrentMaterial | () |
| void | SetCurrentMaterial | ( /*optional*/ Material value) |
| The part material By default, assigning a material to a sheetmetal part through Part.SetCurrentMaterial(/*optional*/ Material) 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".
|
| ListMaterials |
|---|
| Materials | ListMaterials | () |
Lists the materials that exist in the part.
|
| CreateMaterial |
|---|
| Material | CreateMaterial | (String Name) |
| Creates a material of the specified name (with default values)
in the part.
Exceptions thrown (but not limited to): XToolkitFound - The material name already exists.
|
| RetrieveMaterial |
|---|
| Material | RetrieveMaterial | (String 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): XToolkitInvalidType - The model handle you passed to the function is not a part. XToolkitNotFound - The specifed file was not found on the drive.
|
| GetMaterial |
|---|
| /*optional*/ Material | GetMaterial | (String Name) |
| Locates a material by name.
The material must be stored in the part and not stored in an external file.
|