NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
NXOpen::SketchEvaluator类 参考

草图评估器 更多...

#include <SketchEvaluator.hxx>

类 NXOpen::SketchEvaluator 继承关系图:
NXOpen::TaggedObject

Public 成员函数

double AngularTolerance ()
bool CreateCurveOption ()
void Destroy ()
double DistanceTolerance ()
std::vector< NXOpen::Curve * > EvaluateOneSketch (double pathLocation)
NXOpen::SectionSection ()
void SetAngularTolerance (double angleTolerance)
void SetCreateCurveOption (bool createCurveOption)
void SetDistanceTolerance (double distanceTolerance)
void SetSection (NXOpen::Section *section)
void SetSimplifyCurveOption (bool simplifySplineOption)
bool SimplifyCurveOption ()
Public 成员函数 继承自 NXOpen::TaggedObject
tag_t Tag () const

友元

class _SketchEvaluatorBuilder

详细描述

草图评估器

Represents a sketch-on-path evaluator. It allows an application to evaluate a section and a sketch-on-path at specific path locations.
To create a new instance of this class, use NXOpen::SketchEvaluatorCollection::Create

Created in NX4.0.1.

成员函数说明

◆ AngularTolerance()

double NXOpen::SketchEvaluator::AngularTolerance ( )

Returns the angle tolerance [degrees]
Created in NX4.0.1.

License requirements : None

◆ CreateCurveOption()

bool NXOpen::SketchEvaluator::CreateCurveOption ( )

Returns the option which allows automatic create of non-associative UG curves for the sketch evaluation.

Note: [1] This property is only used for a call to method "EvaluateOneSketch". [2] this property is defaulted to false.
Created in NX4.0.1.

License requirements : solid_modeling ("SOLIDS MODELING")

◆ Destroy()

void NXOpen::SketchEvaluator::Destroy ( )

Deletes the sketch evaluator, and cleans up any objects created by the it
Created in NX4.0.1.

License requirements : None

◆ DistanceTolerance()

double NXOpen::SketchEvaluator::DistanceTolerance ( )

Returns the distance tolerance
Created in NX4.0.1.

License requirements : None

◆ EvaluateOneSketch()

std::vector< NXOpen::Curve * > NXOpen::SketchEvaluator::EvaluateOneSketch ( double pathLocation)

Work-horse method that evaluates the master section and its sketch on path at a specific path location.

Pre-conditions : [1] A master section must have been registered with call to mutator set_section() or the sketch evaluator must be constructed with an existing feature.

[2] The application should edit the properties "CreateCurveOption", "SimplifyCurveOption" as needed before calling this method.

Post-conditions: [3] If the "create curve" option is set to false, the output curves should be accessed right away. The lifetime of these curves is as long as the next call to method "EvaluateOneSketch".

[4] If the application wants to evaluate the same sketch at multiple path location, it should make several consecutive calls to method "EvaluateOneSketch". At the end of the operation, the application must call method "Destroy".

[5] If the "simplify curve" option is false, the number of curves will always be the same.

[6] The design of this functionality has not been tailored for master section with multiple loops. If the master section has multiple loops, all the curves will be returned in the order of the loops in the section.

[7] Method "EvaluateOneSketch" changes the state of the sketch on path. Therefore, the part is temporarily in out of date state. The application should leverage the NX undo mechanism to reset the state to its original. An alternative solution is to suppress and unsuppress the sketch on path and variational sweep features involved.
Created in NX4.0.1.

License requirements : solid_modeling ("SOLIDS MODELING")

参数
pathLocationinput path arc length percent to evaluate at.

◆ Section()

NXOpen::Section * NXOpen::SketchEvaluator::Section ( )

Returns the master section. Variational sweep accepts sections created ONLY on in the context of a Sketch on Path. Make sure this section is coming from sketch curves created using the sketch on path feature. The application should not mutate the section if evaluator object is created with vsweep feature. Return code : 0 : no error, VARSWEEP_SKETCH_NOT_ON_PATH : on an error condition
Created in NX4.0.1.

License requirements : None

◆ SetAngularTolerance()

void NXOpen::SketchEvaluator::SetAngularTolerance ( double angleTolerance)

Sets the angle tolerance [degrees]
Created in NX4.0.1.

License requirements : solid_modeling ("SOLIDS MODELING")

参数
angleToleranceangle tolerance

◆ SetCreateCurveOption()

void NXOpen::SketchEvaluator::SetCreateCurveOption ( bool createCurveOption)

Sets the option which allows automatic create of non-associative UG curves for the sketch evaluation.

Note: [1] This property is only used for a call to method "EvaluateOneSketch". [2] this property is defaulted to false.
Created in NX4.0.1.

License requirements : solid_modeling ("SOLIDS MODELING")

参数
createCurveOptioncreate curve option

◆ SetDistanceTolerance()

void NXOpen::SketchEvaluator::SetDistanceTolerance ( double distanceTolerance)

Sets the distance tolerance
Created in NX4.0.1.

License requirements : solid_modeling ("SOLIDS MODELING")

参数
distanceTolerancedistance tolerance

◆ SetSection()

void NXOpen::SketchEvaluator::SetSection ( NXOpen::Section * section)

Sets the master section. Variational sweep accepts sections created ONLY on in the context of a Sketch on Path. Make sure this section is coming from sketch curves created using the sketch on path feature. The application should not mutate the section if evaluator object is created with vsweep feature. Return code : 0 : no error, VARSWEEP_SKETCH_NOT_ON_PATH : on an error condition
Created in NX4.0.1.

License requirements : solid_modeling ("SOLIDS MODELING")

参数
sectionmaster section

◆ SetSimplifyCurveOption()

void NXOpen::SketchEvaluator::SetSimplifyCurveOption ( bool simplifySplineOption)

Sets the option which allows the automatic conversion of curves into an approximation of sorted sequence of arcs and lines. This option only convert curves that are not arcs and lines.

Note: [1] This property is only used for a call to method "EvaluateOneSketch". [2] This property is defaulted to false.
Created in NX4.0.1.

License requirements : solid_modeling ("SOLIDS MODELING")

参数
simplifySplineOptionthe simplify spline option

◆ SimplifyCurveOption()

bool NXOpen::SketchEvaluator::SimplifyCurveOption ( )

Returns the option which allows the automatic conversion of curves into an approximation of sorted sequence of arcs and lines. This option only convert curves that are not arcs and lines.

Note: [1] This property is only used for a call to method "EvaluateOneSketch". [2] This property is defaulted to false.
Created in NX4.0.1.

License requirements : solid_modeling ("SOLIDS MODELING")