STLImportBuilder Class

class NXOpen.Facet.STLImportBuilder

Bases: NXOpen.Builder

The STL file import builder

To create a new instance of this class, use NXOpen.Facet.FacetedBodyCollection.CreateSTLImportBuilder

Default values.

Property Value
AngularTolerance Medium
FacetBodyType Nx
HideSmoothEdges 1
STLFileUnits Millimeters
ShowInformationWindow 0

New in version NX6.0.0.

Properties

Property Description
AngularTolerance Returns or sets the angular tolerance
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
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(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”)

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(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(filename)

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(hideSmoothEdges)

Parameters:hideSmoothEdges (bool) –

New in version NX6.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(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(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.