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

块体特征构建器 更多...

#include <Features_BlockFeatureBuilder.hxx>

类 NXOpen::Features::BlockFeatureBuilder 继承关系图:
NXOpen::Features::FeatureBuilder NXOpen::Builder NXOpen::TaggedObject NXOpen::GeometricUtilities::IComponentBuilder

Public 类型

enum  Types { TypesOriginAndEdgeLengths , TypesTwoPointsAndHeight , TypesDiagonalPoints }

Public 成员函数

NXOpen::GeometricUtilities::BooleanOperationBooleanOption ()
NXOpen::Features::Feature::BooleanType BooleanType ()
void GetOrientation (NXOpen::Vector3d *xAxis, NXOpen::Vector3d *yAxis)
NXOpen::ExpressionHeight ()
NXOpen::ExpressionLength ()
NXOpen::Point3d Origin ()
NXOpen::PointOriginPoint ()
bool ParentAssociativity ()
NXOpen::PointPointFromOrigin ()
void SetBooleanOperationAndTarget (NXOpen::Features::Feature::BooleanType booleanOperation, NXOpen::Body *targetBody)
void SetBooleanType (NXOpen::Features::Feature::BooleanType booleanType)
void SetHeight (const char *height)
void SetHeight (const NXString &height)
void SetLength (const char *length)
void SetLength (const NXString &length)
void SetOrientation (const NXOpen::Vector3d &xAxis, const NXOpen::Vector3d &yAxis)
void SetOrigin (const NXOpen::Point3d &origin)
void SetOriginAndLengths (const NXOpen::Point3d &originPoint, const char *lengthExpression, const char *widthExpression, const char *heightExpression)
void SetOriginAndLengths (const NXOpen::Point3d &originPoint, const NXString &lengthExpression, const NXString &widthExpression, const NXString &heightExpression)
void SetOriginPoint (NXOpen::Point *blockOriginPoint)
void SetParentAssociativity (bool parentAssociativity)
void SetPointFromOrigin (NXOpen::Point *blockPointFromOrigin)
void SetTarget (NXOpen::Body *target)
void SetTwoDiagonalPoints (const NXOpen::Point3d &originPoint, const NXOpen::Point3d &cornerPoint)
void SetTwoPointsAndHeight (const NXOpen::Point3d &originPoint, const NXOpen::Point3d &cornerPoint, const char *heightExpression)
void SetTwoPointsAndHeight (const NXOpen::Point3d &originPoint, const NXOpen::Point3d &cornerPoint, const NXString &heightExpression)
void SetType (NXOpen::Features::BlockFeatureBuilder::Types type)
void SetWidth (const char *width)
void SetWidth (const NXString &width)
NXOpen::BodyTarget ()
NXOpen::Features::BlockFeatureBuilder::Types Type ()
NXOpen::ExpressionWidth ()
Public 成员函数 继承自 NXOpen::Features::FeatureBuilder
NXOpen::Features::FeatureCommitFeature ()
NXOpen::Features::FeatureGetFeature ()
void HideInternalParentFeatureAfterEdit (NXOpen::Features::Feature *parentFeature)
bool ParentFeatureInternal ()
void SetParentFeatureInternal (bool isInternal)
void SetParentFeatureInternal (NXOpen::Features::Feature *parentFeature)
void ShowInternalParentFeatureForEdit (NXOpen::Features::Feature *parentFeature)
void UnsetParentFeatureInternal (NXOpen::Features::Feature *parentFeature)
Public 成员函数 继承自 NXOpen::Builder
NXOpen::NXObjectCommit ()
void Destroy ()
std::vector< NXOpen::NXObject * > GetCommittedObjects ()
NXOpen::NXObjectGetObject ()
NXOpen::PreviewBuilderPreviewBuilder ()
void ShowResults ()
virtual bool Validate ()
Public 成员函数 继承自 NXOpen::TaggedObject
tag_t Tag () const

友元

class _BlockFeatureBuilderBuilder

详细描述

块体特征构建器

表示块特征构建器。
要创建此类的新实例,请使用 NXOpen::Features::FeatureCollection::CreateBlockFeatureBuilder

创建于NX3.0.0。

成员枚举类型说明

◆ Types

表示块类型

枚举值
TypesOriginAndEdgeLengths 

表示通过提供原点和边长度创建的块

TypesTwoPointsAndHeight 

表示通过提供两点和高度创建的块

TypesDiagonalPoints 

表示通过提供对角线点创建的块

成员函数说明

◆ BooleanOption()

NXOpen::GeometricUtilities::BooleanOperation * NXOpen::Features::BlockFeatureBuilder::BooleanOption ( )

返回布尔选项
创建于NX6.0.0。

许可证要求:无

◆ BooleanType()

NXOpen::Features::Feature::BooleanType NXOpen::Features::BlockFeatureBuilder::BooleanType ( )

返回块的布尔操作类型
创建于NX4.0.0.

许可证要求:solid_modeling ("SOLIDS MODELING") 或 cam_base ("CAM BASE") 或 insp_programming ("INSPECTION PROGRAMMING")

◆ GetOrientation()

void NXOpen::Features::BlockFeatureBuilder::GetOrientation ( NXOpen::Vector3d * xAxis,
NXOpen::Vector3d * yAxis )

获取块的定向(x和y轴)。
创建于NX4.0.0。

许可证要求:solid_modeling ("SOLIDS MODELING") 或 cam_base ("CAM BASE") 或 insp_programming ("INSPECTION PROGRAMMING")

参数
xAxisx轴
yAxisy轴

◆ Height()

NXOpen::Expression * NXOpen::Features::BlockFeatureBuilder::Height ( )

返回表示块高度的表达式。
创建于NX4.0.0。

许可证要求:solid_modeling ("SOLIDS MODELING") 或 cam_base ("CAM BASE") 或 insp_programming ("INSPECTION PROGRAMMING")

◆ Length()

NXOpen::Expression * NXOpen::Features::BlockFeatureBuilder::Length ( )

返回表示块长度的表达式。
创建于NX4.0.0。

许可证要求:solid_modeling ("SOLIDS MODELING") 或 cam_base ("CAM BASE") 或 insp_programming ("INSPECTION PROGRAMMING")

◆ Origin()

NXOpen::Point3d NXOpen::Features::BlockFeatureBuilder::Origin ( )

返回表示块原点的点坐标。
创建于NX4.0.0。

许可证要求:solid_modeling ("SOLIDS MODELING") 或 cam_base ("CAM BASE") 或 insp_programming ("INSPECTION PROGRAMMING")

◆ OriginPoint()

NXOpen::Point * NXOpen::Features::BlockFeatureBuilder::OriginPoint ( )

返回块原点
创建于NX6.0.0。

许可证要求:无

◆ ParentAssociativity()

bool NXOpen::Features::BlockFeatureBuilder::ParentAssociativity ( )

返回保持原点和原点偏移点关联性的选项
创建于NX8.0.0。

许可证要求:无

◆ PointFromOrigin()

NXOpen::Point * NXOpen::Features::BlockFeatureBuilder::PointFromOrigin ( )

当类型为两点和高度时,返回从原点沿WCS的x、y轴定义值的点;当类型为对角点时,返回从原点沿WCS的x、y和z轴定义值的点。
创建于NX6.0.0。

许可证要求:无

◆ SetBooleanOperationAndTarget()

void NXOpen::Features::BlockFeatureBuilder::SetBooleanOperationAndTarget ( NXOpen::Features::Feature::BooleanType booleanOperation,
NXOpen::Body * targetBody )

设置创建块的布尔运算和布尔运算的目标体
创建于NX3.0.0。

许可证要求:solid_modeling("SOLIDS MODELING")或features_modeling("FEATURES MODELING")或cam_base("CAM BASE")或insp_programming("INSPECTION PROGRAMMING")

参数
booleanOperation布尔运算类型。
targetBody布尔运算的目标体。 对于布尔创建运算,设置为空引用(Visual Basic中为Nothing)。

◆ SetBooleanType()

void NXOpen::Features::BlockFeatureBuilder::SetBooleanType ( NXOpen::Features::Feature::BooleanType booleanType)

设置块的布尔操作类型
创建于NX4.0.0.

许可证要求:solid_modeling ("SOLIDS MODELING") 或 cam_base ("CAM BASE") 或 insp_programming ("INSPECTION PROGRAMMING")

参数
booleanType布尔类型

◆ SetHeight() [1/2]

void NXOpen::Features::BlockFeatureBuilder::SetHeight ( const char * height)

表示块高度的表达式。
创建于NX4.0.0.

许可证要求:solid_modeling ("SOLIDS MODELING") 或 cam_base ("CAM BASE") 或 insp_programming ("INSPECTION PROGRAMMING")

参数
height高度

◆ SetHeight() [2/2]

void NXOpen::Features::BlockFeatureBuilder::SetHeight ( const NXString & height)

表示块高度的表达式。
创建于NX4.0.0.

许可证要求:solid_modeling ("SOLIDS MODELING") 或 cam_base ("CAM BASE") 或 insp_programming ("INSPECTION PROGRAMMING")

参数
height高度

◆ SetLength() [1/2]

void NXOpen::Features::BlockFeatureBuilder::SetLength ( const char * length)

表示块长度的表达式。
创建于NX4.0.0.

许可证要求:solid_modeling ("SOLIDS MODELING") 或 cam_base ("CAM BASE") 或 insp_programming ("INSPECTION PROGRAMMING")

参数
length长度

◆ SetLength() [2/2]

void NXOpen::Features::BlockFeatureBuilder::SetLength ( const NXString & length)

表示块长度的表达式。
创建于NX4.0.0.

许可证要求:solid_modeling ("SOLIDS MODELING") 或 cam_base ("CAM BASE") 或 insp_programming ("INSPECTION PROGRAMMING")

参数
length长度

◆ SetOrientation()

void NXOpen::Features::BlockFeatureBuilder::SetOrientation ( const NXOpen::Vector3d & xAxis,
const NXOpen::Vector3d & yAxis )

设置块的方向
创建于NX4.0.0.

许可证要求:solid_modeling ("SOLIDS MODELING") 或 cam_base ("CAM BASE") 或 insp_programming ("INSPECTION PROGRAMMING")

参数
xAxisx轴
yAxisy轴

◆ SetOrigin()

void NXOpen::Features::BlockFeatureBuilder::SetOrigin ( const NXOpen::Point3d & origin)

设置表示块原点的点坐标。
创建于NX4.0.0.

许可证要求:solid_modeling ("SOLIDS MODELING") 或 cam_base ("CAM BASE") 或 insp_programming ("INSPECTION PROGRAMMING")

参数
origin原点

◆ SetOriginAndLengths() [1/2]

void NXOpen::Features::BlockFeatureBuilder::SetOriginAndLengths ( const NXOpen::Point3d & originPoint,
const char * lengthExpression,
const char * widthExpression,
const char * heightExpression )

通过设置原点和块的长、宽、高创建块。块的原点由输入的绝对坐标原点指定。块的方向沿WCS的x、y、z轴。
创建于NX3.0.0.

许可证要求:solid_modeling ("SOLIDS MODELING") 或 features_modeling ("FEATURES MODELING") 或 cam_base ("CAM BASE") 或 insp_programming ("INSPECTION PROGRAMMING")

参数
originPoint块原点
lengthExpressionWCS x方向的块长度
widthExpressionWCS y方向的块宽度
heightExpressionWCS z方向的块高度

◆ SetOriginAndLengths() [2/2]

void NXOpen::Features::BlockFeatureBuilder::SetOriginAndLengths ( const NXOpen::Point3d & originPoint,
const NXString & lengthExpression,
const NXString & widthExpression,
const NXString & heightExpression )

通过设置原点和块的长、宽、高创建块。块的原点由输入的绝对坐标原点指定。块的方向沿WCS的x、y、z轴。
创建于NX3.0.0.

许可证要求:solid_modeling ("SOLIDS MODELING") 或 features_modeling ("FEATURES MODELING") 或 cam_base ("CAM BASE") 或 insp_programming ("INSPECTION PROGRAMMING")

参数
originPoint块原点
lengthExpressionWCS x方向的块长度
widthExpressionWCS y方向的块宽度
heightExpressionWCS z方向的块高度

◆ SetOriginPoint()

void NXOpen::Features::BlockFeatureBuilder::SetOriginPoint ( NXOpen::Point * blockOriginPoint)

设置块原点
创建于NX6.0.0。

许可证要求:无

参数
blockOriginPointblockoriginpoint

◆ SetParentAssociativity()

void NXOpen::Features::BlockFeatureBuilder::SetParentAssociativity ( bool parentAssociativity)

设置保持原点和原点偏移点关联性的选项
创建于NX8.0.0。

许可证要求:solid_modeling("SOLIDS MODELING")或features_modeling("FEATURES MODELING")或cam_base("CAM BASE")或insp_programming("INSPECTION PROGRAMMING")

参数
parentAssociativityparentassociativity

◆ SetPointFromOrigin()

void NXOpen::Features::BlockFeatureBuilder::SetPointFromOrigin ( NXOpen::Point * blockPointFromOrigin)

当类型为两点和高度时,设置从原点沿WCS的x、y轴定义值的点;当类型为对角点时,设置从原点沿WCS的x、y和z轴定义值的点。
创建于NX6.0.0。

许可证要求:无

参数
blockPointFromOriginblockpointfromorigin

◆ SetTarget()

void NXOpen::Features::BlockFeatureBuilder::SetTarget ( NXOpen::Body * target)

设置块布尔操作的目标体(如有)
创建于NX4.0.0.

许可证要求:solid_modeling ("SOLIDS MODELING") 或 cam_base ("CAM BASE") 或 insp_programming ("INSPECTION PROGRAMMING")

参数
target目标体

◆ SetTwoDiagonalPoints()

void NXOpen::Features::BlockFeatureBuilder::SetTwoDiagonalPoints ( const NXOpen::Point3d & originPoint,
const NXOpen::Point3d & cornerPoint )

通过设置两个对角点(一个在块原点,一个在对角点)创建块。块的方向沿WCS的x、y和z轴。
创建于NX3.0.0。

许可证要求:solid_modeling("SOLIDS MODELING")或features_modeling("FEATURES MODELING")或cam_base("CAM BASE")或insp_programming("INSPECTION PROGRAMMING")

参数
originPoint块原点
cornerPoint块的对角点,与块原点构成对角

◆ SetTwoPointsAndHeight() [1/2]

void NXOpen::Features::BlockFeatureBuilder::SetTwoPointsAndHeight ( const NXOpen::Point3d & originPoint,
const NXOpen::Point3d & cornerPoint,
const char * heightExpression )

在WCS的xy平面上通过设置块高度和两个对角点创建块。块的方向沿WCS的x、y和z轴。
创建于NX3.0.0。

许可证要求:solid_modeling("SOLIDS MODELING")或features_modeling("FEATURES MODELING")或cam_base("CAM BASE")或insp_programming("INSPECTION PROGRAMMING")

参数
originPoint块原点
cornerPoint块的二维角点,在WCS的xy平面上与块原点构成对角。
heightExpression块在WCS z方向上的高度表达式

◆ SetTwoPointsAndHeight() [2/2]

void NXOpen::Features::BlockFeatureBuilder::SetTwoPointsAndHeight ( const NXOpen::Point3d & originPoint,
const NXOpen::Point3d & cornerPoint,
const NXString & heightExpression )

在WCS的xy平面上通过设置块高度和两个对角点创建块。块的方向沿WCS的x、y和z轴。
创建于NX3.0.0。

许可证要求:solid_modeling("SOLIDS MODELING")或features_modeling("FEATURES MODELING")或cam_base("CAM BASE")或insp_programming("INSPECTION PROGRAMMING")

参数
originPoint块原点
cornerPoint块的二维角点,在WCS的xy平面上与块原点构成对角。
heightExpression块在WCS z方向上的高度表达式

◆ SetType()

void NXOpen::Features::BlockFeatureBuilder::SetType ( NXOpen::Features::BlockFeatureBuilder::Types type)

设置由NXOpen::Features::BlockFeatureBuilder::Types表示的类型
创建于NX6.0.0。

许可证要求:无

参数
type类型

◆ SetWidth() [1/2]

void NXOpen::Features::BlockFeatureBuilder::SetWidth ( const char * width)

表示块宽度的表达式。
创建于NX4.0.0.

许可证要求:solid_modeling ("SOLIDS MODELING") 或 cam_base ("CAM BASE") 或 insp_programming ("INSPECTION PROGRAMMING")

参数
width宽度

◆ SetWidth() [2/2]

void NXOpen::Features::BlockFeatureBuilder::SetWidth ( const NXString & width)

表示块宽度的表达式。
创建于NX4.0.0.

许可证要求:solid_modeling ("SOLIDS MODELING") 或 cam_base ("CAM BASE") 或 insp_programming ("INSPECTION PROGRAMMING")

参数
width宽度

◆ Target()

NXOpen::Body * NXOpen::Features::BlockFeatureBuilder::Target ( )

返回块布尔操作的目标体(如有)
创建于NX4.0.0.

许可证要求:solid_modeling ("SOLIDS MODELING") 或 cam_base ("CAM BASE") 或 insp_programming ("INSPECTION PROGRAMMING")

◆ Type()

NXOpen::Features::BlockFeatureBuilder::Types NXOpen::Features::BlockFeatureBuilder::Type ( )

返回由NXOpen::Features::BlockFeatureBuilder::Types表示的类型
创建于NX6.0.0。

许可证要求:无

◆ Width()

NXOpen::Expression * NXOpen::Features::BlockFeatureBuilder::Width ( )

返回表示块宽度的表达式。
创建于NX4.0.0。

许可证要求:solid_modeling ("SOLIDS MODELING") 或 cam_base ("CAM BASE") 或 insp_programming ("INSPECTION PROGRAMMING")