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

验证功能主类 更多...

#include <Validation.hxx>

类 NXOpen::Validation 继承关系图:
NXOpen::NXObject NXOpen::TaggedObject NXOpen::INXObject NXOpen::Validate::RequirementCheck

Public 类型

enum  InputType {
  InputTypeKfClass , InputTypeSpreadsheet , InputTypeTextFile , InputTypeXml ,
  InputTypeTcr , InputTypeApplication , InputTypeNum , InputTypePmi ,
  InputTypeVdv
}
enum  MapType {
  MapTypeText , MapTypeReal , MapTypeInt , MapTypeTime ,
  MapTypeTag , MapTypeNone
}
enum  Result {
  ResultPass , ResultInformation , ResultWarning , ResultFailed ,
  ResultUnknown , ResultSkipped
}
enum  UpdateTime { UpdateTimeEveryChange , UpdateTimeSave }
Public 类型 继承自 NXOpen::NXObject
enum  AttributeType {
  AttributeTypeInvalid , AttributeTypeNull , AttributeTypeBoolean , AttributeTypeInteger ,
  AttributeTypeReal , AttributeTypeString , AttributeTypeTime , AttributeTypeReference ,
  AttributeTypeAny = 100
}
enum  DateAndTimeFormat { DateAndTimeFormatNumeric , DateAndTimeFormatTextual }

Public 成员函数

void Add (const char *key, const char *text)
void Add (const char *key, const std::vector< NXOpen::NXObject * > &objs)
void Add (const char *key, double number)
void Add (const char *key, int day, int time)
void Add (const char *key, int number)
void Add (const NXString &key, const NXString &text)
void Add (const NXString &key, const std::vector< NXOpen::NXObject * > &objs)
void Add (const NXString &key, double number)
void Add (const NXString &key, int day, int time)
void Add (const NXString &key, int number)
void Delete ()
NXOpen::Validation::Result Evaluate ()
void GetAssociatedObjects (std::vector< NXOpen::NXObject * > &objects)
NXOpen::Validation::Result GetCheckResult ()
NXOpen::Validation::Result GetInitialResult ()
std::vector< NXStringGetKeys ()
NXOpen::Validation::MapType GetKeyType (const char *key)
NXOpen::Validation::MapType GetKeyType (const NXString &key)
bool GetSuppressed ()
void Information ()
std::vector< NXOpen::NXObject * > Lookup (const char *key)
std::vector< NXOpen::NXObject * > Lookup (const NXString &key)
void LookupInteger (const char *key, int *number, bool *found)
void LookupInteger (const NXString &key, int *number, bool *found)
void LookupNumber (const char *key, double *number, bool *found)
void LookupNumber (const NXString &key, double *number, bool *found)
void LookupText (const char *key, NXString *text, bool *found)
void LookupText (const NXString &key, NXString *text, bool *found)
void LookupTime (const char *key, int *day, int *time, bool *found)
void LookupTime (const NXString &key, int *day, int *time, bool *found)
void Remove (const char *key)
void Remove (const NXString &key)
void Replace (const char *key, const std::vector< NXOpen::NXObject * > &objs)
void Replace (const NXString &key, const std::vector< NXOpen::NXObject * > &objs)
NXString Requirement ()
void SetAssociatedObjects (const std::vector< NXOpen::NXObject * > &objects)
void SetCheckResult (NXOpen::Validation::Result result)
void SetRequirement (const char *requirement)
void SetRequirement (const NXString &requirement)
void SetSuppressed (bool suppress)
void SetUpdateControl (NXOpen::Validation::UpdateTime updateTime)
void SetUserClassName (const char *name)
void SetUserClassName (const NXString &name)
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)
virtual void SetName (const char *name)
virtual void SetName (const NXString &name)
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 _ValidationBuilder

额外继承的成员函数

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

详细描述

验证功能主类

表示NX NXOpen::Validation 对象。
要创建此类的新实例,请使用 NXOpen::ValidationCollection::Create

创建于NX4.0.0。

成员枚举类型说明

◆ InputType

指定输入类型

枚举值
InputTypeKfClass 

输入规则在KF类中

InputTypeSpreadsheet 

输入规则来自电子表格

InputTypeTextFile 

输入规则来自文本文件

InputTypeXml 

输入规则来自XML文件

InputTypeTcr 

输入规则来自TcR

InputTypeApplication 

输入规则来自验证应用程序

InputTypeNum 

不使用

InputTypePmi 

用于PMI类型验证的输入规则

InputTypeVdv 

用于VDV特征的输入规则

◆ MapType

指定映射类型

枚举值
MapTypeText 

文本映射

MapTypeReal 

实数映射

MapTypeInt 

整数映射

MapTypeTime 

时间映射

MapTypeTag 

NX对象标识符映射

MapTypeNone 

映射未定义

◆ Result

指定验证结果

枚举值
ResultPass 

验证通过所有检查

ResultInformation 

验证通过并包含信息

ResultWarning 

验证通过并包含警告

ResultFailed 

验证失败

ResultUnknown 

未知验证结果

ResultSkipped 

验证已跳过

◆ UpdateTime

指定何时验证

枚举值
UpdateTimeEveryChange 

输入变更时每次更新

UpdateTimeSave 

保存期间

成员函数说明

◆ Add() [1/10]

void NXOpen::Validation::Add ( const char * key,
const char * text )

向验证映射添加文本
创建于NX4.0.0。

许可证要求 : 无

参数
key映射键
text与键关联的文本

◆ Add() [2/10]

void NXOpen::Validation::Add ( const char * key,
const std::vector< NXOpen::NXObject * > & objs )

向验证映射添加对象
创建于NX4.0.0。

许可证要求 : 无

参数
key映射键
objs与键关联的对象

◆ Add() [3/10]

void NXOpen::Validation::Add ( const char * key,
double number )

向验证映射添加实数
创建于NX4.0.0。

许可证要求 : 无

参数
key映射键
number与键关联的实数

◆ Add() [4/10]

void NXOpen::Validation::Add ( const char * key,
int day,
int time )

向验证映射添加时间
创建于NX4.0.0。

许可证要求 : 无

参数
key映射键
day与键关联的日期
time与键关联的时间

◆ Add() [5/10]

void NXOpen::Validation::Add ( const char * key,
int number )

向验证映射添加整数
创建于NX4.0.0。

许可证要求 : 无

参数
key映射键
number与键关联的整数

◆ Add() [6/10]

void NXOpen::Validation::Add ( const NXString & key,
const NXString & text )

向验证映射添加文本
创建于NX4.0.0。

许可证要求 : 无

参数
key映射键
text与键关联的文本

◆ Add() [7/10]

void NXOpen::Validation::Add ( const NXString & key,
const std::vector< NXOpen::NXObject * > & objs )

向验证映射添加对象
创建于NX4.0.0。

许可证要求:无

参数
key映射键
objs与键关联的对象

◆ Add() [8/10]

void NXOpen::Validation::Add ( const NXString & key,
double number )

向验证映射添加实数
创建于NX4.0.0。

许可证要求 : 无

参数
key映射键
number与键关联的实数

◆ Add() [9/10]

void NXOpen::Validation::Add ( const NXString & key,
int day,
int time )

向验证映射添加时间
创建于NX4.0.0。

许可证要求 : 无

参数
key映射键
day与键关联的日期
time与键关联的时间

◆ Add() [10/10]

void NXOpen::Validation::Add ( const NXString & key,
int number )

向验证映射添加整数
创建于NX4.0.0。

许可证要求 : 无

参数
key映射键
number与键关联的整数

◆ Delete()

void NXOpen::Validation::Delete ( )

删除验证对象
创建于 NX4.0.0.

许可证要求:无

◆ Evaluate()

NXOpen::Validation::Result NXOpen::Validation::Evaluate ( )

手动验证

返回

创建于NX4.0.0。

许可证要求 : 无

◆ GetAssociatedObjects()

void NXOpen::Validation::GetAssociatedObjects ( std::vector< NXOpen::NXObject * > & objects)

获取检查的关联对象。
创建于 NX8.5.0.

许可证要求:无

参数
objects与检查关联的对象

◆ GetCheckResult()

NXOpen::Validation::Result NXOpen::Validation::GetCheckResult ( )

验证结果。 结果以名称表示,包含以下选项: pass : 验证通过所有检查 information : 验证通过并包含信息 warning : 验证通过并包含警告 failed : 验证失败 unknown : 未知验证结果

返回

创建于NX4.0.0。

许可证要求 : 无

◆ GetInitialResult()

NXOpen::Validation::Result NXOpen::Validation::GetInitialResult ( )

初始结果。

返回
验证对象的结果。
创建于 NX4.0.0.

许可证要求:无

◆ GetKeys()

std::vector< NXString > NXOpen::Validation::GetKeys ( )

获取键

返回
映射中的键
创建于 NX4.0.0。

许可要求:无

◆ GetKeyType() [1/2]

NXOpen::Validation::MapType NXOpen::Validation::GetKeyType ( const char * key)

获取键类型

返回

创建于 NX4.0.0。

许可要求:无
参数
key映射键

◆ GetKeyType() [2/2]

NXOpen::Validation::MapType NXOpen::Validation::GetKeyType ( const NXString & key)

获取键类型

返回

创建于 NX4.0.0。

许可要求:无
参数
key映射键

◆ GetSuppressed()

bool NXOpen::Validation::GetSuppressed ( )

验证的抑制状态

返回
抑制标志,真=抑制,假=未抑制
创建于 NX4.0.0.

许可证要求:无

◆ Information()

void NXOpen::Validation::Information ( )

验证对象的信息显示
创建于 NX4.0.0.

许可证要求:无

◆ Lookup() [1/2]

std::vector< NXOpen::NXObject * > NXOpen::Validation::Lookup ( const char * key)

在验证映射中查找对象

返回
与键关联的对象
创建于 NX4.0.0。

许可要求:无
参数
key映射键

◆ Lookup() [2/2]

std::vector< NXOpen::NXObject * > NXOpen::Validation::Lookup ( const NXString & key)

在验证映射中查找对象

返回
与键关联的对象
创建于 NX4.0.0。

许可要求:无
参数
key映射键

◆ LookupInteger() [1/2]

void NXOpen::Validation::LookupInteger ( const char * key,
int * number,
bool * found )

在验证映射中查找整数
创建于 NX4.0.0.

许可证要求:无

参数
key映射键
number与键关联的整数
found找到整数为真,未找到为假

◆ LookupInteger() [2/2]

void NXOpen::Validation::LookupInteger ( const NXString & key,
int * number,
bool * found )

在验证映射中查找整数
创建于 NX4.0.0。

许可要求:无

参数
key映射键
number与键关联的整数
found整数找到为 True,未找到为 False

◆ LookupNumber() [1/2]

void NXOpen::Validation::LookupNumber ( const char * key,
double * number,
bool * found )

在验证映射中查找实数
创建于 NX4.0.0。

许可要求:无

参数
key映射键
number与键关联的数字
found文本找到为 True,未找到为 False

◆ LookupNumber() [2/2]

void NXOpen::Validation::LookupNumber ( const NXString & key,
double * number,
bool * found )

在验证映射中查找实数
创建于 NX4.0.0。

许可要求:无

参数
key映射键
number与键关联的数字
found文本找到为 True,未找到为 False

◆ LookupText() [1/2]

void NXOpen::Validation::LookupText ( const char * key,
NXString * text,
bool * found )

在验证映射中查找文本
创建于 NX4.0.0。

许可要求:无

参数
key映射键
text与键关联的文本
found文本找到为 True,未找到为 False

◆ LookupText() [2/2]

void NXOpen::Validation::LookupText ( const NXString & key,
NXString * text,
bool * found )

在验证映射中查找文本
创建于 NX4.0.0。

许可要求:无

参数
key映射键
text与键关联的文本
found文本找到为 True,未找到为 False

◆ LookupTime() [1/2]

void NXOpen::Validation::LookupTime ( const char * key,
int * day,
int * time,
bool * found )

在验证映射中查找时间
创建于 NX4.0.0.

许可证要求:无

参数
key映射键
day与键关联的日期
time与键关联的时间
found找到时间为真,未找到为假

◆ LookupTime() [2/2]

void NXOpen::Validation::LookupTime ( const NXString & key,
int * day,
int * time,
bool * found )

在验证映射中查找时间
创建于 NX4.0.0.

许可证要求:无

参数
key映射键
day与键关联的日期
time与键关联的时间
found找到时间为真,未找到为假

◆ Remove() [1/2]

void NXOpen::Validation::Remove ( const char * key)

从映射中移除键
创建于 NX4.0.0.

许可证要求:无

参数
key映射键

◆ Remove() [2/2]

void NXOpen::Validation::Remove ( const NXString & key)

从映射中移除键
创建于 NX4.0.0.

许可证要求:无

参数
key映射键

◆ Replace() [1/2]

void NXOpen::Validation::Replace ( const char * key,
const std::vector< NXOpen::NXObject * > & objs )

替换验证映射中键对应的对象
创建于NX4.0.0。

许可证要求 : 无

参数
key映射键
objs与键关联的对象

◆ Replace() [2/2]

void NXOpen::Validation::Replace ( const NXString & key,
const std::vector< NXOpen::NXObject * > & objs )

替换验证映射中键对应的对象
创建于NX4.0.0。

许可证要求 : 无

参数
key映射键
objs与键关联的对象

◆ Requirement()

NXString NXOpen::Validation::Requirement ( )

返回需求路径。
创建于 NX8.0.0.

许可证要求:无

◆ SetAssociatedObjects()

void NXOpen::Validation::SetAssociatedObjects ( const std::vector< NXOpen::NXObject * > & objects)

指定或移除检查的关联对象。
创建于 NX8.5.0。

许可证要求:无

参数
objects与检查关联的对象

◆ SetCheckResult()

void NXOpen::Validation::SetCheckResult ( NXOpen::Validation::Result result)

设置验证结果。 结果以名称表示,包含以下选项: pass : 验证通过所有检查 information : 验证通过并包含信息 warning : 验证通过并包含警告 failed : 验证失败 unknown : 未知验证结果
创建于 NX4.0.0。

许可要求:无

参数
result结果

◆ SetRequirement() [1/2]

void NXOpen::Validation::SetRequirement ( const char * requirement)

设置需求路径。
创建于 NX8.0.0.

许可证要求:无

参数
requirement需求路径

◆ SetRequirement() [2/2]

void NXOpen::Validation::SetRequirement ( const NXString & requirement)

设置需求路径。
创建于 NX8.0.0.

许可证要求:无

参数
requirement需求路径

◆ SetSuppressed()

void NXOpen::Validation::SetSuppressed ( bool suppress)

创建于 NX4.0.0.

许可证要求:无

参数
suppress抑制标志,真=抑制,假=未抑制

◆ SetUpdateControl()

void NXOpen::Validation::SetUpdateControl ( NXOpen::Validation::UpdateTime updateTime)

定义验证对象的更新行为
创建于NX4.0.0。

许可证要求:无

参数
updateTime设置更新时间

◆ SetUserClassName() [1/2]

void NXOpen::Validation::SetUserClassName ( const char * name)

设置用户类名称
创建于 NX4.0.0。

许可要求:无

参数
name类名称

◆ SetUserClassName() [2/2]

void NXOpen::Validation::SetUserClassName ( const NXString & name)

设置用户类名称
创建于 NX4.0.0。

许可要求:无

参数
name类名称