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

表示NXOpen::Routing::ControlPoint 对象的集合。 遍历此集合仅返回集合所属部件中存在的未废弃对象。注意NXOpen::Routing::ControlPoint 是智能对象,许多智能对象仅用于支持其他对象且不显示,因此会被标记为废弃。
要获取此类实例,请参考NXOpen::Routing::RouteManager

NX4.0.0版本创建。
更多...

#include <Routing_ControlPointCollection.hxx>

类 NXOpen::Routing::ControlPointCollection 继承关系图:
NXOpen::TaggedObjectCollection

class  iterator

Public 类型

enum  CheckExisting { CheckExistingDontSearch , CheckExistingSearch }
 创建新的NXOpen::Routing::ControlPoint 时,搜索现有控制点的选项。 更多...
enum  FoundExisting { FoundExistingBrandNew , FoundExistingExisting }
 创建方法返回的NXOpen::Routing::ControlPoint 是现有对象还是新对象的标识。 更多...

Public 成员函数

iterator begin ()
NXOpen::Routing::ControlPointCreateControlPoint (const NXOpen::Point3d &position, NXOpen::Routing::ControlPointCollection::CheckExisting checkExisting, NXOpen::Routing::ControlPointCollection::FoundExisting *foundExisting)
NXOpen::Routing::ControlPointCreateControlPoint (NXOpen::IBaseCurve *conic, NXOpen::Routing::ControlPointCollection::CheckExisting checkExisting, NXOpen::Routing::ControlPointCollection::FoundExisting *foundExisting)
NXOpen::Routing::ControlPointCreateControlPoint (NXOpen::Point *point, NXOpen::Routing::ControlPointCollection::CheckExisting checkExisting, NXOpen::Routing::ControlPointCollection::FoundExisting *foundExisting)
NXOpen::Routing::ControlPointCreateControlPoint (NXOpen::Routing::ControlPoint *cpOcc, NXOpen::Routing::ControlPointCollection::CheckExisting checkExisting, NXOpen::Routing::ControlPointCollection::FoundExisting *foundExisting)
NXOpen::Routing::ControlPointCreateControlPoint (NXOpen::Routing::IRoutePosition *startObject, const NXOpen::Vector3d &offset, NXOpen::Routing::ControlPointCollection::CheckExisting checkExisting, NXOpen::Routing::ControlPointCollection::FoundExisting *foundExisting)
NXOpen::Routing::ControlPointCreateControlPoint (NXOpen::Routing::Port *port, NXOpen::Routing::ControlPointCollection::CheckExisting checkExisting, NXOpen::Routing::ControlPointCollection::FoundExisting *foundExisting)
NXOpen::Routing::ControlPointCreateControlPoint (NXOpen::TaggedObject *object, double objectParm, NXOpen::Routing::ControlPointCollection::CheckExisting checkExisting, NXOpen::Routing::ControlPointCollection::FoundExisting *foundExisting)
iterator end ()
NXOpen::Routing::ControlPointFindControlPoint (const NXOpen::Point3d &position, double tolerance)
tag_t Tag () const
 返回此对象的标识。

详细描述

表示NXOpen::Routing::ControlPoint 对象的集合。 遍历此集合仅返回集合所属部件中存在的未废弃对象。注意NXOpen::Routing::ControlPoint 是智能对象,许多智能对象仅用于支持其他对象且不显示,因此会被标记为废弃。
要获取此类实例,请参考NXOpen::Routing::RouteManager

NX4.0.0版本创建。

控制点集合

成员枚举类型说明

◆ CheckExisting

创建新的NXOpen::Routing::ControlPoint 时,搜索现有控制点的选项。

枚举值
CheckExistingDontSearch 

不搜索现有对象,始终创建新对象。

CheckExistingSearch 

搜索现有对象,若指定位置已存在则不创建新对象。

◆ FoundExisting

创建方法返回的NXOpen::Routing::ControlPoint 是现有对象还是新对象的标识。

枚举值
FoundExistingBrandNew 

对象是新创建的。

FoundExistingExisting 

对象已存在。

成员函数说明

◆ begin()

iterator NXOpen::Routing::ControlPointCollection::begin ( )

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

◆ CreateControlPoint() [1/7]

NXOpen::Routing::ControlPoint * NXOpen::Routing::ControlPointCollection::CreateControlPoint ( const NXOpen::Point3d & position,
NXOpen::Routing::ControlPointCollection::CheckExisting checkExisting,
NXOpen::Routing::ControlPointCollection::FoundExisting * foundExisting )

创建一个非关联的NXOpen::Routing::ControlPoint对象。该控制点的位置与其他对象无关联。

返回
创建的控制点对象
创建于NX4.0.0。

许可要求:routing_advanced("管路设计高级功能"), routing_base("管路设计基础功能")
参数
position绝对坐标
checkExisting如果指定位置已存在控制点对象,则返回该已有对象。
foundExisting标记返回的NXOpen::Routing::ControlPoint是否为已有控制点。

◆ CreateControlPoint() [2/7]

NXOpen::Routing::ControlPoint * NXOpen::Routing::ControlPointCollection::CreateControlPoint ( NXOpen::IBaseCurve * conic,
NXOpen::Routing::ControlPointCollection::CheckExisting checkExisting,
NXOpen::Routing::ControlPointCollection::FoundExisting * foundExisting )

创建一个关联的NXOpen::Routing::ControlPoint 对象。该点的 位置与一个关联到输入NXOpen::IBaseCurve 对象中心的NXOpen::Point 关联。

返回

创建于NX4.0.0。

许可证要求: routing_advanced ("Routing Advanced"), routing_base ("Routing Basic")
参数
conic圆锥曲线
checkExisting如果同一位置已存在NXOpen::Routing::ControlPoint 对象,则返回该现有对象。
foundExisting返回的NXOpen::Routing::ControlPoint 是一个现有点。

◆ CreateControlPoint() [3/7]

NXOpen::Routing::ControlPoint * NXOpen::Routing::ControlPointCollection::CreateControlPoint ( NXOpen::Point * point,
NXOpen::Routing::ControlPointCollection::CheckExisting checkExisting,
NXOpen::Routing::ControlPointCollection::FoundExisting * foundExisting )

创建一个关联的NXOpen::Routing::ControlPoint 对象。该点的 位置与输入的NXOpen::Point 关联。

返回

创建于NX4.0.0。

许可证要求: routing_advanced ("Routing Advanced"), routing_base ("Routing Basic")
参数
point
checkExisting如果同一位置已存在NXOpen::Routing::ControlPoint 对象,则返回该现有对象。
foundExisting返回的NXOpen::Routing::ControlPoint 是一个现有点。

◆ CreateControlPoint() [4/7]

NXOpen::Routing::ControlPoint * NXOpen::Routing::ControlPointCollection::CreateControlPoint ( NXOpen::Routing::ControlPoint * cpOcc,
NXOpen::Routing::ControlPointCollection::CheckExisting checkExisting,
NXOpen::Routing::ControlPointCollection::FoundExisting * foundExisting )

创建一个关联的NXOpen::Routing::ControlPoint 对象。该点的 位置是一个关联点,与关联到NXOpen::Routing::ControlPoint 实例的NXOpen::Point 关联。

返回

创建于NX4.0.0。

许可证要求: routing_advanced ("Routing Advanced"), routing_base ("Routing Basic")
参数
cpOccNXOpen::Routing::ControlPoint 对象的实例。
checkExisting如果同一位置已存在NXOpen::Routing::ControlPoint 对象,则返回该现有对象。
foundExisting返回的NXOpen::Routing::ControlPoint 是一个现有点。

◆ CreateControlPoint() [5/7]

NXOpen::Routing::ControlPoint * NXOpen::Routing::ControlPointCollection::CreateControlPoint ( NXOpen::Routing::IRoutePosition * startObject,
const NXOpen::Vector3d & offset,
NXOpen::Routing::ControlPointCollection::CheckExisting checkExisting,
NXOpen::Routing::ControlPointCollection::FoundExisting * foundExisting )

创建一个非关联的NXOpen::Routing::ControlPoint 对象。该点的 位置与任何其他对象都不关联。其位置为相对于输入NXOpen::Routing::IRoutePosition 对象,在工作坐标系下的XC、YC、ZC偏移处。

返回

创建于NX4.0.0。

许可证要求: routing_advanced ("Routing Advanced"), routing_base ("Routing Basic")
参数
startObject起始位置。
offset偏移值。
checkExisting如果同一位置已存在NXOpen::Routing::ControlPoint 对象,则返回该现有对象。
foundExisting返回的NXOpen::Routing::ControlPoint 是一个现有点。

◆ CreateControlPoint() [6/7]

NXOpen::Routing::ControlPoint * NXOpen::Routing::ControlPointCollection::CreateControlPoint ( NXOpen::Routing::Port * port,
NXOpen::Routing::ControlPointCollection::CheckExisting checkExisting,
NXOpen::Routing::ControlPointCollection::FoundExisting * foundExisting )

创建一个关联的NXOpen::Routing::ControlPoint对象。该控制点的位置与输入的NXOpen::Routing::Port关联。

返回
创建的控制点对象
创建于NX5.0.0。

许可要求:routing_advanced("管路设计高级功能"), routing_base("管路设计基础功能")
参数
port端口
checkExisting如果指定位置已存在控制点对象,则返回该已有对象。
foundExisting标记返回的NXOpen::Routing::ControlPoint是否为已有控制点。

◆ CreateControlPoint() [7/7]

NXOpen::Routing::ControlPoint * NXOpen::Routing::ControlPointCollection::CreateControlPoint ( NXOpen::TaggedObject * object,
double objectParm,
NXOpen::Routing::ControlPointCollection::CheckExisting checkExisting,
NXOpen::Routing::ControlPointCollection::FoundExisting * foundExisting )

在指定对象和标准化参数处创建一个NXOpen::Routing::ControlPoint。 支持曲线(包含线段)、端口和圆形边。

返回

创建于NX5.0.0。

许可证要求: routing_advanced ("Routing Advanced"), routing_base ("Routing Basic")
参数
object对象
objectParm对象参数
checkExisting如果同一位置已存在NXOpen::Routing::ControlPoint 对象,则返回该现有对象。
foundExisting返回的NXOpen::Routing::ControlPoint 是一个现有点。

◆ end()

iterator NXOpen::Routing::ControlPointCollection::end ( )
inline

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

◆ FindControlPoint()

NXOpen::Routing::ControlPoint * NXOpen::Routing::ControlPointCollection::FindControlPoint ( const NXOpen::Point3d & position,
double tolerance )

在给定的绝对坐标位置、指定公差范围内查找已有的NXOpen::Routing::ControlPoint对象。

返回
找到的控制点对象
创建于NX4.0.0。

许可要求:routing_advanced("管路设计高级功能"), routing_base("管路设计基础功能")
参数
position绝对坐标
tolerance距离公差,最小可用公差可通过 NXOpen::Routing::RouteManager::GetLengthTolerance 获取。