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

This class represents a offset surface builder, used for creating or editing an offset surface feature. More...

Inheritance diagram for NXOpen::Features::OffsetSurfaceBuilder:
NXOpen::Features::FeatureBuilder NXOpen::Builder NXOpen::TaggedObject NXOpen::GeometricUtilities::IComponentBuilder

Public Types

enum  OrientationMethodType { OrientationMethodTypeUseExistingNormals, OrientationMethodTypeSpecifyInteriorPosition }
 Represents the type of orientation method. More...
 
enum  OutputOptionType { OutputOptionTypeOneFeatureForConnectedFaces, OutputOptionTypeOneFeatureForEachFace, OutputOptionTypeOneFeatureForAllFaces }
 Represents the type of output option. More...
 

Public Member Functions

void AddFaceSets (const std::vector< NXOpen::GeometricUtilities::FaceSetOffset * > &faceSets)
 Adds face sets to the face set list. More...
 
bool ApproxOption ()
 Returns the option to create approximate offset surface if the offset surface has self-intersections. More...
 
void DeleteFaceSet (int index)
 Deletes a face set at the specified index from the face set list. More...
 
NXOpen::GeometricUtilities::FaceSetOffsetListFaceSets ()
 Returns the list of face sets. More...
 
NXOpen::GeometricUtilities::FaceSetOffsetFindFaceSet (int index)
 Finds and returns a face set at the specified index from the face set list. More...
 
NXOpen::ObjectListGetFaceSetList ()
 Gets the list of face sets. More...
 
std::vector
< NXOpen::GeometricUtilities::FaceSetOffset * > 
GetFaceSets ()
 Gets the face sets. More...
 
NXOpen::Point3d GetInteriorPosition ()
 Gets the offset surface interior position for specify interior position method. More...
 
NXOpen::Features::OffsetSurfaceBuilder::OrientationMethodType GetOrientationMethod ()
 Returns the offset surface orientation method based on the NXOpen::Features::OffsetSurfaceBuilder::OutputOptionType. More...
 
int MaximumExcludedObjects ()
 Returns the maximum excluded objects during partial offset. More...
 
NXOpen::Features::OffsetSurfaceBuilder::OutputOptionType OutputOption ()
 Returns the offset surface output option based on the enum NXOpen::Features::OffsetSurfaceBuilder::OutputOptionType. More...
 
bool PartialOption ()
 Returns the option to pursue a partial offset result. More...
 
NXOpen::ExpressionRadius ()
 Returns the radius for error vertex excision during partial offset. More...
 
bool RemoveProblemVerticesOption ()
 Returns the option to remove problem vertices. More...
 
void SetApproxOption (bool approxOption)
 Sets the option to create approximate offset surface if the offset surface has self-intersections. More...
 
void SetInteriorPosition (const NXOpen::Point3d &point)
 Sets the offset surface interior position for specify interior position method. More...
 
void SetMaximumExcludedObjects (int maximumExcludedObjects)
 Sets the maximum excluded objects during partial offset. More...
 
void SetOrientationMethod (NXOpen::Features::OffsetSurfaceBuilder::OrientationMethodType orientationMethod)
 Sets the orientation method
Created in NX4.0.0. More...
 
void SetOutputOption (NXOpen::Features::OffsetSurfaceBuilder::OutputOptionType outputOption)
 Sets the offset surface output option based on the enum NXOpen::Features::OffsetSurfaceBuilder::OutputOptionType. More...
 
void SetPartialOption (bool partialOption)
 Sets the option to pursue a partial offset result. More...
 
void SetRemoveProblemVerticesOption (bool removeProblemVerticesOption)
 Sets the option to remove problem vertices. More...
 
void SetStepOption (bool stepOption)
 Sets the offset surface allow step boundaries option. More...
 
void SetTolerance (double tolerance)
 Sets the offset surface tolerance. More...
 
bool StepOption ()
 Returns the offset surface allow step boundaries option. More...
 
double Tolerance ()
 Returns the offset surface tolerance. More...
 
- Public Member Functions inherited from NXOpen::Features::FeatureBuilder
NXOpen::Features::FeatureCommitFeature ()
 Commits the feature parameters and creates the feature. More...
 
NXOpen::Features::FeatureGetFeature ()
 Returns the feature currently being edited by this builder. More...
 
void HideInternalParentFeatureAfterEdit (NXOpen::Features::Feature *parentFeature)
 Re-suppress an internal parent feature (a slave feature) after it has been edited. More...
 
bool ParentFeatureInternal ()
 Returns whether or not the latest timestamped parent feature of this feature should be made internal
Created in NX5.0.0. More...
 
bool PatchSolutionFlag ()
 Returns the patch solution flag
Created in NX8.0.1. More...
 
NXString PatchSurfaceFilename ()
 Returns the patch surface filename
Created in NX8.0.1. More...
 
void SetParentFeatureInternal (NXOpen::Features::Feature *parentFeature)
 Set the parent features which would be internal or slaves to the feature being created or commited
Created in NX6.0.0. More...
 
void SetParentFeatureInternal (bool isInternal)
 Sets whether or not the latest timestamped parent feature of this feature should be made internal
Created in NX5.0.0. More...
 
void SetPatchSolutionFlag (bool optionValue)
 Sets the patch solution flag
Created in NX8.0.1. More...
 
void SetPatchSurfaceFilename (const NXString &surfaceFilename)
 Sets the patch surface filename
Created in NX8.0.1. More...
 
void SetPatchSurfaceFilename (const char *surfaceFilename)
 Sets the patch surface filename
Created in NX8.0.1. More...
 
void SetSurroundingPatchSurfaceFilename (const NXString &surroundingSurfaceFilename)
 Sets the surrounding patch surface filename
Created in NX8.0.1. More...
 
void SetSurroundingPatchSurfaceFilename (const char *surroundingSurfaceFilename)
 Sets the surrounding patch surface filename
Created in NX8.0.1. More...
 
void ShowInternalParentFeatureForEdit (NXOpen::Features::Feature *parentFeature)
 Unsuppress an internal parent feature (a slave feature) so it can be edited. More...
 
NXString SurroundingPatchSurfaceFilename ()
 Returns the surrounding patch surface filename
Created in NX8.0.1. More...
 
void UnsetParentFeatureInternal (NXOpen::Features::Feature *parentFeature)
 Set the internal parent feature of the feature being edited to external
Created in NX6.0.0. 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

This class represents a offset surface builder, used for creating or editing an offset surface feature.

The offset surface feature allows different face sets to be offset by different distances. Inputs to this class can be convergent objects.
To create a new instance of this class, use NXOpen::Features::FeatureCollection::CreateOffsetSurfaceBuilder
Default values.

Property Value

ApproxOption

False

OutputOption

OneFeatureForConnectedFaces

PartialOption

False

StepOption

True


Created in NX4.0.0.

Member Enumeration Documentation

Represents the type of orientation method.

This is applicable only if the output output is NXOpen::Features::OffsetSurfaceBuilder::OutputOptionTypeOneFeatureForEachFace . The first enum value implies that the offset direction will be that of the surface normal whereas the second enum value implies that am interior position will be specified and the offset direction will be away from this point

Enumerator
OrientationMethodTypeUseExistingNormals 

use existing normals

OrientationMethodTypeSpecifyInteriorPosition 

specify interior position

Represents the type of output option.

The faces to be offset can be disconnected and also from multiple bodies. If either is the case, then multiple features are created. For deciding whether there should be one feature for each topologically connected set of faces or one feature for each face selected the enum below has been provided

Enumerator
OutputOptionTypeOneFeatureForConnectedFaces 

one feature for connected faces

OutputOptionTypeOneFeatureForEachFace 

one feature for each face

OutputOptionTypeOneFeatureForAllFaces 

one feature for all faces

Member Function Documentation

void NXOpen::Features::OffsetSurfaceBuilder::AddFaceSets ( const std::vector< NXOpen::GeometricUtilities::FaceSetOffset * > &  faceSets)

Adds face sets to the face set list.


Deprecated:
Deprecated in NX5.0.0. Use NXOpen::Features::OffsetSurfaceBuilder::FaceSets instead.


Created in NX4.0.0.

License requirements : solid_modeling ("SOLIDS MODELING")

Parameters
faceSetsFace set list
bool NXOpen::Features::OffsetSurfaceBuilder::ApproxOption ( )

Returns the option to create approximate offset surface if the offset surface has self-intersections.


Created in NX4.0.0.

License requirements : None

void NXOpen::Features::OffsetSurfaceBuilder::DeleteFaceSet ( int  index)

Deletes a face set at the specified index from the face set list.


Deprecated:
Deprecated in NX5.0.0. Use NXOpen::Features::OffsetSurfaceBuilder::FaceSets instead.


Created in NX4.0.0.

License requirements : solid_modeling ("SOLIDS MODELING")

Parameters
indexIndex of face set to be deleted
NXOpen::GeometricUtilities::FaceSetOffsetList* NXOpen::Features::OffsetSurfaceBuilder::FaceSets ( )

Returns the list of face sets.

Each element defines a set of faces, and an offset distance applied to those faces.


Created in NX4.0.0.

License requirements : None

NXOpen::GeometricUtilities::FaceSetOffset* NXOpen::Features::OffsetSurfaceBuilder::FindFaceSet ( int  index)

Finds and returns a face set at the specified index from the face set list.

Returns
Face set returned
Deprecated:
Deprecated in NX5.0.0. Use NXOpen::Features::OffsetSurfaceBuilder::FaceSets instead.


Created in NX4.0.0.

License requirements : solid_modeling ("SOLIDS MODELING")

Parameters
indexIndex of face set to be returned
NXOpen::ObjectList* NXOpen::Features::OffsetSurfaceBuilder::GetFaceSetList ( )

Gets the list of face sets.

Returns
Face set list
Deprecated:
Deprecated in NX5.0.0. Use NXOpen::Features::OffsetSurfaceBuilder::FaceSets instead.


Created in NX4.0.0.

License requirements : None

std::vector<NXOpen::GeometricUtilities::FaceSetOffset *> NXOpen::Features::OffsetSurfaceBuilder::GetFaceSets ( )

Gets the face sets.

A face set is a combination of a face collector and an offset distance.

Returns
Face set list
Deprecated:
Deprecated in NX5.0.0. Use NXOpen::Features::OffsetSurfaceBuilder::FaceSets instead.


Created in NX4.0.0.

License requirements : None

NXOpen::Point3d NXOpen::Features::OffsetSurfaceBuilder::GetInteriorPosition ( )

Gets the offset surface interior position for specify interior position method.

Returns
Interior position for specify interior position method
Created in NX4.0.0.

License requirements : None
NXOpen::Features::OffsetSurfaceBuilder::OrientationMethodType NXOpen::Features::OffsetSurfaceBuilder::GetOrientationMethod ( )

Returns the offset surface orientation method based on the NXOpen::Features::OffsetSurfaceBuilder::OutputOptionType.

Returns
Orientation method
Created in NX4.0.0.

License requirements : None
int NXOpen::Features::OffsetSurfaceBuilder::MaximumExcludedObjects ( )

Returns the maximum excluded objects during partial offset.

If the excluded objects reach this number, the partial offset will stop.


Created in NX7.5.0.

License requirements : None

NXOpen::Features::OffsetSurfaceBuilder::OutputOptionType NXOpen::Features::OffsetSurfaceBuilder::OutputOption ( )

Returns the offset surface output option based on the enum NXOpen::Features::OffsetSurfaceBuilder::OutputOptionType.


Created in NX4.0.0.

License requirements : None

bool NXOpen::Features::OffsetSurfaceBuilder::PartialOption ( )

Returns the option to pursue a partial offset result.


Created in NX7.5.0.

License requirements : None

NXOpen::Expression* NXOpen::Features::OffsetSurfaceBuilder::Radius ( )

Returns the radius for error vertex excision during partial offset.


Created in NX7.5.0.

License requirements : None

bool NXOpen::Features::OffsetSurfaceBuilder::RemoveProblemVerticesOption ( )

Returns the option to remove problem vertices.


Created in NX7.5.0.

License requirements : None

void NXOpen::Features::OffsetSurfaceBuilder::SetApproxOption ( bool  approxOption)

Sets the option to create approximate offset surface if the offset surface has self-intersections.


Created in NX4.0.0.

License requirements : solid_modeling ("SOLIDS MODELING")

Parameters
approxOptionApproximate offset option
void NXOpen::Features::OffsetSurfaceBuilder::SetInteriorPosition ( const NXOpen::Point3d point)

Sets the offset surface interior position for specify interior position method.

This allows the specified faces to be offset away from the interior position.


Created in NX4.0.0.

License requirements : solid_modeling ("SOLIDS MODELING")

Parameters
pointInterior position for specify interior position method
void NXOpen::Features::OffsetSurfaceBuilder::SetMaximumExcludedObjects ( int  maximumExcludedObjects)

Sets the maximum excluded objects during partial offset.

If the excluded objects reach this number, the partial offset will stop.


Created in NX7.5.0.

License requirements : solid_modeling ("SOLIDS MODELING")

Parameters
maximumExcludedObjectsMaximum excluded objects
void NXOpen::Features::OffsetSurfaceBuilder::SetOrientationMethod ( NXOpen::Features::OffsetSurfaceBuilder::OrientationMethodType  orientationMethod)

Sets the orientation method
Created in NX4.0.0.



License requirements : solid_modeling ("SOLIDS MODELING")

Parameters
orientationMethodOrientation method
void NXOpen::Features::OffsetSurfaceBuilder::SetOutputOption ( NXOpen::Features::OffsetSurfaceBuilder::OutputOptionType  outputOption)

Sets the offset surface output option based on the enum NXOpen::Features::OffsetSurfaceBuilder::OutputOptionType.


Created in NX4.0.0.

License requirements : solid_modeling ("SOLIDS MODELING")

Parameters
outputOptionOutput option
void NXOpen::Features::OffsetSurfaceBuilder::SetPartialOption ( bool  partialOption)

Sets the option to pursue a partial offset result.


Created in NX7.5.0.

License requirements : solid_modeling ("SOLIDS MODELING")

Parameters
partialOptionpartialoption
void NXOpen::Features::OffsetSurfaceBuilder::SetRemoveProblemVerticesOption ( bool  removeProblemVerticesOption)

Sets the option to remove problem vertices.


Created in NX7.5.0.

License requirements : solid_modeling ("SOLIDS MODELING")

Parameters
removeProblemVerticesOptionremoveproblemverticesoption
void NXOpen::Features::OffsetSurfaceBuilder::SetStepOption ( bool  stepOption)

Sets the offset surface allow step boundaries option.

If this option is true then side faces will be created along any smooth edge between a face which is offset and one which is not.


Created in NX4.0.0.

License requirements : solid_modeling ("SOLIDS MODELING")

Parameters
stepOptionAllow step boundaries option
void NXOpen::Features::OffsetSurfaceBuilder::SetTolerance ( double  tolerance)

Sets the offset surface tolerance.


Created in NX4.0.0.

License requirements : solid_modeling ("SOLIDS MODELING")

Parameters
toleranceTolerance
bool NXOpen::Features::OffsetSurfaceBuilder::StepOption ( )

Returns the offset surface allow step boundaries option.

If this option is true then side faces will be created along any smooth edge between a face which is offset and one which is not.


Created in NX4.0.0.

License requirements : None

double NXOpen::Features::OffsetSurfaceBuilder::Tolerance ( )

Returns the offset surface tolerance.


Created in NX4.0.0.

License requirements : None


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