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

元素类 更多...

#include <PartMfg_Element.hxx>

类 NXOpen::PartMfg::Element 继承关系图:
NXOpen::NXObject NXOpen::TaggedObject NXOpen::INXObject NXOpen::PartMfg::Operation

Public 类型

enum  ElementTypes {
  ElementTypesAdHoc , ElementTypesFolder , ElementTypesMaterial , ElementTypesModel ,
  ElementTypesOperation , ElementTypesStep , ElementTypesRole , ElementTypesResource ,
  ElementTypesDocument
}
Public 类型 继承自 NXOpen::NXObject
enum  AttributeType {
  AttributeTypeInvalid , AttributeTypeNull , AttributeTypeBoolean , AttributeTypeInteger ,
  AttributeTypeReal , AttributeTypeString , AttributeTypeTime , AttributeTypeReference ,
  AttributeTypeAny = 100
}
enum  DateAndTimeFormat { DateAndTimeFormatNumeric , DateAndTimeFormatTextual }

Public 成员函数

void AttachProcessDocument (const char *processDocument)
void AttachProcessDocument (const NXString &processDocument)
void GetChildren (std::vector< NXOpen::PartMfg::Element * > &children)
NXString GetElementDescription ()
bool GetElementExpandState ()
NXString GetElementSequence ()
NXOpen::PartMfg::Element::ElementTypes GetElementType ()
NXString GetSubtype ()
NXString GetSubtypeLibrarySourceSpecifiction ()
NXString GetWorkInstructionSpecification ()
NXString GetWorkInstructionTemplateSpecification ()
NXOpen::PartOpenStyleSheetForReview ()
void RemoveProcessDocument (const char *processDocument)
void RemoveProcessDocument (const NXString &processDocument)
void SetElementDescription (const char *description)
void SetElementDescription (const NXString &description)
void SetElementExpandState (bool expandState)
void SetElementSequence (const char *sequence)
void SetElementSequence (const NXString &sequence)
void SetName (const char *name)
void SetName (const NXString &name)
void SetNextInSequence (NXOpen::PartMfg::Element *nextElementInSequence)
Public 成员函数 继承自 NXOpen::NXObject
NXOpen::AttributeIteratorCreateAttributeIterator ()
NX_DEPRECATED("Deprecated in NX8.0.0. Use DeleteUserAttribute instead.") void DeleteAttributeByTypeAndTitle(NXOpen void DeleteAttributeByTypeAndTitle (NXOpen::NXObject::AttributeType type, const char *title)
NX_DEPRECATED("Deprecated in NX8.0.0. Use DeleteUserAttribute instead.") void DeleteAttributeByTypeAndTitle(NXOpen void DeleteAttributeByTypeAndTitle (NXOpen::NXObject::AttributeType type, const char *title, NXOpen::Update::Option option)
void DeleteUserAttribute (NXOpen::NXObject::AttributeType type, const char *title, bool deleteEntireArray, NXOpen::Update::Option option)
void DeleteUserAttribute (NXOpen::NXObject::AttributeType type, const NXString &title, bool deleteEntireArray, NXOpen::Update::Option option)
void DeleteUserAttributes (NXOpen::AttributeIterator *iterator, NXOpen::Update::Option option)
void DeleteUserAttributes (NXOpen::NXObject::AttributeType type, NXOpen::Update::Option option)
virtual NXOpen::INXObjectFindObject (const char *journalIdentifier)
virtual NXOpen::INXObjectFindObject (const NXString &journalIdentifier)
bool GetBooleanUserAttribute (const char *title, int index)
bool GetBooleanUserAttribute (const NXString &title, int index)
NXOpen::NXObject::ComputationalTime GetComputationalTimeUserAttribute (const char *title, int index)
NXOpen::NXObject::ComputationalTime GetComputationalTimeUserAttribute (const NXString &title, int index)
int GetIntegerAttribute (const char *title)
int GetIntegerUserAttribute (const char *title, int index)
int GetIntegerUserAttribute (const NXString &title, int index)
bool GetNextUserAttribute (NXOpen::AttributeIterator *iterator, NXOpen::NXObject::AttributeInformation *info)
NXString GetPdmReferenceAttributeValue (const char *attributeTitle)
 获取指定对象的PDM参考属性值。 用户需提供属性标题,将返回UI显示的属性值。
NXString GetPdmReferenceAttributeValue (const NXString &attributeTitle)
 获取指定对象的PDM参考属性值。 用户需提供属性标题,将返回UI显示的属性值。
double GetRealAttribute (const char *title)
double GetRealUserAttribute (const char *title, int index)
double GetRealUserAttribute (const NXString &title, int index)
NXString GetReferenceAttribute (const char *title)
NXString GetStringAttribute (const char *title)
NXString GetStringUserAttribute (const char *title, int index)
NXString GetStringUserAttribute (const NXString &title, int index)
NX_DEPRECATED("Deprecated in NX8.0.0. Use GetUserAttribute instead.") NXString GetTimeAttribute(NXOpen NXString GetTimeAttribute (NXOpen::NXObject::DateAndTimeFormat format, const char *title)
NXString GetTimeUserAttribute (const char *title, int index)
NXString GetTimeUserAttribute (const NXString &title, int index)
NX_DEPRECATED("Deprecated in NX11.0.0. Use GetUserAttribute instead.") std std::vector< NXOpen::NXObject::AttributeInformationGetUserAttribute (const char *title, bool includeUnset, bool addStringValues, NXOpen::NXObject::AttributeType type)
NXOpen::NXObject::AttributeInformation GetUserAttribute (const char *title, NXOpen::NXObject::AttributeType type, int index)
NXOpen::NXObject::AttributeInformation GetUserAttribute (const NXString &title, NXOpen::NXObject::AttributeType type, int index)
NXString GetUserAttributeAsString (const char *title, NXOpen::NXObject::AttributeType type, int index)
NXString GetUserAttributeAsString (const NXString &title, NXOpen::NXObject::AttributeType type, int index)
int GetUserAttributeCount (NXOpen::AttributeIterator *iterator)
int GetUserAttributeCount (NXOpen::AttributeIterator *iterator, bool countArrayAsOneAttribute)
int GetUserAttributeCount (NXOpen::NXObject::AttributeType type)
int GetUserAttributeCount (NXOpen::NXObject::AttributeType type, bool includeUnset, bool countArrayAsOneAttribute)
bool GetUserAttributeLock (const char *title, NXOpen::NXObject::AttributeType type)
bool GetUserAttributeLock (const NXString &title, NXOpen::NXObject::AttributeType type)
std::vector< NXOpen::NXObject::AttributeInformationGetUserAttributes ()
std::vector< NXOpen::NXObject::AttributeInformationGetUserAttributes (bool includeUnset)
std::vector< NXOpen::NXObject::AttributeInformationGetUserAttributes (NXOpen::AttributeIterator *iterator)
int GetUserAttributeSize (const char *title, NXOpen::NXObject::AttributeType type)
int GetUserAttributeSize (const NXString &title, NXOpen::NXObject::AttributeType type)
std::vector< NXOpen::NXObject * > GetUserAttributeSourceObjects ()
bool HasUserAttribute (const char *title, NXOpen::NXObject::AttributeType type, int index)
bool HasUserAttribute (const NXString &title, NXOpen::NXObject::AttributeType type, int index)
bool HasUserAttribute (NXOpen::AttributeIterator *iterator)
virtual bool IsOccurrence ()
virtual NXString JournalIdentifier ()
virtual NXString Name ()
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use GetUserAttribute instead.") double GetRealAttribute(const NXString &title)
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use GetUserAttribute instead.") int GetIntegerAttribute(const NXString &title)
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use GetUserAttribute instead.") NXString GetReferenceAttribute(const NXString &title)
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use GetUserAttribute instead.") NXString GetStringAttribute(const NXString &title)
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use SetUserAttribute instead.") void SetAttribute(const NXString &title
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use SetUserAttribute instead.") void SetAttribute(const NXString &title
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use SetUserAttribute instead.") void SetAttribute(const NXString &title
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use SetUserAttribute instead.") void SetAttribute(const NXString &title
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use SetUserAttribute instead.") void SetAttribute(const NXString &title
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use SetUserAttribute instead.") void SetAttribute(const NXString &title
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use SetUserAttribute instead.") void SetAttribute(const NXString &title
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use SetUserAttribute instead.") void SetAttribute(const NXString &title)
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use SetUserAttribute instead.") void SetReferenceAttribute(const NXString &title
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use SetUserAttribute instead.") void SetReferenceAttribute(const NXString &title
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use SetUserAttribute instead.") void SetTimeAttribute(const NXString &title
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use SetUserAttribute instead.") void SetTimeAttribute(const NXString &title
virtual NXOpen::Assemblies::ComponentOwningComponent ()
virtual NXOpen::BasePartOwningPart ()
virtual void Print ()
virtual NXOpen::INXObjectPrototype ()
void SetAttribute (const char *title)
void SetAttribute (const char *title, const char *value)
void SetAttribute (const char *title, const char *value, NXOpen::Update::Option option)
void SetAttribute (const char *title, double value)
void SetAttribute (const char *title, double value, NXOpen::Update::Option option)
void SetAttribute (const char *title, int value)
void SetAttribute (const char *title, int value, NXOpen::Update::Option option)
void SetAttribute (const char *title, NXOpen::Update::Option option)
void SetBooleanUserAttribute (const char *title, int index, bool value, NXOpen::Update::Option option)
void SetBooleanUserAttribute (const NXString &title, int index, bool value, NXOpen::Update::Option option)
void SetPdmReferenceAttribute (const char *attributeTitle, const char *attributeValue)
 设置对象的PDM参考属性值。 用户需提供属性标题和UI显示的别名值。若参考属性为数组类型,此操作将被忽略。 别名字符串会转换为内部值(如会话标识符),并将该内部值设置到指定对象上。
创建于NX12.0.0。

许可要求:无
void SetPdmReferenceAttribute (const NXString &attributeTitle, const NXString &attributeValue)
 设置对象的PDM参考属性值。 用户需提供属性标题和UI显示的别名值。若参考属性为数组类型,此操作将被忽略。 别名字符串会转换为内部值(如会话标识符),并将该内部值设置到指定对象上。
创建于NX12.0.0。

许可要求:无
void SetReferenceAttribute (const char *title, const char *value)
void SetReferenceAttribute (const char *title, const char *value, NXOpen::Update::Option option)
void SetTimeAttribute (const char *title, const char *value)
void SetTimeAttribute (const char *title, const char *value, NXOpen::Update::Option option)
void SetTimeUserAttribute (const char *title, int index, const char *value, NXOpen::Update::Option option)
void SetTimeUserAttribute (const char *title, int index, const NXOpen::NXObject::ComputationalTime &value, NXOpen::Update::Option option)
void SetTimeUserAttribute (const NXString &title, int index, const NXOpen::NXObject::ComputationalTime &value, NXOpen::Update::Option option)
void SetTimeUserAttribute (const NXString &title, int index, const NXString &value, NXOpen::Update::Option option)
void SetUserAttribute (const char *title, int index, const char *value, NXOpen::Update::Option option)
void SetUserAttribute (const char *title, int index, double value, NXOpen::Update::Option option)
void SetUserAttribute (const char *title, int index, int value, NXOpen::Update::Option option)
void SetUserAttribute (const char *title, int index, NXOpen::Update::Option option)
void SetUserAttribute (const NXOpen::NXObject::AttributeInformation &info, NXOpen::Update::Option option)
void SetUserAttribute (const NXString &title, int index, const NXString &value, NXOpen::Update::Option option)
void SetUserAttribute (const NXString &title, int index, double value, NXOpen::Update::Option option)
void SetUserAttribute (const NXString &title, int index, int value, NXOpen::Update::Option option)
void SetUserAttribute (const NXString &title, int index, NXOpen::Update::Option option)
void SetUserAttributeLock (const char *title, NXOpen::NXObject::AttributeType type, bool lock)
void SetUserAttributeLock (const NXString &title, NXOpen::NXObject::AttributeType type, bool lock)
Public 成员函数 继承自 NXOpen::TaggedObject
tag_t Tag () const

友元

class _ElementBuilder

额外继承的成员函数

Public 属性 继承自 NXOpen::NXObject
NXOpen::Update::Option option
const NXString NXOpen::Update::Option option
double NXOpen::Update::Option option
int NXOpen::Update::Option option
const NXStringvalue
double value
int value

详细描述

元素类

表示工艺清单中的一个元素。
此类实例可通过NXOpen::PartMfg::ElementCollection 获取。

在NX2212.0.0版本中创建。

成员枚举类型说明

◆ ElementTypes

元素类型

枚举值
ElementTypesAdHoc 

临时工艺清单元素

ElementTypesFolder 

文件夹工艺清单元素

ElementTypesMaterial 

物料工艺清单元素

ElementTypesModel 

模型工艺清单元素

ElementTypesOperation 

工序工艺清单元素

ElementTypesStep 

工步工艺清单元素

ElementTypesRole 

角色工艺清单元素

ElementTypesResource 

资源工艺清单元素

ElementTypesDocument 

文档工艺清单元素

成员函数说明

◆ AttachProcessDocument() [1/2]

void NXOpen::PartMfg::Element::AttachProcessDocument ( const char * processDocument)

为工艺清单元素关联工艺文档
在NX2212.0.0版本中创建。

许可证要求:nx_mbpm_bill_of_proc ("NX 工艺清单")

参数
processDocument要添加的工艺文档文件路径

◆ AttachProcessDocument() [2/2]

void NXOpen::PartMfg::Element::AttachProcessDocument ( const NXString & processDocument)

为工艺清单元素关联工艺文档
在NX2212.0.0版本中创建。

许可证要求:nx_mbpm_bill_of_proc ("NX 工艺清单")

参数
processDocument要添加的工艺文档文件路径

◆ GetChildren()

void NXOpen::PartMfg::Element::GetChildren ( std::vector< NXOpen::PartMfg::Element * > & children)

获取元素的子元素
版本:NX2406.0.0

许可要求:无

参数
children子元素

◆ GetElementDescription()

NXString NXOpen::PartMfg::Element::GetElementDescription ( )

获取元素在导航器中的描述

返回
描述
版本:NX2306.0.0

许可要求:无

◆ GetElementExpandState()

bool NXOpen::PartMfg::Element::GetElementExpandState ( )

获取元素在导航器中的展开状态

返回
节点的展开状态
版本:NX2312.0.0

许可要求:无

◆ GetElementSequence()

NXString NXOpen::PartMfg::Element::GetElementSequence ( )

获取元素在导航器中的序号

返回
序号
版本:NX2306.0.0

许可要求:无

◆ GetElementType()

NXOpen::PartMfg::Element::ElementTypes NXOpen::PartMfg::Element::GetElementType ( )

获取元素类型

返回
元素类型
版本:NX2212.0.0

许可要求:无

◆ GetSubtype()

NXString NXOpen::PartMfg::Element::GetSubtype ( )

获取元素子类型名称

返回
元素子类型名称
版本:NX2406.0.0

许可要求:无

◆ GetSubtypeLibrarySourceSpecifiction()

NXString NXOpen::PartMfg::Element::GetSubtypeLibrarySourceSpecifiction ( )

获取子类型库源规格

返回
子类型库源规格
版本:NX2406.0.0

许可要求:无

◆ GetWorkInstructionSpecification()

NXString NXOpen::PartMfg::Element::GetWorkInstructionSpecification ( )

获取作业指导书规范

返回
作业指导书规范
创建于NX2406.0.0。

许可要求: 无

◆ GetWorkInstructionTemplateSpecification()

NXString NXOpen::PartMfg::Element::GetWorkInstructionTemplateSpecification ( )

获取作业指导书模板规格

返回
作业指导书模板规格
版本:NX2406.0.0

许可要求:无

◆ OpenStyleSheetForReview()

NXOpen::Part * NXOpen::PartMfg::Element::OpenStyleSheetForReview ( )

打开样式表以供查看
版本:NX2212.0.0

许可要求:无

◆ RemoveProcessDocument() [1/2]

void NXOpen::PartMfg::Element::RemoveProcessDocument ( const char * processDocument)

从工艺清单元素中移除工艺文档
版本:NX2212.0.0

许可要求:nx_mbpm_bill_of_proc ("NX 工艺清单")

参数
processDocument要移除的工艺文档文件路径

◆ RemoveProcessDocument() [2/2]

void NXOpen::PartMfg::Element::RemoveProcessDocument ( const NXString & processDocument)

从工艺清单元素中移除工艺文档
版本:NX2212.0.0

许可要求:nx_mbpm_bill_of_proc ("NX 工艺清单")

参数
processDocument要移除的工艺文档文件路径

◆ SetElementDescription() [1/2]

void NXOpen::PartMfg::Element::SetElementDescription ( const char * description)

设置元素在导航器中的描述
版本:NX2306.0.0

许可要求:nx_mbpm_bill_of_proc ("NX 工艺清单")

参数
description描述

◆ SetElementDescription() [2/2]

void NXOpen::PartMfg::Element::SetElementDescription ( const NXString & description)

设置元素在导航器中的描述
版本:NX2306.0.0

许可要求:nx_mbpm_bill_of_proc ("NX 工艺清单")

参数
description描述

◆ SetElementExpandState()

void NXOpen::PartMfg::Element::SetElementExpandState ( bool expandState)

设置元素在导航器中的展开状态
版本:NX2312.0.0

许可要求:无

参数
expandState节点的展开状态

◆ SetElementSequence() [1/2]

void NXOpen::PartMfg::Element::SetElementSequence ( const char * sequence)

设置元素在导航器中的序号
版本:NX2306.0.0

许可要求:nx_mbpm_bill_of_proc ("NX 工艺清单")

参数
sequence序号

◆ SetElementSequence() [2/2]

void NXOpen::PartMfg::Element::SetElementSequence ( const NXString & sequence)

设置元素在导航器中的序号
版本:NX2306.0.0

许可要求:nx_mbpm_bill_of_proc ("NX 工艺清单")

参数
sequence序号

◆ SetName() [1/2]

void NXOpen::PartMfg::Element::SetName ( const char * name)
virtual

设置元素名称
在NX2212.0.0版本中创建。

许可证要求:nx_mbpm_bill_of_proc ("NX 工艺清单")

参数
name元素名称

重载 NXOpen::NXObject .

◆ SetName() [2/2]

void NXOpen::PartMfg::Element::SetName ( const NXString & name)
virtual

设置元素名称
在NX2212.0.0版本中创建。

许可证要求:nx_mbpm_bill_of_proc ("NX 工艺清单")

参数
name元素名称

重载 NXOpen::NXObject .

◆ SetNextInSequence()

void NXOpen::PartMfg::Element::SetNextInSequence ( NXOpen::PartMfg::Element * nextElementInSequence)

设置序列中的下一个元素
在NX2212.0.0版本中创建。

许可证要求:nx_mbpm_bill_of_proc ("NX 工艺清单")

参数
nextElementInSequence序列中的下一个元素