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

Used to import an STL file into the work part. More...

Inheritance diagram for NXOpen::STLImporter:
NXOpen::Importer NXOpen::Builder NXOpen::TaggedObject NXOpen::GeometricUtilities::IComponentBuilder

Public Types

enum  AngularToleranceType { AngularToleranceTypeCoarse, AngularToleranceTypeMedium, AngularToleranceTypeFine }
 Specifies the angular tolerance. More...
 
enum  FileFormatType { FileFormatTypeAscii, FileFormatTypeBinary }
 Specifies the STL file format. More...
 
enum  FileUnitsType { FileUnitsTypeMeters, FileUnitsTypeMillimeters, FileUnitsTypeInches }
 Specifies the STL file units. More...
 

Public Member Functions

NXOpen::STLImporter::AngularToleranceType AngularTolerance ()
 Returns the angular tolerance. More...
 
bool DisplayInformation ()
 Returns the Display Information flag. More...
 
NXOpen::STLImporter::FileFormatType FileFormat ()
 Returns the file format. More...
 
NXOpen::STLImporter::FileUnitsType FileUnits ()
 Returns the file units. More...
 
bool HideSmoothEdges ()
 Returns the Hide Smooth Edges flag. More...
 
void SetAngularTolerance (NXOpen::STLImporter::AngularToleranceType angularTolerance)
 Sets the angular tolerance. More...
 
void SetDisplayInformation (bool displayInformation)
 Sets the Display Information flag. More...
 
void SetFileFormat (NXOpen::STLImporter::FileFormatType fileFormat)
 Sets the file format. More...
 
void SetFileUnits (NXOpen::STLImporter::FileUnitsType fileUnits)
 Sets the file units. More...
 
void SetHideSmoothEdges (bool hideSmoothEdges)
 Sets the Hide Smooth Edges flag. More...
 
- Public Member Functions inherited from NXOpen::Importer
NXString FileName ()
 Returns the name of the file containing the data to import. More...
 
void SetFileName (const NXString &fileName)
 Sets the name of the file containing the data to import. More...
 
void SetFileName (const char *fileName)
 Sets the name of the file containing the data to import. More...
 
- Public Member Functions inherited from NXOpen::Builder
NXOpen::NXObjectCommit ()
 Commits any edits that have been applied to the builder. More...
 
void Destroy ()
 Deletes the builder, and cleans up any objects created by the builder. More...
 
std::vector< NXOpen::NXObject * > GetCommittedObjects ()
 For builders that create more than one object, this method returns the objects that are created by commit. More...
 
NXOpen::NXObjectGetObject ()
 Returns the object currently being edited by this builder. More...
 
void ShowResults ()
 Updates the model to reflect the result of an edit to the model for all builders that support showing results. More...
 
virtual bool Validate ()
 Validate whether the inputs to the component are sufficient for commit to be called. More...
 
- Public Member Functions inherited from NXOpen::TaggedObject
tag_t Tag () const
 Returns the tag of this object. More...
 

Detailed Description

Used to import an STL file into the work part.


To obtain an instance of this class use ImportManager::CreateStlImporter .

Created in NX5.0.0.

Member Enumeration Documentation

Specifies the angular tolerance.


Created in NX5.0.0.

Enumerator
AngularToleranceTypeCoarse 

Import with coarse angular tolerance.

AngularToleranceTypeMedium 

Import with medium angular tolerance.

AngularToleranceTypeFine 

Import with fine angular tolerance.

Specifies the STL file format.


Created in NX5.0.0.

Enumerator
FileFormatTypeAscii 

STL file is in ASCII format.

FileFormatTypeBinary 

STL file is in binary format.

Specifies the STL file units.


Created in NX5.0.0.

Enumerator
FileUnitsTypeMeters 

STL file is in units of meters.

FileUnitsTypeMillimeters 

STL file is in units of millimeters.

FileUnitsTypeInches 

STL file is in units of inches.

Member Function Documentation

NXOpen::STLImporter::AngularToleranceType NXOpen::STLImporter::AngularTolerance ( )

Returns the angular tolerance.


Created in NX5.0.0.

License requirements : None

bool NXOpen::STLImporter::DisplayInformation ( )

Returns the Display Information flag.

True if the Display Information flag is on.


Created in NX5.0.0.

License requirements : None

NXOpen::STLImporter::FileFormatType NXOpen::STLImporter::FileFormat ( )

Returns the file format.


Created in NX5.0.0.

License requirements : None

NXOpen::STLImporter::FileUnitsType NXOpen::STLImporter::FileUnits ( )

Returns the file units.


Created in NX5.0.0.

License requirements : None

bool NXOpen::STLImporter::HideSmoothEdges ( )

Returns the Hide Smooth Edges flag.

True if the Hide Smooth Edges flag is on.


Created in NX5.0.0.

License requirements : None

void NXOpen::STLImporter::SetAngularTolerance ( NXOpen::STLImporter::AngularToleranceType  angularTolerance)

Sets the angular tolerance.


Created in NX5.0.0.

License requirements : None

Parameters
angularToleranceangular tolerance
void NXOpen::STLImporter::SetDisplayInformation ( bool  displayInformation)

Sets the Display Information flag.

True if the Display Information flag is on.


Created in NX5.0.0.

License requirements : None

Parameters
displayInformationdisplay information
void NXOpen::STLImporter::SetFileFormat ( NXOpen::STLImporter::FileFormatType  fileFormat)

Sets the file format.


Created in NX5.0.0.

License requirements : None

Parameters
fileFormatfile format
void NXOpen::STLImporter::SetFileUnits ( NXOpen::STLImporter::FileUnitsType  fileUnits)

Sets the file units.


Created in NX5.0.0.

License requirements : None

Parameters
fileUnitsfile units
void NXOpen::STLImporter::SetHideSmoothEdges ( bool  hideSmoothEdges)

Sets the Hide Smooth Edges flag.

True if the Hide Smooth Edges flag is on.


Created in NX5.0.0.

License requirements : None

Parameters
hideSmoothEdgeshide smooth edges

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