FacetedBodyCollection Class¶
-
class
NXOpen.Facet.FacetedBodyCollection¶ Bases:
objectRepresents a collection of faceted bodies in a part
To obtain an instance of this class, refer to
NXOpen.PartNew in version NX5.0.0.
“FacetModelingCollection”, “Returns the FacetModelingCollection instance belonging to this part “
Methods¶
Enumerations¶
| FacetedBodyCollectionType Enumeration | Specifies the type of facets created when copying or converting faceted bodies |
FacetModelingCollection¶
-
FacetedBodyCollection.FacetModelingCollection¶ Returns the FacetModelingCollection instance belonging to this part
Signature
FacetModelingCollectionNew in version NX10.0.0.
Returns: Return type: NXOpen.Facet.FacetModelingCollection
Method Detail¶
Convert¶
-
FacetedBodyCollection.Convert¶ Converts the internal representation of this faceted body to the specified type.
This does not create a new body
Signature
Convert(fromBody, toFacetType)Parameters: - fromBody (
NXOpen.Facet.FacetedBody) – The faceted body to convert - toFacetType (
NXOpen.Facet.FacetedBodyCollectionType) – To facet type
New in version NX5.0.0.
License requirements: None.
- fromBody (
Copy¶
-
FacetedBodyCollection.Copy¶ Copies a faceted body and optionally changes the internal representation to the given type (This is only valid for JT to NX copy)
Signature
Copy(fromBody, toPart, toFacetType)Parameters: - fromBody (
NXOpen.Facet.FacetedBody) – The faceted body to copy - toPart (
NXOpen.Part) – Part to create the copy in - toFacetType (
NXOpen.Facet.FacetedBodyCollectionType) – To facet type
Returns: New body
Return type: New in version NX5.0.0.
License requirements: None.
- fromBody (
CreateBestFitAlignBuilder¶
-
FacetedBodyCollection.CreateBestFitAlignBuilder¶ Creates a
NXOpen.Facet.BestFitAlignBuilderSignature
CreateBestFitAlignBuilder()Returns: Return type: NXOpen.Facet.BestFitAlignBuilderNew in version NX6.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR nx_freeform_1 (“basic freeform modeling”)
CreateBridgeFacetBodyBuilder¶
-
FacetedBodyCollection.CreateBridgeFacetBodyBuilder¶ Creates a
NXOpen.Facet.BridgeFacetBodyBuilderSignature
CreateBridgeFacetBodyBuilder()Returns: Return type: NXOpen.Facet.BridgeFacetBodyBuilderNew in version NX9.0.0.
License requirements: studio_free_form (“STUDIO FREE FORM”) OR die_engineering (“DIE ENGINEERING”)
CreateDecimateFacetBodyBuilder¶
-
FacetedBodyCollection.CreateDecimateFacetBodyBuilder¶ Creates a
NXOpen.Facet.DecimateFacetBodyBuilderSignature
CreateDecimateFacetBodyBuilder()Returns: Return type: NXOpen.Facet.DecimateFacetBodyBuilderNew in version NX7.5.0.
License requirements: studio_free_form (“STUDIO FREE FORM”)
CreateExtrudeFacetBodyBuilder¶
-
FacetedBodyCollection.CreateExtrudeFacetBodyBuilder¶ Creates a
NXOpen.Facet.ExtrudeFacetBodyBuilderSignature
CreateExtrudeFacetBodyBuilder()Returns: Return type: NXOpen.Facet.ExtrudeFacetBodyBuilderNew in version NX9.0.0.
License requirements: studio_free_form (“STUDIO FREE FORM”) OR die_engineering (“DIE ENGINEERING”)
CreateExtrudeProfileBuilder¶
-
FacetedBodyCollection.CreateExtrudeProfileBuilder¶ Creates a
NXOpen.Facet.ExtrudeProfileBuilderSignature
CreateExtrudeProfileBuilder()Returns: Return type: NXOpen.Facet.ExtrudeProfileBuilderNew in version NX9.0.0.
License requirements: studio_free_form (“STUDIO FREE FORM”) OR die_engineering (“DIE ENGINEERING”)
CreateFacetBody¶
-
FacetedBodyCollection.CreateFacetBody¶ Creates a JT
NXOpen.Facet.FacetedBodyusing the default faceting tolerances.The output facetBodies and errorTable arrays are the same size as the input nSolidBodies. The errorTable array provides information about any errors encountered when faceting bodies. Note that it is possible that faceted bodies with 0 facets are created (and returned in the facetBodies parameter). For this case, the errorTable will contain the UF_FACET_err_zero_facets_produced error. If there is an existing facet body it will get refaceted with the previous tolerance used to tessellate it . See
NXOpen.Body.GetFacetedBody()for ways to check for this situation.Signature
CreateFacetBody(solidBodies)Parameters: solidBodies (list of NXOpen.Body) –Returns: a tuple Return type: A tuple consisting of (facetBodies, errorTable). facetBodies is a list of NXOpen.Facet.FacetedBody. errorTable is a list of int.New in version NX7.5.5.
License requirements: adv_assemblies (“ADVANCED ASSEMBLIES”)
CreateFacetBodyFromFaces¶
-
FacetedBodyCollection.CreateFacetBodyFromFaces¶ Creates a JT
NXOpen.Facet.FacetedBodyusing the default faceting tolerances.The output facetBodies and errorTable arrays are the same size as the input nSolidFaces. The errorTable array provides information about any errors encountered when faceting bodies. Note that it is possible that faceted bodies with 0 facets are created (and returned in the facetBodies parameter). For this case, the errorTable will contain the UF_FACET_err_zero_facets_produced error. If there is an existing facet body it will get refaceted with the previous tolerance used to tessellate it . See
NXOpen.Body.GetFacetedBody()for ways to check for this situation.Signature
CreateFacetBodyFromFaces(solidFaces)Parameters: solidFaces (list of NXOpen.Face) –Returns: a tuple Return type: A tuple consisting of (facetBodies, errorTable). facetBodies is a list of NXOpen.Facet.FacetedBody. errorTable is a list of int.New in version NX8.5.0.
License requirements: adv_assemblies (“ADVANCED ASSEMBLIES”)
CreateFacetCurvatureBuilder¶
-
FacetedBodyCollection.CreateFacetCurvatureBuilder¶ Create a
NXOpen.Facet.CurvatureBuilderobject.Signature
CreateFacetCurvatureBuilder()Returns: Return type: NXOpen.Facet.CurvatureBuilderNew in version NX5.0.0.
License requirements: None.
CreateFacetFeatureExtractionBuilder¶
-
FacetedBodyCollection.CreateFacetFeatureExtractionBuilder¶ Create a
NXOpen.Facet.FeatureExtractionBuilderobject.Signature
CreateFacetFeatureExtractionBuilder()Returns: Return type: NXOpen.Facet.FeatureExtractionBuilderNew in version NX5.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
CreateFillHoleBuilder¶
-
FacetedBodyCollection.CreateFillHoleBuilder¶ Creates a
NXOpen.Facet.FillHoleBuilderSignature
CreateFillHoleBuilder()Returns: Return type: NXOpen.Facet.FillHoleBuilderNew in version NX6.0.0.
License requirements: studio_free_form (“STUDIO FREE FORM”)
CreateMergeFacetBodyBuilder¶
-
FacetedBodyCollection.CreateMergeFacetBodyBuilder¶ Creates a
NXOpen.Facet.MergeFacetBodyBuilderSignature
CreateMergeFacetBodyBuilder()Returns: Return type: NXOpen.Facet.MergeFacetBodyBuilderNew in version NX9.0.0.
License requirements: studio_free_form (“STUDIO FREE FORM”) OR die_engineering (“DIE ENGINEERING”)
CreateMultiPatchAlignmentBuilder¶
-
FacetedBodyCollection.CreateMultiPatchAlignmentBuilder¶ Creates a
NXOpen.Facet.MultiPatchAlignmentBuilderSignature
CreateMultiPatchAlignmentBuilder()Returns: Return type: NXOpen.Facet.MultiPatchAlignmentBuilderNew in version NX7.5.0.
License requirements: studio_free_form (“STUDIO FREE FORM”)
CreateSTLImportBuilder¶
-
FacetedBodyCollection.CreateSTLImportBuilder¶ Creates a
NXOpen.Facet.STLImportBuilderSignature
CreateSTLImportBuilder()Returns: Return type: NXOpen.Facet.STLImportBuilderNew in version NX6.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR nx_freeform_1 (“basic freeform modeling”)
CreateSewFacetBodyBuilder¶
-
FacetedBodyCollection.CreateSewFacetBodyBuilder¶ Creates a
NXOpen.Facet.SewFacetBodyBuilderSignature
CreateSewFacetBodyBuilder()Returns: Return type: NXOpen.Facet.SewFacetBodyBuilderNew in version NX9.0.0.
License requirements: studio_free_form (“STUDIO FREE FORM”) OR die_engineering (“DIE ENGINEERING”)
CreateSmoothFacetBodyBuilder¶
-
FacetedBodyCollection.CreateSmoothFacetBodyBuilder¶ Creates a
NXOpen.Facet.SmoothFacetBodyBuilderSignature
CreateSmoothFacetBodyBuilder()Returns: Return type: NXOpen.Facet.SmoothFacetBodyBuilderNew in version NX7.5.0.
License requirements: studio_free_form (“STUDIO FREE FORM”)
CreateSnipFacetBodyBuilder¶
-
FacetedBodyCollection.CreateSnipFacetBodyBuilder¶ Creates a
NXOpen.Facet.SnipFacetBodyBuilderSignature
CreateSnipFacetBodyBuilder()Returns: Return type: NXOpen.Facet.SnipFacetBodyBuilderNew in version NX6.0.0.
License requirements: studio_free_form (“STUDIO FREE FORM”)
CreateSubdivideFacetBodyBuilder¶
-
FacetedBodyCollection.CreateSubdivideFacetBodyBuilder¶ Creates a
NXOpen.Facet.SubdivideFacetBodyBuilderSignature
CreateSubdivideFacetBodyBuilder()Returns: Return type: NXOpen.Facet.SubdivideFacetBodyBuilderNew in version NX7.5.0.
License requirements: studio_free_form (“STUDIO FREE FORM”)
DeleteTemporaryFacesAndEdges¶
-
FacetedBodyCollection.DeleteTemporaryFacesAndEdges¶ Delete any temporary faces and edges on faceted bodies that may have been created in the specified part.
Please note that this call will invoke an Update operation.
Signature
DeleteTemporaryFacesAndEdges()New in version NX5.0.2.
License requirements: None.
FindObject¶
-
FacetedBodyCollection.FindObject¶ Finds the
NXOpen.Facet.FacetedBodywith the given identifier as recorded in a journal.An object may not return the same value as its JournalIdentifier in different versions of the software. However newer versions of the software should find the same object when FindObject is passed older versions of its journal identifier. In general, this method should not be used in handwritten code and exists to support record and playback of journals.
An exception will be thrown if no object can be found with the given journal identifier.
Signature
FindObject(journalIdentifier)Parameters: journalIdentifier (str) – Identifier of the faceted body you want Returns: Faceted body with this identifier Return type: NXOpen.Facet.FacetedBodyNew in version NX5.0.0.
License requirements: None.
GetAssociatedFacetedBodies¶
-
FacetedBodyCollection.GetAssociatedFacetedBodies¶ Returns the loaded solid bodies associated with the argument faceted body.
Also returns the number of unloaded associated faceted bodies.
Signature
GetAssociatedFacetedBodies(solidBody)Parameters: solidBody ( NXOpen.Body) – The body for which to get associated faceted bodiesReturns: a tuple Return type: A tuple consisting of (associatedFacetedBodies, numberOfUnloadedFacetedBodies). associatedFacetedBodies is a list of NXOpen.Facet.FacetedBody. Array of loaded associated faceted bodies numberOfUnloadedFacetedBodies is a int. The number of unloaded associated faceted bodies for this solids bodyNew in version NX5.0.0.
License requirements: None.