NX Open C++ Reference Guide
Public Types | Public Member Functions | List of all members
NXOpen::PhysicalMaterial Class Reference

Represents Physical Material
Created in NX5.0.0. More...

Inheritance diagram for NXOpen::PhysicalMaterial:
NXOpen::Material NXOpen::CAE::IExportableFEEntity NXOpen::NXObject NXOpen::TaggedObject NXOpen::INXObject

Public Types

enum  AssignWarning { AssignWarningNone, AssignWarningInvalidObj }
 Indicates the underlying issues when trying to assign material. More...
 
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, TypeGasketdisplacement
}
 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.
 
NXOpen::PhysicalMaterial::AssignWarning AssignToBodiesNotUsingPreferredMaterial ()
 Assigns the material to all solid bodies not using the preferred material.
 
NXOpen::PhysicalMaterial::AssignWarning AssignToBodiesWithoutMaterials ()
 Assigns the material to all solid bodies without a material already assigned.
 
NXOpen::PhysicalMaterialCopy (NXOpen::NXObject *partObject)
 Creates new (copied) material with same properties as the original material.
 
NXOpen::PhysicalMaterialCopyLibMatlToPart (NXOpen::NXObject *partObject)
 Copies a library material to a part.
 
NXOpen::PhysicalMaterialCopyLibMatlToPart (NXOpen::NXObject *partObject, bool editable)
 Copies a library material to a part.
 
void Delete ()
 Deletes a material from the part.
 
NXString GetAlternatename ()
 Returns the material alternate name.
 
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.
 
NXString GetMaterialCategory ()
 Returns the material category using international character set.
 
NXOpen::PhysicalMaterial::Type GetMaterialType ()
 Returns the material type.
 
void GetParentlibrarymaterial (NXString *parentName, NXString *parentLibraryName)
 Returns the parent libary material information.
 
NXOpen::PhysicalMaterialGetParentmaterial ()
 Returns the parent material that the material was copied from.
 
NXOpen::BasePropertyTableGetPropTable ()
 Returns the property table that contains the properties for this material.
 
virtual std::vector< NXStringGetSolverCardSyntax ()
 Returns the solver card syntax strings for this entity.
 
NXString GetSubcategory ()
 Returns the material sub-category.
 
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.
 
bool HasParentlibrarymaterial ()
 Returns whether the material was copied from a library material.
 
bool HasParentmaterial ()
 Returns whether the material was copied from another material.
 
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.
 
void InfoMaterialToFile (bool bOverride, const char *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 SetAlternatename (const NXString &materialAlternatename)
 Sets the material alternate name.
 
void SetAlternatename (const char *materialAlternatename)
 Sets the material alternate name.
 
void SetCategory (const NXString &materialCategory)
 Sets the material category.
 
void SetCategory (const char *materialCategory)
 Sets the material category.
 
void SetDescription (const NXString &materialDescription)
 Sets the material description.
 
void SetDescription (const char *materialDescription)
 Sets the material description.
 
void SetId (int materialId)
 Sets the material id.
 
void SetMaterialCategory (const NXString &materialCategory)
 Sets the material category using international character set.
 
void SetMaterialCategory (const char *materialCategory)
 Sets the material category using international character set.
 
void SetSubcategory (const NXString &materialSubcategory)
 Sets the material sub-category.
 
void SetSubcategory (const char *materialSubcategory)
 Sets the material sub-category.
 
void UnassignAllObjects ()
 Removes the material assignment from all the objects that has it currently assigned.
 
void UpdateMaterialProperties ()
 Re-synchronizes a material with its definition.
 

Detailed Description

Represents Physical Material
Created in NX5.0.0.


Member Enumeration Documentation

Indicates the underlying issues when trying to assign material.

Enumerator:
AssignWarningNone 

No warning.

AssignWarningInvalidObj 

Invalid objects are not assigned.

The different categories of materials.

The material list generated will be filtered based on the category

Enumerator:
CategoryMetals 

Metals.

CategoryPlastics 

Plastics.

CategoryPolymers 

Polymers.

CategoryCeramics 

Ceramics.

CategoryOther 

Other (Not metal, plastic, etc.)

The different types of materials.

The material list generated will be filtered based on the material type chosen

Enumerator:
TypeIsotropic 

Isotropic.

TypeOrthotropic 

Orthotropic.

TypeAnisotropic 

Anisotropic.

TypeGeneralHyperelastic 

Hyperelastic - General.

TypeMooneyrivlin 

Mooney Rivlin.

TypeMooneyrivlintestdata 

Mooney Rivlin - test data option.

TypePolynomial 

Polynomial.

TypeReducedpolynomial 

Reduced Polynomial.

TypeOgden 

Ogden.

TypeOgdentestdata 

Ogden - test data option.

TypeFoam 

Foam.

TypeFoamtestdata 

Foam - test data option.

TypeBlatz 

Blatz-Ko.

TypeArrudaboyce 

Arruda-Boyce.

TypeArrudaboycetestdata 

Arruda-Boyce - test data option.

TypeNeohooke 

Neo Hooke.

TypeNeohooketestdata 

Neo Hooke - test data option.

TypeMarlow 

Marlow.

TypeVanderwaals 

Van Der Waals.

TypeYeoh 

Yeoh.

TypeYeohtestdata 

Yeoh - test data option.

TypeGent 

Gent.

TypeGasket 

Gasket.

TypeGasketbehavior 

Gasket Behavior.

TypeShapememoryalloy 

Shape Memory Alloy.

TypeSussmanbathe 

Sussman-Bathe hyperelastic material.

TypeGasketdisplacement 

Gasket with length-based loading.

Member Function Documentation

void NXOpen::PhysicalMaterial::AssignObjects ( const std::vector< NXOpen::NXObject * > &  objects)

Assigns the material to solid bodies.


Created in NX6.0.0.

License requirements : None

Parameters
objectsobjects to assign this material to
void NXOpen::PhysicalMaterial::AssignToAllBodies ( )

Assigns the material to all solid bodies.


Created in NX7.5.3.

License requirements : None

NXOpen::PhysicalMaterial::AssignWarning NXOpen::PhysicalMaterial::AssignToBodiesNotUsingPreferredMaterial ( )

Assigns the material to all solid bodies not using the preferred material.

Invalid bodies are skipped and a warning code will be returned.

Returns
Returns a warning code if any
Created in NX7.5.3.

License requirements : None
NXOpen::PhysicalMaterial::AssignWarning NXOpen::PhysicalMaterial::AssignToBodiesWithoutMaterials ( )

Assigns the material to all solid bodies without a material already assigned.

Invalid bodies are skipped and a warning code will be returned.

Returns
Returns a warning code if any
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.

Returns
the new material copied from this material
Created in NX6.0.0.

License requirements : None
Parameters
partObjectobject in part where to copy material to
NXOpen::PhysicalMaterial* NXOpen::PhysicalMaterial::CopyLibMatlToPart ( NXOpen::NXObject partObject)

Copies a library material to a part.

@return  the new material copied from this material 


Created in NX6.0.2.

License requirements : None

Parameters
partObjectobject in part where to copy material to
NXOpen::PhysicalMaterial* NXOpen::PhysicalMaterial::CopyLibMatlToPart ( NXOpen::NXObject partObject,
bool  editable 
)

Copies a library material to a part.

The copied (local) material can either be set to be editable or non-editable which determines whether the material can be modified or not.

Returns
the new material copied from this material
Created in NX8.5.0.

License requirements : None
Parameters
partObjectobject in part where to copy material to
editablewhen true, creates a local material ready for user editting. When false, it creates an exact copy of a loaded library material. The difference between loading and copying with this set to false is loading will get the latest library version whereas if the library material passed in is not synchronized with the latest version, the copy will also not be synchronized with the latest version.
void NXOpen::PhysicalMaterial::Delete ( )

Deletes a material from the part.


Created in NX6.0.0.

License requirements : None

NXString NXOpen::PhysicalMaterial::GetAlternatename ( )

Returns the material alternate name.

@return  the alternate name for the material 


Created in NX8.5.0.

License requirements : None

NXString NXOpen::PhysicalMaterial::GetCategory ( )

Returns the material category.

@return  the category for the material 


Created in NX6.0.0.

License requirements : None

NXString NXOpen::PhysicalMaterial::GetDescription ( )

Returns the material description.

@return  the description for the material 


Created in NX6.0.0.

License requirements : None

int NXOpen::PhysicalMaterial::GetId ( )

Returns the material id.

@return  the id for the material 


Created in NX7.5.0.

License requirements : None

NXString NXOpen::PhysicalMaterial::GetLibraryName ( )

Returns the library name if the material was loaded from a library.

@return  the name of the library or NULL for nonlibrary materials   


Created in NX7.5.3.

License requirements : None

NXString NXOpen::PhysicalMaterial::GetMaterialCategory ( )

Returns the material category using international character set.

@return  the category for the material 


Created in NX8.5.0.

License requirements : None

NXOpen::PhysicalMaterial::Type NXOpen::PhysicalMaterial::GetMaterialType ( )

Returns the material type.

@return  the type for the material 


Created in NX6.0.0.

License requirements : None

void NXOpen::PhysicalMaterial::GetParentlibrarymaterial ( NXString parentName,
NXString parentLibraryName 
)

Returns the parent libary material information.


Created in NX8.5.0.

License requirements : None

Parameters
parentNameparentname
parentLibraryNameparentlibraryname
NXOpen::PhysicalMaterial* NXOpen::PhysicalMaterial::GetParentmaterial ( )

Returns the parent material that the material was copied from.

@return  material that the material was originally copied from (parent) 


Created in NX8.5.0.

License requirements : None

NXOpen::BasePropertyTable* NXOpen::PhysicalMaterial::GetPropTable ( )

Returns the property table that contains the properties for this material.

@return  


Created in NX7.5.3.

License requirements : None

virtual std::vector<NXString> NXOpen::PhysicalMaterial::GetSolverCardSyntax ( )
virtual

Returns the solver card syntax strings for this entity.

Returns

Created in NX8.5.0.

License requirements : None

Implements NXOpen::CAE::IExportableFEEntity.

NXString NXOpen::PhysicalMaterial::GetSubcategory ( )

Returns the material sub-category.

@return  the subcategory for the material 


Created in NX8.5.0.

License requirements : None

NXString NXOpen::PhysicalMaterial::GetTeamcenterMaterialItem ( )

Returns the Teamcenter item if the material was loaded from Teamcenter.

@return  the Teamcenter item or NULL for non-Teamcenter materials  


Created in NX7.5.3.

License requirements : None

void NXOpen::PhysicalMaterial::GetUsage ( std::vector< NXOpen::NXObject * > &  objects)

Finds the objects using this material.


Created in NX6.0.0.

License requirements : None

Parameters
objectsthe objects using the material
NXString NXOpen::PhysicalMaterial::GetVersion ( )

Returns the material version.

@return  the material version or NULL for non-versioned materials 


Created in NX7.5.3.

License requirements : None

bool NXOpen::PhysicalMaterial::HasParentlibrarymaterial ( )

Returns whether the material was copied from a library material.

@return  true if it is a copy of a library material and false if it is not 


Created in NX8.5.0.

License requirements : None

bool NXOpen::PhysicalMaterial::HasParentmaterial ( )

Returns whether the material was copied from another material.

@return  true if it is a copy of another (parent) material and false if it is not 


Created in NX8.5.0.

License requirements : None

void NXOpen::PhysicalMaterial::InfoMaterial ( )

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

Parameters
bOverrideif the file already exists, true override the file, false append to the file
pcFileNamethe full path including filename of file where the information should be written
NOTE: The full Unicode character set is not supported for this parameter.
void NXOpen::PhysicalMaterial::InfoMaterialToFile ( bool  bOverride,
const char *  pcFileName 
)

Writes the property values for the material to a file.


Created in NX7.5.3.

License requirements : None

Parameters
bOverrideif the file already exists, true override the file, false append to the file
pcFileNamethe full path including filename of file where the information should be written
NOTE: The full Unicode character set is not supported for this parameter.
bool NXOpen::PhysicalMaterial::IsLoadedLibraryMaterial ( )

Returns true if the material is loaded from a library (not Teamcenter)

@return  true if it a loaded library material and false if it is a local material or  a Teamcenter item revision 


Created in NX7.5.3.

License requirements : None

bool NXOpen::PhysicalMaterial::IsLoadedTeamcenterMaterialItem ( )

Returns true if the material is loaded from Teamcenter.

@return  true if it a loaded Teamcenter material and false if it is a local material or a loaded library material 


Created in NX7.5.3.

License requirements : None

bool NXOpen::PhysicalMaterial::IsNonlibraryMaterial ( )

Returns true if the material is locally defined (not a library/Teamcenter material)

@return  true if it is a locally defined material and false if it is a loaded library material or Teamcenter item revision 


Created in NX7.5.3.

License requirements : None

void NXOpen::PhysicalMaterial::ResyncWithLibraryDefinition ( )

Re-synchronizes a loaded library material to match its latest library definition.


Created in NX7.5.2.

License requirements : None

void NXOpen::PhysicalMaterial::SetAlternatename ( const NXString materialAlternatename)

Sets the material alternate name.


Created in NX8.5.0.

License requirements : None

Parameters
materialAlternatenamethe alternate name for the material
void NXOpen::PhysicalMaterial::SetAlternatename ( const char *  materialAlternatename)

Sets the material alternate name.


Created in NX8.5.0.

License requirements : None

Parameters
materialAlternatenamethe alternate name for the material
void NXOpen::PhysicalMaterial::SetCategory ( const NXString materialCategory)

Sets the material category.


Created in NX6.0.0.

License requirements : None

Parameters
materialCategorythe category for the material
NOTE: The full Unicode character set is not supported for this parameter.
void NXOpen::PhysicalMaterial::SetCategory ( const char *  materialCategory)

Sets the material category.


Created in NX6.0.0.

License requirements : None

Parameters
materialCategorythe 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

Parameters
materialDescriptionthe description for the material
void NXOpen::PhysicalMaterial::SetDescription ( const char *  materialDescription)

Sets the material description.


Created in NX6.0.0.

License requirements : None

Parameters
materialDescriptionthe description for the material
void NXOpen::PhysicalMaterial::SetId ( int  materialId)

Sets the material id.


Created in NX7.5.0.

License requirements : None

Parameters
materialIdthe id for the material
void NXOpen::PhysicalMaterial::SetMaterialCategory ( const NXString materialCategory)

Sets the material category using international character set.


Created in NX8.5.0.

License requirements : None

Parameters
materialCategorythe category for the material
void NXOpen::PhysicalMaterial::SetMaterialCategory ( const char *  materialCategory)

Sets the material category using international character set.


Created in NX8.5.0.

License requirements : None

Parameters
materialCategorythe category for the material
void NXOpen::PhysicalMaterial::SetSubcategory ( const NXString materialSubcategory)

Sets the material sub-category.


Created in NX8.5.0.

License requirements : None

Parameters
materialSubcategorythe subcategory for the material
void NXOpen::PhysicalMaterial::SetSubcategory ( const char *  materialSubcategory)

Sets the material sub-category.


Created in NX8.5.0.

License requirements : None

Parameters
materialSubcategorythe subcategory for the material
void NXOpen::PhysicalMaterial::UnassignAllObjects ( )

Removes the material assignment from all the objects that has it currently assigned.


Created in NX6.0.0.

License requirements : None

void NXOpen::PhysicalMaterial::UpdateMaterialProperties ( )

Re-synchronizes a material with its definition.

The definition could be a library definition or a parent material's (from a copy) definition.


Created in NX8.5.0.

License requirements : None


The documentation for this class was generated from the following file:
Copyright 2013 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.