public interface PhysicalMaterialCollection extends TaggedObjectCollection
PhysicalMaterial
objects in this Part
MaterialManager
TaggedObjectCollection.Iterator
Modifier and Type | Method and Description |
---|---|
boolean |
anyBodiesWithoutMaterial()
Returns true if there are bodies in the specified part that do not have a material assigned to them; false if all bodies in the part have a material assigned.
|
boolean |
anyBodiesWithoutPreferredMaterial()
Returns true if there are bodies that do not have the preferred material assigned to them and false if all bodies are assigned the preferred material.
|
PhysicalMaterial |
copyMaterialFromLibrary(String libraryName,
String libraryReference)
Creates an editable material (copy) in the part from a library material definition.
|
PhysicalMaterial |
copyMaterialFromLibrary(String libraryName,
String libraryReference,
boolean retainParentPedigree)
Creates an editable material (copy) in the part from a library material definition.
|
PhysicalMaterial |
copyMaterialItemRevision(String pcMatlItem,
String pcRevisionID)
Deprecated.
Deprecated in NX12.0.0. Teamcenter material item revision is no longer supported.
|
PhysicalMaterialListBuilder |
createListBlockBuilder()
Creates a
PhysicalMaterialListBuilder that controls the physical materials list UI block look and feel as well as capturing the interactions so the values/settings can be journaled. |
PhysicalMaterialAssignBuilder |
createMaterialAssignBuilder()
Creates a PhysMat.MaterialAssignBuilder that is used to control/set the material assign UI as well as to assign materials to bodies.
|
PhysicalMaterialLibMgrBuilder |
createMaterialLibmgrBuilder()
Creates a PhysMat.PhysicalMaterialLibMgrBuilder used by the material library manager UI to control the look and feel as well as capturing the interactions so the values/settings can be journaled.
|
PhysicalMaterialBuilder |
createPhysicalMaterialBuilder(PhysicalMaterial.Type materialType)
Creates a PhysMat.PhysicalMaterialBuilder used to create a physical materials of a given type
License requirements: None. |
PhysicalMaterialBuilder |
createPhysicalMaterialEditBuilder(PhysicalMaterial physicalMaterial)
Creates a PhysMat.PhysicalMaterialBuilder used to edit physical materials.
|
PhysicalMaterialBuilder |
createPhysicalMaterialInspectBuilder(PhysicalMaterial physicalMaterial)
Creates a PhysMat.PhysicalMaterialBuilder used to inspect physical materials.
|
void |
deleteMaterialsFromLibrary(String[] pMatlNames,
String pcLibName)
Deletes the materials from a material library file.
|
void |
exportMaterialsToLibrary(String[] pcMatlNames,
String[] pcLibNames,
String pcExportedLibName,
boolean bUpdateLibraryReference)
Writes out materials to a material library file.
|
void |
exportMaterialsToLibrary(String[] pcMatlNames,
String[] pcLibNames,
String pcExportedLibName,
boolean[] bUpdateLibraryReference)
Writes out materials to a material library file.
|
TaggedObject[] |
findBodiesWithoutMaterial()
Returns the bodies that don't have a material assigned.
|
TaggedObject[] |
findBodiesWithoutPreferredMaterial()
Returns the bodies that are not using the preferred material (either no material assigned or the non-preferred a different material assigned).
|
Material |
findObject(String journalIdentifier)
Finds the
PhysicalMaterial with the given identifier as recorded in a journal. |
PhysicalMaterial |
getLoadedLibraryMaterial(String pcLibName,
String pcMatlName)
Checks if a library material is loaded into a part file or not.
|
PhysicalMaterial |
getLoadedMaterialItemRevision(String pcMatlItem,
String pcRevisionID)
Deprecated.
Deprecated in NX12.0.0. Teamcenter material item revision is no longer supported.
|
PhysicalMaterial[] |
getUsedMaterials()
Returns the materials used in the part
License requirements: None. |
void |
infoItemRevision(String pcMaterialItem,
String pcRevision)
Deprecated.
Deprecated in NX12.0.0. Teamcenter material item revision is no longer supported.
|
void |
infoItemRevisionToFile(String pcMaterialItem,
String pcRevision,
boolean bOverride,
String pcFileName)
Deprecated.
Deprecated in NX12.0.0. Teamcenter material item revision is no longer supported.
|
void |
infoLibraryMaterial(String pcLibAr,
String pcMatlNameAr)
Displays the property values for the specified library material in the information window.
|
void |
infoLibraryMaterialToFile(String pcLibAr,
String pcMatlNameAr,
boolean bOverride,
String pcFileName)
Writes the property values for the specified library material to a file.
|
PhysicalMaterial |
loadFromLegacynxlibrary(String libraryReference)
Creates a non-editable material in the part from the legacy (phys_material.dat) material library definition.
|
PhysicalMaterial |
loadFromLibrary(String pcLibName,
String pcMatlName)
Creates a non-editable material in the part from a material library name.
|
PhysicalMaterial |
loadFromMatmlLibrary(String libraryName,
String materialName)
Creates a non-editable material in the part from a MatML file definition.
|
PhysicalMaterial |
loadFromNxlibrary(String libraryReference)
Creates a non-editable material in the part from a NX Material Library definition.
|
PhysicalMaterial |
loadFromNxmatmllibrary(String materialName)
Creates a non-editable material in the part from a NX MatML material definition.
|
PhysicalMaterial |
loadMaterialItemRevision(String pcMatlItem,
String pcRevisionID)
Deprecated.
Deprecated in NX12.0.0. Teamcenter material item revision is no longer supported.
|
void |
outputMaterialsToLibrary(String[] pcMatlNames,
String[] pcLibNames,
String pcExportedLibName)
Writes out materials to a material library file.
|
void |
updateMaterialsInLibrary(PhysicalMaterial[] tEditedMatl,
String[] pMatlNames,
String pcLibName)
Updates the materials in a material library file.
|
_find_next, iterator
Material findObject(String journalIdentifier) throws NXException, RemoteException
PhysicalMaterial
with the given identifier as recorded in a journal.
An exception will be thrown if no object can be found with the given journal identifier.
journalIdentifier
- Identifier to be foundNXException
RemoteException
PhysicalMaterialListBuilder createListBlockBuilder() throws NXException, RemoteException
PhysicalMaterialListBuilder
that controls the physical materials list UI block look and feel as well as capturing the interactions so the values/settings can be journaled.
PhysicalMaterialListBuilder
NXException
RemoteException
PhysicalMaterialAssignBuilder createMaterialAssignBuilder() throws NXException, RemoteException
PhysicalMaterialAssignBuilder
NXException
RemoteException
PhysicalMaterialBuilder createPhysicalMaterialEditBuilder(PhysicalMaterial physicalMaterial) throws NXException, RemoteException
physicalMaterial
- PhysicalMaterial
to be editedPhysicalMaterialBuilder
NXException
RemoteException
PhysicalMaterialBuilder createPhysicalMaterialInspectBuilder(PhysicalMaterial physicalMaterial) throws NXException, RemoteException
physicalMaterial
- PhysicalMaterial
to be inspectedPhysicalMaterialBuilder
NXException
RemoteException
PhysicalMaterialBuilder createPhysicalMaterialBuilder(PhysicalMaterial.Type materialType) throws NXException, RemoteException
materialType
- Type of PhysicalMaterial
to be createdPhysicalMaterialBuilder
NXException
RemoteException
PhysicalMaterialLibMgrBuilder createMaterialLibmgrBuilder() throws NXException, RemoteException
PhysicalMaterialLibMgrBuilder
NXException
RemoteException
PhysicalMaterial loadFromNxlibrary(String libraryReference) throws NXException, RemoteException
libraryReference
- the unique library reference for a material in this LibraryNXException
RemoteException
PhysicalMaterial loadFromMatmlLibrary(String libraryName, String materialName) throws NXException, RemoteException
libraryName
- the fully qualified library name or if the leaf it will use the current directory, followed by the user and site directories set up in the customer defaultsmaterialName
- the material nameNXException
RemoteException
PhysicalMaterial loadFromLegacynxlibrary(String libraryReference) throws NXException, RemoteException
libraryReference
- the unique library reference for a material in this LibraryNXException
RemoteException
PhysicalMaterial loadFromNxmatmllibrary(String materialName) throws NXException, RemoteException
materialName
- the unique material name from within this LibraryNXException
RemoteException
PhysicalMaterial loadFromLibrary(String pcLibName, String pcMatlName) throws NXException, RemoteException
pcLibName
- the fully qualified library name or if the leaf it will use the current directory, followed by the user and site directories set up in the customer defaultspcMatlName
- the material nameNXException
RemoteException
PhysicalMaterial loadMaterialItemRevision(String pcMatlItem, String pcRevisionID) throws NXException, RemoteException
pcMatlItem
- the material itempcRevisionID
- the revision identifierNXException
RemoteException
PhysicalMaterial getLoadedMaterialItemRevision(String pcMatlItem, String pcRevisionID) throws NXException, RemoteException
pcMatlItem
- the material itempcRevisionID
- the revision identifierNXException
RemoteException
PhysicalMaterial getLoadedLibraryMaterial(String pcLibName, String pcMatlName) throws NXException, RemoteException
pcLibName
- the fully qualified library name or if the leaf it will use the current directory, followed by the user and site directories set up in the customer defaultspcMatlName
- the material nameNXException
RemoteException
PhysicalMaterial copyMaterialFromLibrary(String libraryName, String libraryReference) throws NXException, RemoteException
libraryName
- the fully qualified library name or if the leaf it will use the current directory, followed by the user and site directories set up in the customer defaultslibraryReference
- the material name/identifierNXException
RemoteException
PhysicalMaterial copyMaterialFromLibrary(String libraryName, String libraryReference, boolean retainParentPedigree) throws NXException, RemoteException
libraryName
- the fully qualified library name or if the leaf it will use the current directory, followed by the user and site directories set up in the customer defaultslibraryReference
- the material name/identifierretainParentPedigree
- true indicates that the copied material should retain information about what library material it came fromNXException
RemoteException
PhysicalMaterial copyMaterialItemRevision(String pcMatlItem, String pcRevisionID) throws NXException, RemoteException
pcMatlItem
- the material itempcRevisionID
- the revision identifierNXException
RemoteException
void outputMaterialsToLibrary(String[] pcMatlNames, String[] pcLibNames, String pcExportedLibName) throws NXException, RemoteException
pcMatlNames
- Array of identifiers of the materials to be exportedpcLibNames
- Array of library names corresponding to the material namespcExportedLibName
- The library to write the material definitions toNXException
RemoteException
void exportMaterialsToLibrary(String[] pcMatlNames, String[] pcLibNames, String pcExportedLibName, boolean[] bUpdateLibraryReference) throws NXException, RemoteException
pcMatlNames
- Array of identifiers of the materials to be exportedpcLibNames
- Array of library names corresponding to the material namespcExportedLibName
- The library to write the material definitions tobUpdateLibraryReference
- true indicates that the library reference of loaded/local materials should now refer to the exported library, false indicates the library reference should remain unchangedNXException
RemoteException
void exportMaterialsToLibrary(String[] pcMatlNames, String[] pcLibNames, String pcExportedLibName, boolean bUpdateLibraryReference) throws NXException, RemoteException
pcMatlNames
- Array of identifiers of the materials to be exportedpcLibNames
- Array of library names corresponding to the material namespcExportedLibName
- The library to write the material definitions tobUpdateLibraryReference
- true indicates that the library reference of loaded/local materials should now refer to the exported library, false indicates the library reference should remain unchangedNXException
RemoteException
void updateMaterialsInLibrary(PhysicalMaterial[] tEditedMatl, String[] pMatlNames, String pcLibName) throws NXException, RemoteException
tEditedMatl
- Array of loaded material tagspMatlNames
- Array of the material names which match the name in the library that should take the properties of the corresponding material (tEditedMatl)pcLibName
- Library to modifyNXException
RemoteException
void deleteMaterialsFromLibrary(String[] pMatlNames, String pcLibName) throws NXException, RemoteException
pMatlNames
- Arrays of identifiers of the materials to be deleted from the librarypcLibName
- Library to modifyNXException
RemoteException
TaggedObject[] findBodiesWithoutMaterial() throws NXException, RemoteException
NXException
RemoteException
boolean anyBodiesWithoutMaterial() throws NXException, RemoteException
NXException
RemoteException
TaggedObject[] findBodiesWithoutPreferredMaterial() throws NXException, RemoteException
NXException
RemoteException
boolean anyBodiesWithoutPreferredMaterial() throws NXException, RemoteException
NXException
RemoteException
void infoLibraryMaterial(String pcLibAr, String pcMatlNameAr) throws NXException, RemoteException
pcLibAr
- the library namepcMatlNameAr
- the material nameNXException
RemoteException
void infoLibraryMaterialToFile(String pcLibAr, String pcMatlNameAr, boolean bOverride, String pcFileName) throws NXException, RemoteException
pcLibAr
- the library namepcMatlNameAr
- the material namebOverride
- if the file already exists, true override the file, false append to the filepcFileName
- the full path including filename of file where the information should be writtenNXException
RemoteException
void infoItemRevision(String pcMaterialItem, String pcRevision) throws NXException, RemoteException
pcMaterialItem
- the material itempcRevision
- the revision identifier
NXException
RemoteException
void infoItemRevisionToFile(String pcMaterialItem, String pcRevision, boolean bOverride, String pcFileName) throws NXException, RemoteException
pcMaterialItem
- the material itempcRevision
- the revision identifierbOverride
- if the file already exists, true override the file, false append to the filepcFileName
- the full path including filename of file where the information should be written
NXException
RemoteException
PhysicalMaterial[] getUsedMaterials() throws NXException, RemoteException
NXException
RemoteException
Copyright 2017 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.