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

表示NXOpen::Curve 的集合。 遍历此集合仅返回包含在集合所属部件中的活动未废弃对象。请注意NXOpen::Curve 是智能对象,许多智能对象会被废弃,因为它们仅用于支持其他对象且不显示。
要获取此类的实例,请参考NXOpen::BasePart

创建于NX3.0.0。
更多...

#include <CurveCollection.hxx>

类 NXOpen::CurveCollection 继承关系图:
NXOpen::TaggedObjectCollection

class  iterator

Public 成员函数

iterator begin ()
NXOpen::ArcCreateArc (const NXOpen::Point3d &center, const NXOpen::Vector3d &xDirection, const NXOpen::Vector3d &yDirection, double radius, double startAngle, double endAngle)
NXOpen::ArcCreateArc (const NXOpen::Point3d &center, NXOpen::NXMatrix *matrix, double radius, double startAngle, double endAngle)
NXOpen::ArcCreateArc (const NXOpen::Point3d &startPoint, const NXOpen::Point3d &pointOn, const NXOpen::Point3d &endPoint, bool alternateSolution, bool *startAndEndGotFlipped)
NXOpen::EllipseCreateEllipse (const NXOpen::Point3d &center, const NXOpen::Vector3d &xDirection, const NXOpen::Vector3d &yDirection, double majorRadius, double minorRadius, double startAngle, double endAngle)
NXOpen::EllipseCreateEllipse (const NXOpen::Point3d &center, double majorRadius, double minorRadius, double startAngle, double endAngle, double rotationAngle, NXOpen::NXMatrix *matrix)
NXOpen::ICurveCreateExtractedCurve (NXOpen::ICurve *curveToExtract, int type, int subtype, NXOpen::Xform *xform, double tolerance, NXOpen::SmartObject::UpdateOption updateOption)
NXOpen::HyperbolaCreateHyperbola (const NXOpen::Point3d &center, const NXOpen::Vector3d &xDirection, const NXOpen::Vector3d &yDirection, double semiTransverseLength, double semiConjugateLength, double minimumDY, double maximumDY)
NXOpen::HyperbolaCreateHyperbola (const NXOpen::Point3d &center, double semiTransverseLength, double semiConjugateLength, double minimumDY, double maximumDY, double rotationAngle, NXOpen::NXMatrix *matrix)
NXOpen::InfiniteLineCreateInfiniteLine (const NXOpen::Point3d &startPoint, const NXOpen::Point3d &endPoint)
NXOpen::LineCreateLine (const NXOpen::Point3d &startPoint, const NXOpen::Point3d &endPoint)
NXOpen::LineCreateLine (NXOpen::Point *startPoint, NXOpen::Point *endPoint)
NXOpen::InfiniteLineCreatePairedInfiniteLine (NXOpen::Line *line)
NXOpen::ParabolaCreateParabola (const NXOpen::Point3d &center, const NXOpen::Vector3d &xDirection, const NXOpen::Vector3d &yDirection, double focalLength, double minimumDY, double maximumDY)
NXOpen::ParabolaCreateParabola (const NXOpen::Point3d &center, double focalLength, double minimumDY, double maximumDY, double rotationAngle, NXOpen::NXMatrix *matrix)
NXOpen::CurveCreateSmartCompositeCurve (NXOpen::Curve *curve, NXOpen::SmartObject::UpdateOption updateOption)
NXOpen::CurveCreateSmartCompositeCurve (NXOpen::Section *section, NXOpen::SmartObject::UpdateOption updateOption, double tolerance)
NXOpen::CurveCreateVirtualBlendCurve (NXOpen::SmartObject::UpdateOption updateOption, NXOpen::IParameterizedSurface *blendFace, double tolerance)
NXOpen::CurveCreateVirtualCenterlineCurve (NXOpen::SmartObject::UpdateOption updateOption, NXOpen::IParameterizedSurface *blendFace, double tolerance)
iterator end ()
tag_t Tag () const

详细描述

表示NXOpen::Curve 的集合。 遍历此集合仅返回包含在集合所属部件中的活动未废弃对象。请注意NXOpen::Curve 是智能对象,许多智能对象会被废弃,因为它们仅用于支持其他对象且不显示。
要获取此类的实例,请参考NXOpen::BasePart

创建于NX3.0.0。

曲线集合类

成员函数说明

◆ begin()

iterator NXOpen::CurveCollection::begin ( )

返回指向第一个元素的迭代器。

◆ CreateArc() [1/3]

NXOpen::Arc * NXOpen::CurveCollection::CreateArc ( const NXOpen::Point3d & center,
const NXOpen::Vector3d & xDirection,
const NXOpen::Vector3d & yDirection,
double radius,
double startAngle,
double endAngle )

创建一个 NXOpen::Arc 。圆弧将创建为通过原点且法向为Z轴。起始角和终止角相对于X轴和Y轴测量。

返回

于NX4.0.0版本创建。

许可要求:solid_modeling ("SOLIDS MODELING") 或 drafting ("DRAFTING") 或 geometric_tol ("GDT") 或 nx_freeform_1 ("basic freeform modeling")
参数
center圆弧的中心点
xDirection圆弧的X方向
yDirection圆弧的Y方向
radius圆弧的半径。必须大于零。
startAngle起始角(弧度)
endAngle终止角(弧度)

◆ CreateArc() [2/3]

NXOpen::Arc * NXOpen::CurveCollection::CreateArc ( const NXOpen::Point3d & center,
NXOpen::NXMatrix * matrix,
double radius,
double startAngle,
double endAngle )

创建一个 NXOpen::Arc 。圆弧将创建在一个通过中心点且法向为定向矩阵Z轴的平面内。(matrix.Element.xx, matrix.Element.xy, matrix.Element.xz) 是定向矩阵的X轴。(matrix.Element.yx, matrix.Element.yy, matrix.Element.yz) 是定向矩阵的Y轴。起始角和终止角相对于该定向矩阵的X轴和Y轴测量。

返回

于NX3.0.0版本创建。

许可要求:solid_modeling ("SOLIDS MODELING") 或 drafting ("DRAFTING") 或 geometric_tol ("GDT") 或 nx_freeform_1 ("basic freeform modeling")
参数
center圆弧的中心点
matrix圆弧的定向矩阵。
radius圆弧的半径。必须大于零。
startAngle起始角(弧度)
endAngle终止角(弧度)

◆ CreateArc() [3/3]

NXOpen::Arc * NXOpen::CurveCollection::CreateArc ( const NXOpen::Point3d & startPoint,
const NXOpen::Point3d & pointOn,
const NXOpen::Point3d & endPoint,
bool alternateSolution,
bool * startAndEndGotFlipped )

创建一条通过三个指定点的 NXOpen::Arc

返回

创建于NX3.0.0。

许可要求:solid_modeling ("SOLIDS MODELING") 或 drafting ("DRAFTING") 或 geometric_tol ("GDT") 或 nx_freeform_1 ("basic freeform modeling")
参数
startPoint起始点
pointOn圆弧经过的点。
endPoint终止点
alternateSolution如果为true,将使用替代解而非常规解创建圆弧。圆弧的替代解是完整圆中常规解未包含的部分。例如,如果常规解是从0度到45度的圆弧,替代解将是具有相同圆心和原点但从45度到360度的圆弧。
startAndEndGotFlipped如果为true,创建的圆弧的起始点是此方法的终止点参数,圆弧的终止点是此方法的起始点参数。换句话说,假设执行arc = Curves.CreateArc(startPointParam, pointOnParam, endPointParam, false, flipped)。如果flipped为true,则arc.StartPoint等于endPointParam,arc.EndPoint等于startPointParam。

◆ CreateEllipse() [1/2]

NXOpen::Ellipse * NXOpen::CurveCollection::CreateEllipse ( const NXOpen::Point3d & center,
const NXOpen::Vector3d & xDirection,
const NXOpen::Vector3d & yDirection,
double majorRadius,
double minorRadius,
double startAngle,
double endAngle )

创建一个 NXOpen::Ellipse 。椭圆将创建为通过原点且法向为Z轴。起始角和终止角相对于X轴和Y轴测量。

返回

于NX4.0.0版本创建。

许可要求:solid_modeling ("SOLIDS MODELING") 或 drafting ("DRAFTING") 或 geometric_tol ("GDT")
参数
center椭圆的中心点
xDirection椭圆的X方向
yDirection椭圆的Y方向
majorRadius椭圆的长半轴半径。必须大于零。
minorRadius椭圆的短半轴半径。必须大于零。
startAngle起始角(弧度)
endAngle终止角(弧度)

◆ CreateEllipse() [2/2]

NXOpen::Ellipse * NXOpen::CurveCollection::CreateEllipse ( const NXOpen::Point3d & center,
double majorRadius,
double minorRadius,
double startAngle,
double endAngle,
double rotationAngle,
NXOpen::NXMatrix * matrix )

创建一个 NXOpen::Ellipse 。椭圆将创建在一个通过中心点且法向为定向矩阵Z轴的平面内。(matrix.Element.xx, matrix.Element.xy, matrix.Element.xz) 是定向矩阵的X轴。(matrix.Element.yx, matrix.Element.yy, matrix.Element.yz) 是定向矩阵的Y轴。起始角、终止角和旋转角相对于该定向矩阵的X轴和Y轴测量。

返回

于NX3.0.0版本创建。

许可要求:solid_modeling ("SOLIDS MODELING") 或 drafting ("DRAFTING") 或 geometric_tol ("GDT")
参数
center椭圆的中心点
majorRadius长半轴半径
minorRadius短半轴半径
startAngle起始角(弧度)
endAngle终止角(弧度)
rotationAngle旋转角(弧度)
matrix椭圆的定向矩阵

◆ CreateExtractedCurve()

NXOpen::ICurve * NXOpen::CurveCollection::CreateExtractedCurve ( NXOpen::ICurve * curveToExtract,
int type,
int subtype,
NXOpen::Xform * xform,
double tolerance,
NXOpen::SmartObject::UpdateOption updateOption )

创建一个 NXOpen::Curve 。将为输入的待提取曲线创建提取曲线。

返回

于NX8.0.0版本创建。

许可要求:solid_modeling ("SOLIDS MODELING") 或 geometric_tol ("GDT")
参数
curveToExtract待提取的曲线或边
type类型
subtype子类型
xform可选的变换
tolerance计算提取曲线的公差
updateOption更新选项

◆ CreateHyperbola() [1/2]

NXOpen::Hyperbola * NXOpen::CurveCollection::CreateHyperbola ( const NXOpen::Point3d & center,
const NXOpen::Vector3d & xDirection,
const NXOpen::Vector3d & yDirection,
double semiTransverseLength,
double semiConjugateLength,
double minimumDY,
double maximumDY )

创建一个 NXOpen::Hyperbola 。双曲线将通过原点创建,其法线为Z轴。

返回

于NX4.0.0版本创建。

许可要求:solid_modeling ("SOLIDS MODELING") 或 drafting ("DRAFTING") 或 geometric_tol ("GDT")
参数
center双曲线的中心
xDirection双曲线的X方向
yDirection双曲线的Y方向
semiTransverseLength半实轴长度
semiConjugateLength半虚轴长度
minimumDY最小DY宽度
maximumDY最大DY宽度

◆ CreateHyperbola() [2/2]

NXOpen::Hyperbola * NXOpen::CurveCollection::CreateHyperbola ( const NXOpen::Point3d & center,
double semiTransverseLength,
double semiConjugateLength,
double minimumDY,
double maximumDY,
double rotationAngle,
NXOpen::NXMatrix * matrix )

创建一个 NXOpen::Hyperbola 。双曲线将创建在一个通过中心点且法向为定向矩阵Z轴的平面内。(matrix.Element.xx, matrix.Element.xy, matrix.Element.xz) 是定向矩阵的X轴。(matrix.Element.yx, matrix.Element.yy, matrix.Element.yz) 是定向矩阵的Y轴。旋转角相对于该定向矩阵的X轴和Y轴测量。

返回

于NX3.0.0版本创建。

许可要求:solid_modeling ("SOLIDS MODELING") 或 drafting ("DRAFTING") 或 geometric_tol ("GDT")
参数
center双曲线的中心点
semiTransverseLength半实轴长度
semiConjugateLength半虚轴长度
minimumDY最小DY宽度
maximumDY最大DY宽度
rotationAngle旋转角(弧度)
matrix双曲线的定向矩阵

◆ CreateInfiniteLine()

NXOpen::InfiniteLine * NXOpen::CurveCollection::CreateInfiniteLine ( const NXOpen::Point3d & startPoint,
const NXOpen::Point3d & endPoint )

创建一条通过两个指定点的 NXOpen::InfiniteLine

返回

创建于NX7.5.0。

许可要求:nx_layout ("NX Layout")
参数
startPoint起始点
endPoint终止点

◆ CreateLine() [1/2]

NXOpen::Line * NXOpen::CurveCollection::CreateLine ( const NXOpen::Point3d & startPoint,
const NXOpen::Point3d & endPoint )

创建一个 NXOpen::Line

返回

创建于NX3.0.0。

许可要求:solid_modeling ("SOLIDS MODELING") 或 drafting ("DRAFTING") 或 cam_base ("CAM BASE") 或 geometric_tol ("GDT") 或 insp_programming ("INSPECTION PROGRAMMING")
参数
startPoint起始点
endPoint终止点

◆ CreateLine() [2/2]

NXOpen::Line * NXOpen::CurveCollection::CreateLine ( NXOpen::Point * startPoint,
NXOpen::Point * endPoint )

创建一个连接给定起始 NXOpen::Point 和终止 NXOpen::PointNXOpen::Line

返回

创建于NX5.0.0。

许可要求:solid_modeling ("SOLIDS MODELING") 或 drafting ("DRAFTING") 或 cam_base ("CAM BASE") 或 geometric_tol ("GDT") 或 insp_programming ("INSPECTION PROGRAMMING")
参数
startPoint起始 NXOpen::Point
endPoint终止 NXOpen::Point

◆ CreatePairedInfiniteLine()

NXOpen::InfiniteLine * NXOpen::CurveCollection::CreatePairedInfiniteLine ( NXOpen::Line * line)

创建一条与指定直线配对的 NXOpen::InfiniteLine

返回

创建于NX7.5.0。

许可要求:nx_layout ("NX Layout")
参数
line配对的 NXOpen::Line

◆ CreateParabola() [1/2]

NXOpen::Parabola * NXOpen::CurveCollection::CreateParabola ( const NXOpen::Point3d & center,
const NXOpen::Vector3d & xDirection,
const NXOpen::Vector3d & yDirection,
double focalLength,
double minimumDY,
double maximumDY )

创建一个 NXOpen::Parabola 。抛物线将创建为通过原点且法向为Z轴。

返回

于NX4.0.0版本创建。

许可要求:solid_modeling ("SOLIDS MODELING") 或 drafting ("DRAFTING") 或 geometric_tol ("GDT")
参数
center抛物线的中心点
xDirection抛物线的X方向
yDirection抛物线的Y方向
focalLength焦距
minimumDY最小DY宽度
maximumDY最大DY宽度

◆ CreateParabola() [2/2]

NXOpen::Parabola * NXOpen::CurveCollection::CreateParabola ( const NXOpen::Point3d & center,
double focalLength,
double minimumDY,
double maximumDY,
double rotationAngle,
NXOpen::NXMatrix * matrix )

创建一个 NXOpen::Parabola 。抛物线将创建在一个通过中心点且法向为定向矩阵Z轴的平面内。(matrix.Element.xx, matrix.Element.xy, matrix.Element.xz) 是定向矩阵的X轴。(matrix.Element.yx, matrix.Element.yy, matrix.Element.yz) 是定向矩阵的Y轴。旋转角相对于该定向矩阵的X轴和Y轴测量。

返回

于NX3.0.0版本创建。

许可要求:solid_modeling ("SOLIDS MODELING") 或 drafting ("DRAFTING") 或 geometric_tol ("GDT")
参数
center抛物线的中心点
focalLength焦距
minimumDY最小DY宽度
maximumDY最大DY宽度
rotationAngle旋转角(弧度)
matrix抛物线的定向矩阵

◆ CreateSmartCompositeCurve() [1/2]

NXOpen::Curve * NXOpen::CurveCollection::CreateSmartCompositeCurve ( NXOpen::Curve * curve,
NXOpen::SmartObject::UpdateOption updateOption )

创建一个 NXOpen::Curve 。将为输入的曲线创建智能复合曲线。

返回

于NX8.0.0版本创建。

许可要求:solid_modeling ("SOLIDS MODELING") 或 drafting ("DRAFTING") 或 geometric_tol ("GDT")
参数
curve用于创建智能复合曲线的曲线
updateOption更新选项

◆ CreateSmartCompositeCurve() [2/2]

NXOpen::Curve * NXOpen::CurveCollection::CreateSmartCompositeCurve ( NXOpen::Section * section,
NXOpen::SmartObject::UpdateOption updateOption,
double tolerance )

创建一个 NXOpen::Curve 。将为输入的截面创建智能复合曲线。

返回

于NX8.0.0版本创建。

许可要求:solid_modeling ("SOLIDS MODELING") 或 drafting ("DRAFTING") 或 geometric_tol ("GDT")
参数
section用于创建智能复合曲线的截面
updateOption更新选项
tolerance用于连接截面输出曲线的公差

◆ CreateVirtualBlendCurve()

NXOpen::Curve * NXOpen::CurveCollection::CreateVirtualBlendCurve ( NXOpen::SmartObject::UpdateOption updateOption,
NXOpen::IParameterizedSurface * blendFace,
double tolerance )

创建一个 NXOpen::Curve 。将为输入的倒圆面创建虚拟倒圆曲线。虚拟倒圆曲线的行为类似于倒圆面所应用的原始边。

返回

于NX7.0.0版本创建。

许可要求:solid_modeling ("SOLIDS MODELING")
参数
updateOption更新选项
blendFace倒圆面
tolerance计算模拟曲线的公差

◆ CreateVirtualCenterlineCurve()

NXOpen::Curve * NXOpen::CurveCollection::CreateVirtualCenterlineCurve ( NXOpen::SmartObject::UpdateOption updateOption,
NXOpen::IParameterizedSurface * blendFace,
double tolerance )

创建一个 NXOpen::Curve 。将为输入的倒圆面创建虚拟中心线曲线。

返回

于NX7.5.0版本创建。

许可要求:solid_modeling ("SOLIDS MODELING")
参数
updateOption更新选项
blendFace倒圆面
tolerance计算模拟曲线的公差

◆ end()

iterator NXOpen::CurveCollection::end ( )
inline

返回指向最后一个元素之后位置的迭代器。

◆ Tag()

tag_t NXOpen::CurveCollection::Tag ( ) const

返回此对象的标签。