NX Open C++ Reference Guide
|
This class contains the factory methods for creating a section. More...
Classes | |
class | iterator |
Iterator for accessing the contents of the collection. More... | |
Public Types | |
enum | LoopOption { LoopOptionSeparate, LoopOptionSeparateOuter } |
Defines how section are created in SectionCollection::CreateSectionsUsingCurves. More... | |
Public Member Functions | |
iterator | begin () |
Returns an iterator addressing the first element. | |
NXOpen::Section * | CreateSection (double chainingTolerance, double distanceTolerance, double angleTolerance) |
Creates a section. | |
NXOpen::Section * | CreateSection () |
Creates a section using default values for chaining, distance, and angle tolerance. | |
NXOpen::Section * | CreateSection (NXOpen::NXObject *curve) |
Creates a section with Single Curve rule using the given curve, edge or point. | |
void | CreateSectionsUsingCurves (const std::vector< NXOpen::NXObject * > &curves, NXOpen::SectionCollection::LoopOption loopOption, double chainingTolerance, double distanceTolerance, double angleTolerance, std::vector< NXOpen::Section * > §ion) |
Creates sections using curves such that each section can be extruded to produce one body. | |
iterator | end () |
Returns an iterator addressing one past the last element. | |
tag_t | Tag () const |
Returns the tag of this object. | |
This class contains the factory methods for creating a section.
To obtain an instance of this class, refer to BasePart
Created in NX3.0.0.
Defines how section are created in SectionCollection::CreateSectionsUsingCurves.
iterator NXOpen::SectionCollection::begin | ( | ) |
Returns an iterator addressing the first element.
NXOpen::Section* NXOpen::SectionCollection::CreateSection | ( | double | chainingTolerance, |
double | distanceTolerance, | ||
double | angleTolerance | ||
) |
Creates a section.
<br>
You should add selection intent rules to the section.
See the documentation for Section::AddToSection for more details.
You can remove selection intent rules or one section element from the section.
See the documentation for Section::RemoveRules and Section::RemoveSingleSectionElement for more details.
chainingTolerance | Chaining tolerance |
distanceTolerance | Distance tolerance |
angleTolerance | Angle tolerance |
NXOpen::Section* NXOpen::SectionCollection::CreateSection | ( | ) |
Creates a section using default values for chaining, distance, and angle tolerance.
<br>
You should add selection intent rules to the section.
See the documentation for Section::AddToSection for more details.
You can remove selection intent rules or one section element from the section.
See the documentation for Section::RemoveRules and Section::RemoveSingleSectionElement for more details.
NXOpen::Section* NXOpen::SectionCollection::CreateSection | ( | NXOpen::NXObject * | curve | ) |
void NXOpen::SectionCollection::CreateSectionsUsingCurves | ( | const std::vector< NXOpen::NXObject * > & | curves, |
NXOpen::SectionCollection::LoopOption | loopOption, | ||
double | chainingTolerance, | ||
double | distanceTolerance, | ||
double | angleTolerance, | ||
std::vector< NXOpen::Section * > & | section | ||
) |
Creates sections using curves such that each section can be extruded to produce one body.
<br>
Curves are first sorted into loops and then the loops are classified as exterior loops and interior loops. A section is created for each exterior loop of curves and includes closed loops that are enclosed in the exterior loop depending on the loop option.
The inputs must be all curves. The curves must lie on the same plane.
Created in NX4.0.4.
License requirements : gateway ("UG GATEWAY")
curves | Curves |
loopOption | Loop option |
chainingTolerance | Chaining tolerance |
distanceTolerance | Distance tolerance |
angleTolerance | Angle tolerance |
section | section |
iterator NXOpen::SectionCollection::end | ( | ) |
Returns an iterator addressing one past the last element.
tag_t NXOpen::SectionCollection::Tag | ( | ) | const |
Returns the tag of this object.