NX Open C++ Reference Guide
|
Represents Physical Material
Created in NX5.0.0.
More...
Public Types | |
enum | Category { CategoryMetals, CategoryPlastics, CategoryPolymers, CategoryCeramics, CategoryOther } |
The different categories of materials. More... | |
enum | Type { TypeIsotropic, TypeOrthotropic, TypeAnisotropic, TypeFluid = 4, TypeGeneralHyperelastic, TypeMooneyrivlin, TypeMooneyrivlintestdata, TypePolynomial, TypeReducedpolynomial, TypeOgden, TypeOgdentestdata, TypeFoam, TypeFoamtestdata, TypeBlatz, TypeArrudaboyce, TypeArrudaboycetestdata, TypeNeohooke, TypeNeohooketestdata, TypeMarlow, TypeVanderwaals, TypeYeoh, TypeYeohtestdata, TypeGent, TypeGasket, TypeGasketbehavior, TypeShapememoryalloy, TypeSussmanbathe } |
The different types of materials. More... | |
Public Member Functions | |
void | AssignObjects (const std::vector< NXOpen::NXObject * > &objects) |
Assigns the material to solid bodies. | |
void | AssignToAllBodies () |
Assigns the material to all solid bodies. | |
void | AssignToBodiesNotUsingPreferredMaterial () |
Assigns the material to all solid bodies not using the preferred material. | |
void | AssignToBodiesWithoutMaterials () |
Assigns the material to all solid bodies without a material already assigned. | |
NXOpen::PhysicalMaterial * | Copy (NXOpen::NXObject *partObject) |
Creates new (copied) material with same properties as the original material. | |
NXOpen::PhysicalMaterial * | CopyLibMatlToPart (NXOpen::NXObject *partObject) |
Copies a library material to a part. | |
void | Delete () |
Deletes a material from the part. | |
NXString | GetCategory () |
Returns the material category. | |
NXString | GetDescription () |
Returns the material description. | |
int | GetId () |
Returns the material id. | |
NXString | GetLibraryName () |
Returns the library name if the material was loaded from a library. | |
NXOpen::PhysicalMaterial::Type | GetMaterialType () |
Returns the material type. | |
NXOpen::CAE::PropertyTable * | GetPropTable () |
Returns the property table that contains the properties for this material. | |
NXString | GetTeamcenterMaterialItem () |
Returns the Teamcenter item if the material was loaded from Teamcenter. | |
void | GetUsage (std::vector< NXOpen::NXObject * > &objects) |
Finds the objects using this material. | |
NXString | GetVersion () |
Returns the material version. | |
void | InfoMaterial () |
Displays the property values for the material in the information window. | |
void | InfoMaterialToFile (bool bOverride, const NXString &pcFileName) |
Writes the property values for the material to a file. | |
bool | IsLoadedLibraryMaterial () |
Returns true if the material is loaded from a library (not Teamcenter) | |
bool | IsLoadedTeamcenterMaterialItem () |
Returns true if the material is loaded from Teamcenter. | |
bool | IsNonlibraryMaterial () |
Returns true if the material is locally defined (not a library/Teamcenter material) | |
void | ResyncWithLibraryDefinition () |
Re-synchronizes a loaded library material to match its latest library definition. | |
void | SetCategory (const NXString &materialCategory) |
Sets the material category. | |
void | SetDescription (const NXString &materialDescription) |
Sets the material description. | |
void | SetId (int materialId) |
Sets the material id. | |
void | UnassignAllObjects () |
Removes the material assignment from all the objects that has it currently assigned. |
Represents Physical Material
Created in NX5.0.0.
The different types of materials.
The material list generated will be filtered based on the material type chosen
void NXOpen::PhysicalMaterial::AssignObjects | ( | const std::vector< NXOpen::NXObject * > & | objects | ) |
Assigns the material to solid bodies.
Created in NX6.0.0.
License requirements : None
objects | objects to assign this material to |
Assigns the material to all solid bodies.
Created in NX7.5.3.
License requirements : None
Assigns the material to all solid bodies not using the preferred material.
Created in NX7.5.3.
License requirements : None
Assigns the material to all solid bodies without a material already assigned.
Created in NX7.5.3.
License requirements : None
NXOpen::PhysicalMaterial* NXOpen::PhysicalMaterial::Copy | ( | NXOpen::NXObject * | partObject | ) |
Creates new (copied) material with same properties as the original material.
The name of the new (copied) material will be unique and based on the name of the original material.
partObject | object in part where to copy material to |
NXOpen::PhysicalMaterial* NXOpen::PhysicalMaterial::CopyLibMatlToPart | ( | NXOpen::NXObject * | partObject | ) |
Copies a library material to a part.
The copied (local) material, unlike a loaded library, material, can be modified.
partObject | object in part where to copy material to |
void NXOpen::PhysicalMaterial::Delete | ( | ) |
Deletes a material from the part.
Created in NX6.0.0.
License requirements : None
Returns the material category.
Returns the material description.
int NXOpen::PhysicalMaterial::GetId | ( | ) |
Returns the material id.
Returns the library name if the material was loaded from a library.
Returns the material type.
Returns the property table that contains the properties for this material.
Returns the Teamcenter item if the material was loaded from Teamcenter.
void NXOpen::PhysicalMaterial::GetUsage | ( | std::vector< NXOpen::NXObject * > & | objects | ) |
Finds the objects using this material.
Created in NX6.0.0.
License requirements : None
objects | the objects using the material |
Returns the material version.
Displays the property values for the material in the information window.
Created in NX7.5.3.
License requirements : None
void NXOpen::PhysicalMaterial::InfoMaterialToFile | ( | bool | bOverride, |
const NXString & | pcFileName | ||
) |
Writes the property values for the material to a file.
Created in NX7.5.3.
License requirements : None
bOverride | if the file already exists, true override the file, false append to the file |
pcFileName | the full path including filename of file where the information should be written NOTE: The full Unicode character set is not supported for this parameter. |
Returns true if the material is loaded from a library (not Teamcenter)
Returns true if the material is loaded from Teamcenter.
Returns true if the material is locally defined (not a library/Teamcenter material)
Re-synchronizes a loaded library material to match its latest library definition.
Created in NX7.5.2.
License requirements : None
void NXOpen::PhysicalMaterial::SetCategory | ( | const NXString & | materialCategory | ) |
Sets the material category.
Created in NX6.0.0.
License requirements : None
materialCategory | the category for the material NOTE: The full Unicode character set is not supported for this parameter. |
void NXOpen::PhysicalMaterial::SetDescription | ( | const NXString & | materialDescription | ) |
Sets the material description.
Created in NX6.0.0.
License requirements : None
materialDescription | the description for the material |
void NXOpen::PhysicalMaterial::SetId | ( | int | materialId | ) |
Sets the material id.
Created in NX7.5.0.
License requirements : None
materialId | the id for the material |
Removes the material assignment from all the objects that has it currently assigned.
Created in NX6.0.0.
License requirements : None