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

部件列表选择器 更多...

#include <SelectPartList.hxx>

类 NXOpen::SelectPartList 继承关系图:
NXOpen::TaggedObject NXOpen::GeometricUtilities::IComponentBuilder

Public 成员函数

bool Add (const std::vector< NXOpen::Part * > &objects)
bool Add (NXOpen::InferSnapType::SnapType snapType, NXOpen::Part *selection1, NXOpen::View *view1, const NXOpen::Point3d &point1, NXOpen::Part *selection2, NXOpen::View *view2, const NXOpen::Point3d &point2)
bool Add (NXOpen::Part *object)
bool Add (NXOpen::Part *selection, NXOpen::View *view, const NXOpen::Point3d &point)
bool Add (NXOpen::SelectionMethod *inputSelectionMethod)
bool AddWithViews (const std::vector< NXOpen::Part * > &objects, const std::vector< NXOpen::View * > &views)
void Clear ()
bool Contains (NXOpen::Part *object)
bool DuplicatesAllowed ()
std::vector< NXOpen::Part * > GetArray ()
std::vector< NXOpen::SelectObject * > GetSelectObjectArray ()
bool Remove (NXOpen::InferSnapType::SnapType snapType, NXOpen::Part *selection1, NXOpen::View *view1, const NXOpen::Point3d &point1, NXOpen::Part *selection2, NXOpen::View *view2, const NXOpen::Point3d &point2)
bool Remove (NXOpen::Part *object)
bool Remove (NXOpen::Part *object, NXOpen::View *view)
bool Remove (NXOpen::SelectionMethod *inputSelectionMethod)
bool RemoveArray (const std::vector< NXOpen::Part * > &objects)
void SetArray (const std::vector< NXOpen::Part * > &objects)
int Size ()
virtual bool Validate ()
Public 成员函数 继承自 NXOpen::TaggedObject
tag_t Tag () const

友元

class _SelectPartListBuilder

详细描述

部件列表选择器

表示选择列表中的对象集合。
创建于NX5.0.0。

成员函数说明

◆ Add() [1/5]

bool NXOpen::SelectPartList::Add ( const std::vector< NXOpen::Part * > & objects)

向列表中添加一组对象

返回
若所有对象均成功添加至列表则返回True; 若至少有一个对象已在列表中且不允许重复则返回False
创建于NX5.0.0。

许可要求:无
参数
objects要添加的对象组

◆ Add() [2/5]

bool NXOpen::SelectPartList::Add ( NXOpen::InferSnapType::SnapType snapType,
NXOpen::Part * selection1,
NXOpen::View * view1,
const NXOpen::Point3d & point1,
NXOpen::Part * selection2,
NXOpen::View * view2,
const NXOpen::Point3d & point2 )

添加带捕捉类型、视图及点信息的选择对象。

返回
若所有对象均成功添加到列表则返回True; 若至少有一个对象已在列表中且不允许重复则返回False
版本:NX5.0.0新增。

许可要求:无
参数
snapType捕捉点类型
selection1第一个选中对象
view1第一个选中对象的视图
point1第一个选中对象的点
selection2第二个选中对象
view2第二个选中对象的视图
point2第二个选中对象的点

◆ Add() [3/5]

bool NXOpen::SelectPartList::Add ( NXOpen::Part * object)

向列表中添加对象

返回
若成功添加至列表则返回True; 若对象已在列表中且不允许重复则返回False
创建于NX5.0.0。

许可要求:无
参数
object要添加的对象

◆ Add() [4/5]

bool NXOpen::SelectPartList::Add ( NXOpen::Part * selection,
NXOpen::View * view,
const NXOpen::Point3d & point )

添加包含视图和点的对象

返回
成功添加到列表返回True; 若对象已在列表中且不允许重复则返回False
版本:NX5.0.0

许可要求:无
参数
selection选中的对象
view选中对象的视图
point选中对象的点

◆ Add() [5/5]

bool NXOpen::SelectPartList::Add ( NXOpen::SelectionMethod * inputSelectionMethod)

将选择方法中的对象添加至列表

返回
若所有对象均成功添加至列表则返回True; 若至少有一个对象已在列表中且不允许重复则返回False
创建于NX6.0.0。

许可要求:无
参数
inputSelectionMethod包含待添加对象的选择方法

◆ AddWithViews()

bool NXOpen::SelectPartList::AddWithViews ( const std::vector< NXOpen::Part * > & objects,
const std::vector< NXOpen::View * > & views )

向列表中添加带视图的一组对象

返回
若所有对象均成功添加至列表则返回True; 若至少有一个对象已在列表中且不允许重复则返回False
创建于NX2212.0.0。

许可要求:无
参数
objects要添加的对象组
views对象对应的视图

◆ Clear()

void NXOpen::SelectPartList::Clear ( )

清空列表中所有项
版本:NX5.0.0

许可要求:无

◆ Contains()

bool NXOpen::SelectPartList::Contains ( NXOpen::Part * object)

检查指定对象是否已在列表中

返回
若对象在列表中返回true,否则返回false
版本:NX5.0.0

许可要求:无
参数
object要检查的对象

◆ DuplicatesAllowed()

bool NXOpen::SelectPartList::DuplicatesAllowed ( )

返回选择列表是否允许重复对象
版本:NX5.0.0

许可要求:无

◆ GetArray()

std::vector< NXOpen::Part * > NXOpen::SelectPartList::GetArray ( )

获取选择列表中的对象列表。

返回
列表中的项
版本:NX5.0.0新增。

许可要求:无

◆ GetSelectObjectArray()

std::vector< NXOpen::SelectObject * > NXOpen::SelectPartList::GetSelectObjectArray ( )

获取选择列表中的选择对象列表。

返回
列表中的项
版本:NX5.0.0新增。

许可要求:无

◆ Remove() [1/4]

bool NXOpen::SelectPartList::Remove ( NXOpen::InferSnapType::SnapType snapType,
NXOpen::Part * selection1,
NXOpen::View * view1,
const NXOpen::Point3d & point1,
NXOpen::Part * selection2,
NXOpen::View * view2,
const NXOpen::Point3d & point2 )

从列表中移除指定对象

返回
成功移除返回True; 若对象不在列表中则返回False
版本:NX6.0.0

许可要求:无
参数
snapType捕捉点类型
selection1第一个选中对象
view1第一个选中对象的视图
point1第一个选中对象的点
selection2第二个选中对象
view2第二个选中对象的视图
point2第二个选中对象的点

◆ Remove() [2/4]

bool NXOpen::SelectPartList::Remove ( NXOpen::Part * object)

从列表中移除指定对象

返回
成功移除返回True; 若对象不在列表中则返回False
版本:NX5.0.0

许可要求:无
参数
object要移除的对象

◆ Remove() [3/4]

bool NXOpen::SelectPartList::Remove ( NXOpen::Part * object,
NXOpen::View * view )

从列表中移除指定对象

返回
成功移除返回True; 若对象/视图不在列表中则返回False
版本:NX6.0.0

许可要求:无
参数
object要移除的对象
view对应视图

◆ Remove() [4/4]

bool NXOpen::SelectPartList::Remove ( NXOpen::SelectionMethod * inputSelectionMethod)

从列表中移除选择方法中包含的所有对象

返回
成功移除所有对象返回True; 若至少有一个对象不在列表中则返回False
版本:NX6.0.0

许可要求:无
参数
inputSelectionMethod包含待移除对象的选择方法

◆ RemoveArray()

bool NXOpen::SelectPartList::RemoveArray ( const std::vector< NXOpen::Part * > & objects)

从列表中移除指定对象集合

返回
成功移除返回True; 若对象不在列表中则返回False
版本:NX5.0.0

许可要求:无
参数
objects要移除的对象集合

◆ SetArray()

void NXOpen::SelectPartList::SetArray ( const std::vector< NXOpen::Part * > & objects)

设置选择列表的对象集合,此操作会清空列表中现有项
版本:NX5.0.0

许可要求:无

参数
objects要放入列表的项

◆ Size()

int NXOpen::SelectPartList::Size ( )

返回列表中的对象数量
版本:NX5.0.0

许可要求:无

◆ Validate()

virtual bool NXOpen::SelectPartList::Validate ( )
virtual

添加带CAE集合对象信息的选择对象。

返回
若所有对象均成功添加到列表则返回True; 若至少有一个对象已在列表中且不允许重复则返回False
弃用
于NX10.0.0弃用。请使用 NXOpen::SelectObjectList::Add 的其他版本。

版本:NX5.0.0新增。

许可要求:无

选中对象 CAE集合对象子类型 CAE集合对象子ID 验证组件输入是否满足提交要求。若组件未处于可提交状态则抛出异常。例如,若组件要求设置某些属性但未设置时,此方法会抛出异常。部分组件会抛出未实现的NXException异常。

返回
自验证是否成功
版本:NX3.0.1新增。

许可要求:无

实现了 NXOpen::GeometricUtilities::IComponentBuilder.