STLImportBuilder Class¶
-
class
NXOpen.Facet.
STLImportBuilder
¶ Bases:
NXOpen.Builder
The STL file import builder.
Inputs to this class can be convergent objects. To create a new instance of this class, use
NXOpen.Facet.FacetedBodyCollection.CreateSTLImportBuilder()
Default values.
Property Value AngularTolerance Medium FacetBodyType Psm HideSmoothEdges 1 MinimumAngleFoldedFacets 15.0 MinimumFacetNumber 100 STLFileUnits Millimeters ShowInformationWindow 0 New in version NX6.0.0.
Properties¶
Property | Description |
---|---|
AngularTolerance | Returns or sets the angular tolerance |
CleanUp | Returns or sets the option to clean up all mesh defects on import |
FacetBodyType | Returns or sets the facet body type |
File | Returns or sets the STL file |
HideSmoothEdges | Returns or sets the indicator for whether to hide smooth edges |
MinimumAngleFoldedFacets | Returns or sets the value for minimum angle between adjacent facets to define folded facets. |
MinimumFacetNumber | Returns or sets the value for minimum number of facets for a STL file to be imported |
STLFileUnits | Returns or sets the STL file units |
ShowInformationWindow | Returns or sets the indicator for whether to show information window |
Tag | Returns the Tag for this object. |
Methods¶
Method | Description |
---|---|
Commit | Commits any edits that have been applied to the builder. |
Destroy | Deletes the builder, and cleans up any objects created by the builder. |
GetCommittedObjects | For builders that create more than one object, this method returns the objects that are created by commit. |
GetObject | Returns the object currently being edited by this builder. |
ShowResults | Updates the model to reflect the result of an edit to the model for all builders that support showing results. |
Validate | Validate whether the inputs to the component are sufficient for commit to be called. |
Enumerations¶
STLImportBuilderAngularToleranceTypes Enumeration | The angular tolerance types |
STLImportBuilderFacetBodyTypes Enumeration | These represent the type of body that will get created on importing the STL file |
STLImportBuilderSTLFileUnitsTypes Enumeration | The STL file units types |
Property Detail¶
AngularTolerance¶
-
STLImportBuilder.
AngularTolerance
¶ Returns or sets the angular tolerance
-------------------------------------
Getter Method
Signature
AngularTolerance
Returns: Return type: NXOpen.Facet.STLImportBuilderAngularToleranceTypes
New in version NX6.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR studio_free_form (“STUDIO FREE FORM”)
-------------------------------------
Setter Method
Signature
AngularTolerance
Parameters: angularTolerance ( NXOpen.Facet.STLImportBuilderAngularToleranceTypes
) –New in version NX6.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR studio_free_form (“STUDIO FREE FORM”)
CleanUp¶
-
STLImportBuilder.
CleanUp
¶ Returns or sets the option to clean up all mesh defects on import
-------------------------------------
Getter Method
Signature
CleanUp
Returns: Return type: bool New in version NX10.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR studio_free_form (“STUDIO FREE FORM”)
-------------------------------------
Setter Method
Signature
CleanUp
Parameters: cleanUp (bool) – New in version NX10.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR studio_free_form (“STUDIO FREE FORM”)
FacetBodyType¶
-
STLImportBuilder.
FacetBodyType
¶ Returns or sets the facet body type
-------------------------------------
Getter Method
Signature
FacetBodyType
Returns: Return type: NXOpen.Facet.STLImportBuilderFacetBodyTypes
New in version NX6.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR studio_free_form (“STUDIO FREE FORM”)
-------------------------------------
Setter Method
Signature
FacetBodyType
Parameters: facetBodyType ( NXOpen.Facet.STLImportBuilderFacetBodyTypes
) –New in version NX6.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR studio_free_form (“STUDIO FREE FORM”)
File¶
-
STLImportBuilder.
File
¶ Returns or sets the STL file
-------------------------------------
Getter Method
Signature
File
Returns: Return type: str New in version NX6.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR nx_freeform_1 (“basic freeform modeling”)
-------------------------------------
Setter Method
Signature
File
Parameters: filename (str) – New in version NX6.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR nx_freeform_1 (“basic freeform modeling”)
HideSmoothEdges¶
-
STLImportBuilder.
HideSmoothEdges
¶ Returns or sets the indicator for whether to hide smooth edges
-------------------------------------
Getter Method
Signature
HideSmoothEdges
Returns: Return type: bool New in version NX6.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR studio_free_form (“STUDIO FREE FORM”)
-------------------------------------
Setter Method
Signature
HideSmoothEdges
Parameters: hideSmoothEdges (bool) – New in version NX6.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR studio_free_form (“STUDIO FREE FORM”)
MinimumAngleFoldedFacets¶
-
STLImportBuilder.
MinimumAngleFoldedFacets
¶ Returns or sets the value for minimum angle between adjacent facets to define folded facets.
-------------------------------------
Getter Method
Signature
MinimumAngleFoldedFacets
Returns: Return type: float New in version NX11.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR studio_free_form (“STUDIO FREE FORM”)
-------------------------------------
Setter Method
Signature
MinimumAngleFoldedFacets
Parameters: minimumAngleFoldedFacets (float) – New in version NX11.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR studio_free_form (“STUDIO FREE FORM”)
MinimumFacetNumber¶
-
STLImportBuilder.
MinimumFacetNumber
¶ Returns or sets the value for minimum number of facets for a STL file to be imported
-------------------------------------
Getter Method
Signature
MinimumFacetNumber
Returns: Return type: int New in version NX11.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR studio_free_form (“STUDIO FREE FORM”)
-------------------------------------
Setter Method
Signature
MinimumFacetNumber
Parameters: minimumFacetNumber (int) – New in version NX11.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR studio_free_form (“STUDIO FREE FORM”)
STLFileUnits¶
-
STLImportBuilder.
STLFileUnits
¶ Returns or sets the STL file units
-------------------------------------
Getter Method
Signature
STLFileUnits
Returns: Return type: NXOpen.Facet.STLImportBuilderSTLFileUnitsTypes
New in version NX6.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR studio_free_form (“STUDIO FREE FORM”)
-------------------------------------
Setter Method
Signature
STLFileUnits
Parameters: stlFileUnits ( NXOpen.Facet.STLImportBuilderSTLFileUnitsTypes
) –New in version NX6.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR studio_free_form (“STUDIO FREE FORM”)
ShowInformationWindow¶
-
STLImportBuilder.
ShowInformationWindow
¶ Returns or sets the indicator for whether to show information window
-------------------------------------
Getter Method
Signature
ShowInformationWindow
Returns: Return type: bool New in version NX6.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR studio_free_form (“STUDIO FREE FORM”)
-------------------------------------
Setter Method
Signature
ShowInformationWindow
Parameters: showInformationWindow (bool) – New in version NX6.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR studio_free_form (“STUDIO FREE FORM”)
Method Detail¶
Validate¶
-
STLImportBuilder.
Validate
¶ Validate whether the inputs to the component are sufficient for commit to be called.
If the component is not in a state to commit then an exception is thrown. For example, if the component requires you to set some property, this method will throw an exception if you haven’t set it. This method throws a not-yet-implemented NXException for some components.
Signature
Validate()
Returns: Was self validation successful Return type: bool New in version NX3.0.1.
License requirements: None.