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

组件类 更多...

#include <Assemblies_Component.hxx>

类 NXOpen::Assemblies::Component 继承关系图:
NXOpen::DisplayableObject NXOpen::Routing::ICharacteristic NXOpen::NXObject NXOpen::IFitTo NXOpen::INXObject NXOpen::TaggedObject NXOpen::INXObject NXOpen::INXObject NXOpen::Assemblies::ExplodedComponent

Public 类型

enum  RepresentationMode { RepresentationModeLightweight , RepresentationModePartial , RepresentationModeExact , RepresentationModeNone }
Public 类型 继承自 NXOpen::DisplayableObject
enum  ObjectFont {
  ObjectFontSolid = 1 , ObjectFontDashed , ObjectFontPhantom , ObjectFontCenterline ,
  ObjectFontDotted , ObjectFontLongDashed , ObjectFontDottedDashed , ObjectFontEight = 11 ,
  ObjectFontNine , ObjectFontTen , ObjectFontEleven
}
enum  ObjectWidth {
  ObjectWidthNormal , ObjectWidthThick , ObjectWidthThin , ObjectWidthOne = 5 ,
  ObjectWidthTwo , ObjectWidthThree , ObjectWidthFour , ObjectWidthFive ,
  ObjectWidthSix , ObjectWidthSeven , ObjectWidthEight , ObjectWidthNine
}
Public 类型 继承自 NXOpen::NXObject
enum  AttributeType {
  AttributeTypeInvalid , AttributeTypeNull , AttributeTypeBoolean , AttributeTypeInteger ,
  AttributeTypeReal , AttributeTypeString , AttributeTypeTime , AttributeTypeReference ,
  AttributeTypeAny = 100
}
enum  DateAndTimeFormat { DateAndTimeFormatNumeric , DateAndTimeFormatTextual }

Public 成员函数

void AddToPartitions (const std::vector< NXOpen::Assemblies::Component * > &components, const std::vector< NXOpen::Assemblies::Partition * > &partitions)
NXOpen::Assemblies::CollaborativeContentType CollaborativeContentType ()
NXOpen::PartFamily::InstanceSelectionCriteriaCreateEmptyPartFamilyInstanceSelectionCriteria (NXOpen::PartFamily::Template *family)
virtual void DeleteCharacterstics (NXOpen::Routing::CharacteristicList *values)
void DeleteInstanceUserAttribute (NXOpen::NXObject::AttributeType type, const char *title, bool deleteEntireArray, NXOpen::Update::Option option)
void DeleteInstanceUserAttribute (NXOpen::NXObject::AttributeType type, const NXString &title, bool deleteEntireArray, NXOpen::Update::Option option)
void DeleteInstanceUserAttributes (NXOpen::NXObject::AttributeType type, NXOpen::Update::Option option)
void DeletePartFamilyInstanceSelectionCriteria ()
NXOpen::PDM::DesignSubordinateRevisionDesignSubordinateRevision ()
NXOpen::Assemblies::ComponentAssemblyDirectOwner ()
NXOpen::ErrorListDisplayComponentsExact (const std::vector< NXOpen::Assemblies::Component * > &components)
NXOpen::ErrorListDisplayComponentsLightweight (const std::vector< NXOpen::Assemblies::Component * > &components)
NXString DisplayName ()
NXString EmptyPartRefsetName ()
NXString EntirePartRefsetName ()
void EstablishIsolatedPositionOverride (NXOpen::Assemblies::Component *parent, NXOpen::Assemblies::Arrangement *arrangement)
void EstablishPositionOverride (NXOpen::Assemblies::Component *parent)
void EvaluatePartFamilyInstanceSelectionCriteria (bool *componentChanged, NXOpen::Part **newPartFamilyMember, NXString *errorinfo)
void FindComponentPatterns (NXOpen::Assemblies::ComponentPattern **patternDefinition, std::vector< NXOpen::Assemblies::ComponentPattern * > &patternDefinitions)
NXOpen::NXObjectFindOccurrence (NXOpen::NXObject *proto)
NXOpen::Positioning::ComponentConstraintFixConstraint ()
void GetArrangements (std::vector< NXOpen::Assemblies::Arrangement * > &arrangements)
NXString GetAsRequiredQuantity ()
virtual NXOpen::Routing::CharacteristicListGetCharacteristics ()
std::vector< NXOpen::Assemblies::Component * > GetChildren ()
NXOpen::Assemblies::ComponentQuantity GetComponentQuantityType ()
NXOpen::Assemblies::Component::RepresentationMode GetComponentRepresentationMode ()
std::vector< NXOpen::Positioning::ComponentConstraint * > GetConstraints ()
NXOpen::Assemblies::DegreesOfFreedom GetDegreesOfFreedom ()
NXOpen::Assemblies::DegreesOfFreedom GetDegreesOfFreedom (const std::vector< NXOpen::Assemblies::Component * > &components)
virtual NXOpen::Routing::CharacteristicListGetDestinationCharacteristics ()
bool GetInstanceBooleanUserAttribute (const char *title, int index)
bool GetInstanceBooleanUserAttribute (const NXString &title, int index)
int GetInstanceIntegerUserAttribute (const char *title, int index)
int GetInstanceIntegerUserAttribute (const NXString &title, int index)
double GetInstanceRealUserAttribute (const char *title, int index)
double GetInstanceRealUserAttribute (const NXString &title, int index)
NXString GetInstanceStringUserAttribute (const char *title, int index)
NXString GetInstanceStringUserAttribute (const NXString &title, int index)
NXString GetInstanceTimeUserAttribute (const char *title, int index)
NXString GetInstanceTimeUserAttribute (const NXString &title, int index)
NXOpen::NXObject::AttributeInformation GetInstanceUserAttribute (const char *title, NXOpen::NXObject::AttributeType type, int index)
NXOpen::NXObject::AttributeInformation GetInstanceUserAttribute (const NXString &title, NXOpen::NXObject::AttributeType type, int index)
NXString GetInstanceUserAttributeAsString (const char *title, NXOpen::NXObject::AttributeType type, int index)
NXString GetInstanceUserAttributeAsString (const NXString &title, NXOpen::NXObject::AttributeType type, int index)
bool GetInstanceUserAttributeLock (const char *title, NXOpen::NXObject::AttributeType type)
bool GetInstanceUserAttributeLock (const NXString &title, NXOpen::NXObject::AttributeType type)
std::vector< NXOpen::NXObject::AttributeInformationGetInstanceUserAttributes ()
std::vector< NXOpen::NXObject::AttributeInformationGetInstanceUserAttributes (bool includeUnset)
std::vector< NXStringGetInstanceUserAttributesAsStrings ()
virtual int GetIntegerCharacteristic (const char *name)
virtual int GetIntegerCharacteristic (const NXString &name)
int GetIntegerQuantity ()
int GetLayerOption ()
bool GetNonGeometricState ()
NXOpen::PartFamily::InstanceSelectionCriteriaGetPartFamilyInstanceSelectionCriteria ()
void GetPosition (NXOpen::Point3d *position, NXOpen::Matrix3x3 *orientation)
NXOpen::Assemblies::ComponentGetPositionOverrideParent ()
NXOpen::Assemblies::PositionOverrideType GetPositionOverrideType ()
virtual double GetRealCharacteristic (const char *name)
virtual double GetRealCharacteristic (const NXString &name)
double GetRealQuantity (NXString *quantityUnits)
virtual NXString GetStringCharacteristic (const char *name)
virtual NXString GetStringCharacteristic (const NXString &name)
bool HasInstanceUserAttribute (const char *title, NXOpen::NXObject::AttributeType type, int index)
bool HasInstanceUserAttribute (const NXString &title, NXOpen::NXObject::AttributeType type, int index)
bool IsFixed ()
std::vector< NXOpen::Assemblies::IsPartitionableResult * > IsPartitionable (const std::vector< NXOpen::Assemblies::Component * > &components, const std::vector< NXOpen::Assemblies::Partition * > &partitions)
bool IsPositioningIsolated (NXOpen::Assemblies::Arrangement *arrangement)
bool IsSuppressed ()
NXOpen::PDM::ModelElementRevisionModelElementRevision ()
 NX_DEPRECATED ("Deprecated in NX11.0.0. Use NXOpen::Routing::ICharacteristic::SetCharacteristic2 instead.") virtual void SetCharacteristic(const NXString &name
 NX_DEPRECATED ("Deprecated in NX11.0.0. Use NXOpen::Routing::ICharacteristic::SetCharacteristic2 instead.") virtual void SetCharacteristic(const NXString &name
 NX_DEPRECATED ("Deprecated in NX11.0.0. Use NXOpen::Routing::ICharacteristic::SetCharacteristic2 instead.") virtual void SetCharacteristic(const NXString &name
NXOpen::Assemblies::ComponentParent ()
NXOpen::Assemblies::PartitionSchemeInstancePartitionSchemeInstance ()
std::vector< NXOpen::Positioning::ComponentConstraint * > RecallAndListConstraints ()
void RecallConstraints ()
NXString ReferenceSet ()
void RemoveFromPartitions (const std::vector< NXOpen::Assemblies::Component * > &components, const std::vector< NXOpen::Assemblies::Partition * > &partitions)
void RemovePositionOverride (NXOpen::Assemblies::Component *parent)
void RemoveRememberedConstraints ()
virtual void SetCharacteristic (const char *name, const char *value)
virtual void SetCharacteristic (const char *name, double value)
virtual void SetCharacteristic (const char *name, int value)
virtual void SetCharacteristic2 (const char *title, const char *value)
virtual void SetCharacteristic2 (const char *title, double value)
virtual void SetCharacteristic2 (const char *title, int value)
virtual void SetCharacteristic2 (const NXString &title, const NXString &value)
virtual void SetCharacteristic2 (const NXString &title, double value)
virtual void SetCharacteristic2 (const NXString &title, int value)
virtual void SetCharacteristics2 (NXOpen::Routing::CharacteristicList *values)
void SetInstanceBooleanUserAttribute (const char *title, int index, bool value, NXOpen::Update::Option option)
void SetInstanceBooleanUserAttribute (const NXString &title, int index, bool value, NXOpen::Update::Option option)
void SetInstanceTimeUserAttribute (const char *title, int index, const char *value, NXOpen::Update::Option option)
void SetInstanceTimeUserAttribute (const NXString &title, int index, const NXString &value, NXOpen::Update::Option option)
void SetInstanceUserAttribute (const char *title, int index, const char *value, NXOpen::Update::Option option)
void SetInstanceUserAttribute (const char *title, int index, double value, NXOpen::Update::Option option)
void SetInstanceUserAttribute (const char *title, int index, int value, NXOpen::Update::Option option)
void SetInstanceUserAttribute (const char *title, int index, NXOpen::Update::Option option)
void SetInstanceUserAttribute (const NXOpen::NXObject::AttributeInformation &info, NXOpen::Update::Option option)
void SetInstanceUserAttribute (const NXString &title, int index, const NXString &value, NXOpen::Update::Option option)
void SetInstanceUserAttribute (const NXString &title, int index, double value, NXOpen::Update::Option option)
void SetInstanceUserAttribute (const NXString &title, int index, int value, NXOpen::Update::Option option)
void SetInstanceUserAttribute (const NXString &title, int index, NXOpen::Update::Option option)
void SetInstanceUserAttributeLock (const char *title, NXOpen::NXObject::AttributeType type, bool lock)
void SetInstanceUserAttributeLock (const NXString &title, NXOpen::NXObject::AttributeType type, bool lock)
void SetLayerOption (int layer)
void SetPartFamilyInstanceSelectionCriteria (NXOpen::PartFamily::InstanceSelectionCriteria *selectionCriteria)
void SetPositioningIsolated (NXOpen::Assemblies::Arrangement *arrangement)
void SetPositioningVaried (const std::vector< NXOpen::Assemblies::Component * > &components, bool setAsVaried)
void SetUsedArrangement (NXOpen::Assemblies::Arrangement *newArrangement)
NXOpen::Assemblies::SubsetSubset ()
void Suppress ()
NXOpen::ErrorListSuppress (const std::vector< NXOpen::Assemblies::Component * > &components)
NXOpen::Assemblies::ArrangementSuppressingArrangement ()
void Unsuppress ()
NXOpen::ErrorListUnsuppress (const std::vector< NXOpen::Assemblies::Component * > &components)
void UpdateStructure (const std::vector< NXOpen::Assemblies::Component * > &components, int nLevels)
void UpdateStructure (const std::vector< NXOpen::Assemblies::Component * > &components, int nLevels, bool checkComponentsVisited)
NXOpen::Assemblies::ArrangementUsedArrangement ()
Public 成员函数 继承自 NXOpen::DisplayableObject
void Blank ()
int Color ()
void Highlight ()
bool IsBlanked ()
int Layer ()
NXOpen::DisplayableObject::ObjectFont LineFont ()
NXOpen::DisplayableObject::ObjectWidth LineWidth ()
NXOpen::Point3d NameLocation ()
void RedisplayObject ()
void RemoveViewDependency ()
void SetColor (int color)
void SetLayer (int layer)
void SetLineFont (NXOpen::DisplayableObject::ObjectFont font)
void SetLineWidth (NXOpen::DisplayableObject::ObjectWidth width)
void SetNameLocation (const NXOpen::Point3d &location)
void Unblank ()
void Unhighlight ()
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
Public 成员函数 继承自 NXOpen::Routing::ICharacteristic
 NX_DEPRECATED ("在NX11.0.0中已弃用。 请改用NXOpen::Routing::ICharacteristic::SetCharacteristic2。") virtual void SetCharacteristic(const NXString &name
 NX_DEPRECATED ("在NX11.0.0中已弃用。 请改用NXOpen::Routing::ICharacteristic::SetCharacteristic2。") virtual void SetCharacteristic(const NXString &name
 NX_DEPRECATED ("在NX11.0.0中已弃用。 请改用NXOpen::Routing::ICharacteristic::SetCharacteristic2。") virtual void SetCharacteristic(const NXString &name

Public 属性

const NXStringvalue
double value
int value
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
Public 属性 继承自 NXOpen::Routing::ICharacteristic
const NXStringvalue = 0
double value = 0
int value = 0

友元

class _ComponentBuilder

详细描述

组件类

表示 NXOpen::Assemblies::ComponentAssembly 中的一个组件。注意,一个 Component 是一个其原型为 NXOpen::Part 的引用。参见 NXOpen::NXObject::Prototype
组件以树形结构排列,每个组件有一个父项和 一个或多个子项。树的顶部是根组件(参见 NXOpen::Assemblies::ComponentAssembly::RootComponent ),其父项为 NULL。 根组件下方的组件称为"顶层"组件,它们 代表已直接添加到 ComponentAssembly 的组件部件。 (调用 NXOpen::Assemblies::ComponentAssembly::AddComponent 将 创建一个新的顶层组件。)顶层下方的组件代表 在主装配的子装配中定义的组件。

在 NX3.0.0 版本中创建。

成员枚举类型说明

◆ RepresentationMode

组件的表示状态

枚举值
RepresentationModeLightweight 

组件的实体全部使用轻量表示显示

RepresentationModePartial 

组件的实体部分精确显示,部分以轻量方式显示

RepresentationModeExact 

组件的实体使用精确数据显示

RepresentationModeNone 

当前组件没有要显示的体

成员函数说明

◆ AddToPartitions()

void NXOpen::Assemblies::Component::AddToPartitions ( const std::vector< NXOpen::Assemblies::Component * > & components,
const std::vector< NXOpen::Assemblies::Partition * > & partitions )

在所有可能的NXOpen::Assemblies::Partition 中为选定的NXOpen::Assemblies::Component 添加分区。
Created in NX2306.0.0.

License requirements : assemblies ("ASSEMBLIES MODULE")

参数
components其分区成员资格将被更改的组件。
partitions分区

◆ CollaborativeContentType()

NXOpen::Assemblies::CollaborativeContentType NXOpen::Assemblies::Component::CollaborativeContentType ( )

返回 此组件的协同内容类型。
创建于 NX8.5.0。

许可要求:无

◆ CreateEmptyPartFamilyInstanceSelectionCriteria()

NXOpen::PartFamily::InstanceSelectionCriteria * NXOpen::Assemblies::Component::CreateEmptyPartFamilyInstanceSelectionCriteria ( NXOpen::PartFamily::Template * family)

创建一个空的 NXOpen::PartFamily::InstanceSelectionCriteria
创建于 NX9.0.0。

许可要求:solid_modeling("实体建模")

参数
family

◆ DeleteCharacterstics()

virtual void NXOpen::Assemblies::Component::DeleteCharacterstics ( NXOpen::Routing::CharacteristicList * values)
virtual

从此对象中移除输入的特性列表。
创建于 NX4.0.0。

许可要求:routing_base ("Routing Basic")

参数
values

实现了 NXOpen::Routing::ICharacteristic.

◆ DeleteInstanceUserAttribute() [1/2]

void NXOpen::Assemblies::Component::DeleteInstanceUserAttribute ( NXOpen::NXObject::AttributeType type,
const char * title,
bool deleteEntireArray,
NXOpen::Update::Option option )

删除遇到的第一个具有给定类型、标题和索引的属性。 若候选属性非数组属性,则忽略DeleteEntireArray输入, 否则删除数组的最后一个元素。 注意:此方法不支持使用NXOpen::NXObject::AttributeTypeReference
创建于NX8.0.0。

许可要求:无

参数
typetype
titletitle
deleteEntireArraydelete entire array
optionoption

◆ DeleteInstanceUserAttribute() [2/2]

void NXOpen::Assemblies::Component::DeleteInstanceUserAttribute ( NXOpen::NXObject::AttributeType type,
const NXString & title,
bool deleteEntireArray,
NXOpen::Update::Option option )

删除遇到的第一个具有给定类型、标题和索引的属性。 若候选属性非数组属性,则忽略DeleteEntireArray输入, 否则删除数组的最后一个元素。 注意:此方法不支持使用NXOpen::NXObject::AttributeTypeReference
创建于NX8.0.0。

许可要求:无

参数
typetype
titletitle
deleteEntireArraydelete entire array
optionoption

◆ DeleteInstanceUserAttributes()

void NXOpen::Assemblies::Component::DeleteInstanceUserAttributes ( NXOpen::NXObject::AttributeType type,
NXOpen::Update::Option option )

删除遇到的具有给定类型的属性,可选择是否更新。 注意:此方法不支持使用NXOpen::NXObject::AttributeTypeReference
创建于NX8.0.0。

许可要求:无

参数
typetype
optionoption

◆ DeletePartFamilyInstanceSelectionCriteria()

void NXOpen::Assemblies::Component::DeletePartFamilyInstanceSelectionCriteria ( )

删除与此组件关联的 NXOpen::PartFamily::InstanceSelectionCriteria
创建于 NX9.0.0。

许可要求:solid_modeling("实体建模")

◆ DesignSubordinateRevision()

NXOpen::PDM::DesignSubordinateRevision * NXOpen::Assemblies::Component::DesignSubordinateRevision ( )

返回 与此组件对应的 NXOpen::PDM::DesignElementRevision 。 如果组件不是设计元素,则可能为 NULL。 如果此组件表示一个 NXOpen::PDM::DesignSubordinateRevision ,则将返回父级重用设计元素版本。

弃用
在 NX11.0.0 中弃用。请改用 NXOpen::Assemblies::Component::ModelElementRevision

创建于 NX8.5.0。

许可要求:无

返回 与此组件对应的 NXOpen::PDM::DesignSubordinateRevision 。 如果组件不是从属设计元素,则可能为 NULL。
创建于 NX8.5.0。

许可要求:无

◆ DirectOwner()

NXOpen::Assemblies::ComponentAssembly * NXOpen::Assemblies::Component::DirectOwner ( )

返回拥有此组件作为"顶级"组件的NXOpen::Assemblies::ComponentAssembly 。 对于多级装配中的组件,这与拥有此组件对象的部件不同。 即,不同于调用:

如果组件的所有者未加载,将抛出异常。
Created in NX3.0.0.

License requirements : None

◆ DisplayComponentsExact()

NXOpen::ErrorList * NXOpen::Assemblies::Component::DisplayComponentsExact ( const std::vector< NXOpen::Assemblies::Component * > & components)
   将一组组件设置为使用精确表示进行显示。
@return  在精确显示过程中遇到的错误列表


创建于 NX7.5.0.

许可需求:网关 ("UG GATEWAY")

参数
components要设置为精确的组件数组

◆ DisplayComponentsLightweight()

NXOpen::ErrorList * NXOpen::Assemblies::Component::DisplayComponentsLightweight ( const std::vector< NXOpen::Assemblies::Component * > & components)
     将一组组件设置为使用轻量级表示进行显示。
@return  在轻量级显示过程中遇到的错误列表


创建于 NX7.5.0.

许可需求:网关 ("UG GATEWAY")

参数
components要设置为轻量级的组件数组

◆ DisplayName()

NXString NXOpen::Assemblies::Component::DisplayName ( )

返回 原型部件的可显示名称。
在 NX4.0.0 版本中创建

许可要求:nx_atlas_testlab_api ("Testlab worker - STS") 或 assemblies ("ASSEMBLIES MODULE")

◆ EmptyPartRefsetName()

NXString NXOpen::Assemblies::Component::EmptyPartRefsetName ( )

返回表示空集的引用集的名称。这 可用作NXOpen::Assemblies::ComponentAssembly::ReplaceReferenceSet 的参数。
Created in NX3.0.0.

License requirements : assemblies ("ASSEMBLIES MODULE")

◆ EntirePartRefsetName()

NXString NXOpen::Assemblies::Component::EntirePartRefsetName ( )

返回表示整个部件的引用集的名称。这 可用作NXOpen::Assemblies::ComponentAssembly::ReplaceReferenceSet 的参数。
Created in NX3.0.0.

License requirements : assemblies ("ASSEMBLIES MODULE")

◆ EstablishIsolatedPositionOverride()

void NXOpen::Assemblies::Component::EstablishIsolatedPositionOverride ( NXOpen::Assemblies::Component * parent,
NXOpen::Assemblies::Arrangement * arrangement )
   确保在指定父部件的指定部件中存在 @link NXOpen::Assemblies::Component NXOpen::Assemblies::Component@endlink 的隔离定位覆盖。如果 @link NXOpen::Assemblies::Component NXOpen::Assemblies::Component@endlink 在父部件中已有隔离定位覆盖,或任何必要数据未加载,则此方法不执行任何操作。
   如果父部件为NULL,隔离定位覆盖将在与 @link NXOpen::Assemblies::Component NXOpen::Assemblies::Component@endlink 相同的部件中创建。


创建于NX9.0.1。

许可要求:装配("ASSEMBLIES MODULE")

参数
parent要在其中创建覆盖的 NXOpen::Assemblies::Component 的父部件
arrangement要在其中创建隔离定位覆盖的 NXOpen::Assemblies::Arrangement 。此 NXOpen::Assemblies::Arrangement 必须是隔离的 NXOpen::Assemblies::Arrangement

◆ EstablishPositionOverride()

void NXOpen::Assemblies::Component::EstablishPositionOverride ( NXOpen::Assemblies::Component * parent)
   确保在指定父部件的指定部件中存在组件定位覆盖。如果组件在父部件中已有定位覆盖,或任何必要数据未加载,则此方法不执行任何操作。
   如果父部件为NULL,定位覆盖将在与 @link NXOpen::Assemblies::Component NXOpen::Assemblies::Component@endlink 相同的部件中创建。


创建于NX7.5.0。

许可要求:装配("ASSEMBLIES MODULE")

参数
parent要在其中创建覆盖的组件的父部件

◆ EvaluatePartFamilyInstanceSelectionCriteria()

void NXOpen::Assemblies::Component::EvaluatePartFamilyInstanceSelectionCriteria ( bool * componentChanged,
NXOpen::Part ** newPartFamilyMember,
NXString * errorinfo )

评估与此组件关联的NXOpen::PartFamily::InstanceSelectionCriteria,并更新零件族成员。
Created in NX2306.0.0.

License requirements : None

参数
componentChanged指示零件族成员是否已更改的标志
newPartFamilyMember如果组件已更改,则为新的零件族成员
errorinfo错误信息

◆ FindComponentPatterns()

void NXOpen::Assemblies::Component::FindComponentPatterns ( NXOpen::Assemblies::ComponentPattern ** patternDefinition,
std::vector< NXOpen::Assemblies::ComponentPattern * > & patternDefinitions )

查找与此组件关联的 NXOpen::Assemblies::ComponentPattern 。 用于模式定义列表的内存释放由用户负责。
创建于 NX10.0.2。

许可要求:assemblies("装配模块")

参数
patternDefinition将 'component' 作为其输出实例之一的模式
patternDefinitions将 'component' 作为其主组件的模式列表

◆ FindOccurrence()

NXOpen::NXObject * NXOpen::Assemblies::Component::FindOccurrence ( NXOpen::NXObject * proto)

给定一个原型对象,返回此组件中对应的引用。 如果原型在此组件使用的引用集中,将始终返回一个引用,该引用可能是临时的或持久的。 如果原型不在此组件使用的引用集中,则仅当存在持久引用时才会返回一个引用。 关于临时和持久引用的解释,请参见《Open C程序员指南》中UF Objects章节的"装配上下文中的可显示UF Objects"。

返回
原型在此组件中的引用
Created in NX3.0.0.

License requirements : None
参数
proto原型

◆ FixConstraint()

NXOpen::Positioning::ComponentConstraint * NXOpen::Assemblies::Component::FixConstraint ( )

返回 此组件的一个固定 NXOpen::Positioning::ComponentConstraint 约束。 该约束可能被抑制或为 NULL。如果控制此组件位置的部件未加载,则返回 NULL。
在 NX5.0.0 版本中创建

许可要求:assemblies ("ASSEMBLIES MODULE")

◆ GetArrangements()

void NXOpen::Assemblies::Component::GetArrangements ( std::vector< NXOpen::Assemblies::Arrangement * > & arrangements)

输出 NXOpen::Assemblies::Component 中的 NXOpen::Assemblies::Arrangement 对象。 它们按字母顺序输出。
创建于NX12.0.0。

许可要求:装配("ASSEMBLIES MODULE")

参数
arrangements按字母顺序排序的布置

◆ GetAsRequiredQuantity()

NXString NXOpen::Assemblies::Component::GetAsRequiredQuantity ( )
   获取此组件的按需数量。
@return  按需字符串 "A/R"


创建于 NX6.0.0.

许可需求:装配 ("ASSEMBLIES MODULE")

◆ GetCharacteristics()

virtual NXOpen::Routing::CharacteristicList * NXOpen::Assemblies::Component::GetCharacteristics ( )
virtual

获取此对象上的所有特性值。

返回

Created in NX4.0.0.

License requirements : routing_base ("Routing Basic")

实现了 NXOpen::Routing::ICharacteristic.

◆ GetChildren()

std::vector< NXOpen::Assemblies::Component * > NXOpen::Assemblies::Component::GetChildren ( )

返回此组件的子组件 但是,它不返回非几何组件(NGCs) 要使此方法也返回NGCs,请设置以下环境变量: UGII_ALLOW_NGC_IN_UGOPEN=YES

返回

Created in NX3.0.0.

License requirements : None

◆ GetComponentQuantityType()

NXOpen::Assemblies::ComponentQuantity NXOpen::Assemblies::Component::GetComponentQuantityType ( )
   获取组件的数量类型。返回 @link NXOpen::Assemblies::ComponentQuantity NXOpen::Assemblies::ComponentQuantity@endlink 。
@return  数量类型,枚举值


创建于 NX6.0.0.

许可需求:装配 ("ASSEMBLIES MODULE")

◆ GetComponentRepresentationMode()

NXOpen::Assemblies::Component::RepresentationMode NXOpen::Assemblies::Component::GetComponentRepresentationMode ( )
  返回组件体的表示模式。
  此模式取决于组件当前使用的引用集。
@return  组件显示的模式。枚举值。


创建于 NX7.5.0.

许可需求:无

◆ GetConstraints()

std::vector< NXOpen::Positioning::ComponentConstraint * > NXOpen::Assemblies::Component::GetConstraints ( )

返回直接连接到此组件的 NXOpen::Positioning::ComponentConstraint 约束。如果包含这些约束的部件未加载,则不会返回任何约束。

返回
直接连接到此组件的约束
在 NX5.0.0 版本中创建

许可要求:assemblies ("ASSEMBLIES MODULE")

◆ GetDegreesOfFreedom() [1/2]

NXOpen::Assemblies::DegreesOfFreedom NXOpen::Assemblies::Component::GetDegreesOfFreedom ( )

返回此组件的 NXOpen::Assemblies::DegreesOfFreedom 自由度。 在自由度计算中,任何引用未加载数据的约束将被忽略。例如,如果一个约束引用了未加载组件中的几何体。当这种情况发生时,自由度数量可能比所有数据都加载时更多。

返回
此组件的自由度。
在 NX6.0.0 版本中创建

许可要求:assemblies ("ASSEMBLIES MODULE")

◆ GetDegreesOfFreedom() [2/2]

NXOpen::Assemblies::DegreesOfFreedom NXOpen::Assemblies::Component::GetDegreesOfFreedom ( const std::vector< NXOpen::Assemblies::Component * > & components)

返回此组件的 NXOpen::Assemblies::DegreesOfFreedom 自由度。 自由度是相对于传入的组件来确定的。这些组件被视为固定,仅考虑直接连接此组件与数组中组件的约束。 注意,在自由度计算中,任何引用未加载数据的直接连接约束将被忽略。例如,如果一个约束引用了未加载组件中的几何体。当这种情况发生时,自由度数量可能比所有数据都加载时更多。

返回
此组件的自由度。
在 NX6.0.0 版本中创建

许可要求:assemblies ("ASSEMBLIES MODULE")
参数
components将相对于这些组件来确定自由度。

◆ GetDestinationCharacteristics()

virtual NXOpen::Routing::CharacteristicList * NXOpen::Assemblies::Component::GetDestinationCharacteristics ( )
virtual

从输入对象返回目标特性。 从应用视图检索要读取哪些目标特性的描述, 然后从该对象读取这些目标特性

  • 端口:从端口读取特性。
  • RCP:尝试在 RCP 处查找端口,如果端口存在则从端口读取特性, 否则从与该 RCP 关联的型材读取。
  • 线段:从与线段关联的型材读取特性。
  • 组件:直接从组件读取特性。
  • 型材:从型材或型材的数据读取特性。
返回
特性列表
创建于 NX4.0.0。

许可要求:routing_base ("Routing Basic")

实现了 NXOpen::Routing::ICharacteristic.

◆ GetInstanceBooleanUserAttribute() [1/2]

bool NXOpen::Assemblies::Component::GetInstanceBooleanUserAttribute ( const char * title,
int index )

通过标题和数组索引获取布尔型属性。 如果属性不是数组,则忽略索引(如果事先知道,建议将索引设置为-1以节省时间)。 数组的第一个元素索引为0。 要获取数组的所有元素,请使用 NXOpen::NXObject::GetUserAttributes

返回

创建于 NX8.0.0。

许可要求:无
参数
title标题
index索引

◆ GetInstanceBooleanUserAttribute() [2/2]

bool NXOpen::Assemblies::Component::GetInstanceBooleanUserAttribute ( const NXString & title,
int index )

通过标题和数组索引获取布尔型属性。 如果属性不是数组,则忽略索引(如果事先知道,建议将索引设置为-1以节省时间)。 数组的第一个元素索引为0。 要获取数组的所有元素,请使用 NXOpen::NXObject::GetUserAttributes

返回

创建于 NX8.0.0。

许可要求:无
参数
title标题
index索引

◆ GetInstanceIntegerUserAttribute() [1/2]

int NXOpen::Assemblies::Component::GetInstanceIntegerUserAttribute ( const char * title,
int index )

通过标题和数组索引获取整数属性。 如果属性不是数组,则忽略索引(如果事先知道,建议将索引设为-1以节省时间)。 数组的第一个元素索引为0。 要获取数组的所有元素,请使用 NXOpen::NXObject::GetUserAttributes

返回

在 NX8.0.0 中创建。

许可要求:无
参数
titletitle
indexindex

◆ GetInstanceIntegerUserAttribute() [2/2]

int NXOpen::Assemblies::Component::GetInstanceIntegerUserAttribute ( const NXString & title,
int index )

通过标题和数组索引获取整数属性。 如果属性不是数组,则忽略索引(如果事先知道,建议将索引设为-1以节省时间)。 数组的第一个元素索引为0。 要获取数组的所有元素,请使用 NXOpen::NXObject::GetUserAttributes

返回

在 NX8.0.0 中创建。

许可要求:无
参数
titletitle
indexindex

◆ GetInstanceRealUserAttribute() [1/2]

double NXOpen::Assemblies::Component::GetInstanceRealUserAttribute ( const char * title,
int index )

通过标题和数组索引获取实数属性。 如果属性不是数组,则忽略索引(如果事先知道,建议将索引设为-1以节省时间)。 数组的第一个元素索引为0。 要获取数组的所有元素,请使用 NXOpen::NXObject::GetUserAttributes

返回

在 NX8.0.0 中创建。

许可要求:无
参数
titletitle
indexindex

◆ GetInstanceRealUserAttribute() [2/2]

double NXOpen::Assemblies::Component::GetInstanceRealUserAttribute ( const NXString & title,
int index )

通过标题和数组索引获取实数属性。 如果属性不是数组,则忽略索引(如果事先知道,建议将索引设为-1以节省时间)。 数组的第一个元素索引为0。 要获取数组的所有元素,请使用 NXOpen::NXObject::GetUserAttributes

返回

在 NX8.0.0 中创建。

许可要求:无
参数
titletitle
indexindex

◆ GetInstanceStringUserAttribute() [1/2]

NXString NXOpen::Assemblies::Component::GetInstanceStringUserAttribute ( const char * title,
int index )

通过标题和数组索引获取字符串属性。 对于引用类型的字符串属性,返回计算得到的字符串值。 如果属性不是数组,则忽略索引(如果事先知道,建议将索引设为-1以节省时间)。 数组的第一个元素索引为0。 要获取数组的所有元素,请使用 NXOpen::NXObject::GetUserAttributes 。 通过标题获取字符串属性值。

返回

在 NX8.0.0 中创建。

许可要求:无
参数
titletitle
indexindex

◆ GetInstanceStringUserAttribute() [2/2]

NXString NXOpen::Assemblies::Component::GetInstanceStringUserAttribute ( const NXString & title,
int index )

通过标题和数组索引获取字符串属性。 对于引用类型的字符串属性,返回计算得到的字符串值。 如果属性不是数组,则忽略索引(如果事先知道,建议将索引设为-1以节省时间)。 数组的第一个元素索引为0。 要获取数组的所有元素,请使用 NXOpen::NXObject::GetUserAttributes 。 通过标题获取字符串属性值。

返回

在 NX8.0.0 中创建。

许可要求:无
参数
titletitle
indexindex

◆ GetInstanceTimeUserAttribute() [1/2]

NXString NXOpen::Assemblies::Component::GetInstanceTimeUserAttribute ( const char * title,
int index )

通过标题和数组索引获取时间属性。 使用客户默认设置中设置的日期格式。 如果属性不是数组,则忽略索引(如果事先知道,建议将索引设为-1以节省时间)。 数组的第一个元素索引为0。 要获取数组的所有元素,请使用 NXOpen::NXObject::GetUserAttributes 。 通过标题获取时间属性。

返回

在 NX8.0.0 中创建。

许可要求:无
参数
titletitle
indexindex

◆ GetInstanceTimeUserAttribute() [2/2]

NXString NXOpen::Assemblies::Component::GetInstanceTimeUserAttribute ( const NXString & title,
int index )

通过标题和数组索引获取时间属性。 使用客户默认设置中设置的日期格式。 如果属性不是数组,则忽略索引(如果事先知道,建议将索引设为-1以节省时间)。 数组的第一个元素索引为0。 要获取数组的所有元素,请使用 NXOpen::NXObject::GetUserAttributes 。 通过标题获取时间属性。

返回

在 NX8.0.0 中创建。

许可要求:无
参数
titletitle
indexindex

◆ GetInstanceUserAttribute() [1/2]

NXOpen::NXObject::AttributeInformation NXOpen::Assemblies::Component::GetInstanceUserAttribute ( const char * title,
NXOpen::NXObject::AttributeType type,
int index )

获取对象上遇到的第一个具有给定标题、类型和数组索引的属性(如果存在)。 如果属性不是数组,则忽略索引(如果事先知道,建议将索引设置为-1以节省时间)。 数组的第一个元素索引为0。 要获取数组的所有元素,请使用 NXOpen::NXObject::GetUserAttributes 。 时间类型属性使用客户默认值设置的日期格式。 注意:此方法不支持使用 NXOpen::NXObject::AttributeTypeReference 。 请改用 NXOpen::NXObject::AttributeTypeString 。 对于引用类型字符串属性,将同时返回引用值和计算出的字符串值。

返回

创建于 NX8.0.0。

许可要求:无
参数
title标题
type类型
index索引

◆ GetInstanceUserAttribute() [2/2]

NXOpen::NXObject::AttributeInformation NXOpen::Assemblies::Component::GetInstanceUserAttribute ( const NXString & title,
NXOpen::NXObject::AttributeType type,
int index )

获取对象上遇到的第一个具有给定标题、类型和数组索引的属性(如果存在)。 如果属性不是数组,则忽略索引(如果事先知道,建议将索引设置为-1以节省时间)。 数组的第一个元素索引为0。 要获取数组的所有元素,请使用 NXOpen::NXObject::GetUserAttributes 。 时间类型属性使用客户默认值设置的日期格式。 注意:此方法不支持使用 NXOpen::NXObject::AttributeTypeReference 。 请改用 NXOpen::NXObject::AttributeTypeString 。 对于引用类型字符串属性,将同时返回引用值和计算出的字符串值。

返回

创建于 NX8.0.0。

许可要求:无
参数
title标题
type类型
index索引

◆ GetInstanceUserAttributeAsString() [1/2]

NXString NXOpen::Assemblies::Component::GetInstanceUserAttributeAsString ( const char * title,
NXOpen::NXObject::AttributeType type,
int index )

获取对象上遇到的第一个具有给定标题、类型和数组索引的属性(如果存在)。 属性值转换为字符串并返回。 若属性非数组,则忽略Index(若事先已知,建议将Index设为-1以节省时间)。 数组的第一个元素索引为0。 要获取数组的所有元素,请使用NXOpen::NXObject::GetUserAttributesAsStrings 。 时间类型属性使用客户默认设置的日期格式。 注意:此方法不支持使用NXOpen::NXObject::AttributeTypeReference 。 请改用NXOpen::NXObject::AttributeTypeString 。 对于引用类型字符串属性,返回计算后的StringValue。

返回

创建于NX8.0.0。

许可要求:无
参数
titletitle
typetype
indexindex

◆ GetInstanceUserAttributeAsString() [2/2]

NXString NXOpen::Assemblies::Component::GetInstanceUserAttributeAsString ( const NXString & title,
NXOpen::NXObject::AttributeType type,
int index )

获取对象上遇到的第一个具有给定标题、类型和数组索引的属性(如果存在)。 属性值转换为字符串并返回。 若属性非数组,则忽略Index(若事先已知,建议将Index设为-1以节省时间)。 数组的第一个元素索引为0。 要获取数组的所有元素,请使用NXOpen::NXObject::GetUserAttributesAsStrings 。 时间类型属性使用客户默认设置的日期格式。 注意:此方法不支持使用NXOpen::NXObject::AttributeTypeReference 。 请改用NXOpen::NXObject::AttributeTypeString 。 对于引用类型字符串属性,返回计算后的StringValue。

返回

创建于NX8.0.0。

许可要求:无
参数
titletitle
typetype
indexindex

◆ GetInstanceUserAttributeLock() [1/2]

bool NXOpen::Assemblies::Component::GetInstanceUserAttributeLock ( const char * title,
NXOpen::NXObject::AttributeType type )

确定给定属性的锁定状态。 对于数组属性,标题应设置为数组标题,不附加索引。 单个数组元素不能单独锁定

返回
锁定状态
创建于 NX8.0.0。

许可要求:无
参数
title标题
type类型

◆ GetInstanceUserAttributeLock() [2/2]

bool NXOpen::Assemblies::Component::GetInstanceUserAttributeLock ( const NXString & title,
NXOpen::NXObject::AttributeType type )

确定给定属性的锁定状态。 对于数组属性,标题应设置为数组标题,不附加索引。 单个数组元素不能单独锁定

返回
锁定状态
创建于 NX8.0.0。

许可要求:无
参数
title标题
type类型

◆ GetInstanceUserAttributes() [1/2]

std::vector< NXOpen::NXObject::AttributeInformation > NXOpen::Assemblies::Component::GetInstanceUserAttributes ( )

获取给定对象上设置的所有属性。 数组属性的元素按索引递增顺序单独返回。 返回的数组元素标题是数组标题(不带索引)。Index 数据成员保存索引。 使用客户默认设置中设置的日期格式。 引用类型属性以 NXOpen::NXObject::AttributeTypeString 类型返回, 并返回 ReferenceValue 和计算得到的 StringValue。

返回

在 NX8.0.0 中创建。

许可要求:无

◆ GetInstanceUserAttributes() [2/2]

std::vector< NXOpen::NXObject::AttributeInformation > NXOpen::Assemblies::Component::GetInstanceUserAttributes ( bool includeUnset)

获取给定对象上已设置的所有属性,以及未设置的属性模板信息(若'IncludeUnset'为'true')。 数组属性的元素按索引递增顺序单独返回。 数组元素的返回标题为数组标题(不含索引)。Index数据成员保存索引。 使用客户默认设置的日期格式。 引用类型属性以NXOpen::NXObject::AttributeTypeString 类型返回, 并返回ReferenceValue和计算后的StringValue。

返回

创建于NX8.0.0。

许可要求:无
参数
includeUnsetincludeunset

◆ GetInstanceUserAttributesAsStrings()

std::vector< NXString > NXOpen::Assemblies::Component::GetInstanceUserAttributesAsStrings ( )

获取给定对象上已设置的所有属性。 值以字符串形式返回。 数组属性的元素按索引递增顺序单独返回。 数组元素的返回标题为数组标题(不含索引)。Index数据成员保存索引。 此方法不支持使用NXOpen::NXObject::AttributeTypeReference 。 引用类型属性返回计算后的StringValue。 使用客户默认设置的日期格式。

返回

创建于NX8.0.0。

许可要求:无

◆ GetIntegerCharacteristic() [1/2]

virtual int NXOpen::Assemblies::Component::GetIntegerCharacteristic ( const char * name)
virtual

获取与输入名称关联的整型特征值。

返回

创建于NX4.0.0。

许可要求:routing_base ("Routing Basic")
参数
name名称

实现了 NXOpen::Routing::ICharacteristic.

◆ GetIntegerCharacteristic() [2/2]

virtual int NXOpen::Assemblies::Component::GetIntegerCharacteristic ( const NXString & name)
virtual

设置此对象上的所有特性值。

弃用
Deprecated in NX11.0.0. 请改用 NXOpen::Routing::ICharacteristic::SetCharacteristics2

Created in NX4.0.0.

License requirements : routing_base ("Routing Basic")

值 获取与输入名称关联的整数特性的值。

返回

Created in NX4.0.0.

License requirements : routing_base ("Routing Basic")
参数
name名称

实现了 NXOpen::Routing::ICharacteristic.

◆ GetIntegerQuantity()

int NXOpen::Assemblies::Component::GetIntegerQuantity ( )
   获取组件整数数量的值。
@return  整数数量值


创建于 NX6.0.0.

许可需求:装配 ("ASSEMBLIES MODULE")

◆ GetLayerOption()

int NXOpen::Assemblies::Component::GetLayerOption ( )
   获取图层选项。这控制组件的几何体在其父部件中显示的图层。
@return  组件在其父部件中的图层选项
                                -1 表示组件的几何体使用其原始部件中定义的图层设置
                                 1-255 表示组件的几何体位于指定图层


Created in NX3.0.0.

License requirements : assemblies ("ASSEMBLIES MODULE")

◆ GetNonGeometricState()

bool NXOpen::Assemblies::Component::GetNonGeometricState ( )
   获取组件的状态是几何体还是非几何体。
@return  如果组件是非几何体则为 true,否则为 false


创建于 NX6.0.0.

许可需求:装配 ("ASSEMBLIES MODULE")

◆ GetPartFamilyInstanceSelectionCriteria()

NXOpen::PartFamily::InstanceSelectionCriteria * NXOpen::Assemblies::Component::GetPartFamilyInstanceSelectionCriteria ( )

获取存在的 NXOpen::PartFamily::InstanceSelectionCriteria (如果存在)。
创建于 NX9.0.0。

许可要求:solid_modeling("实体建模")

◆ GetPosition()

void NXOpen::Assemblies::Component::GetPosition ( NXOpen::Point3d * position,
NXOpen::Matrix3x3 * orientation )
   获取组件的位置


Created in NX3.0.0.

License requirements : assemblies ("ASSEMBLIES MODULE")

参数
position此组件的原点
orientation此组件的方向

◆ GetPositionOverrideParent()

NXOpen::Assemblies::Component * NXOpen::Assemblies::Component::GetPositionOverrideParent ( )
   查找组件位置被覆盖的最高级别父部件。如果组件未被覆盖,则返回NULL。如果组件在与自身相同的部件中被覆盖,则返回根组件。如果组件的位置在当前未加载的父装配中被覆盖,则返回NULL。


创建于NX7.5.0。

许可要求:装配("ASSEMBLIES MODULE")

◆ GetPositionOverrideType()

NXOpen::Assemblies::PositionOverrideType NXOpen::Assemblies::Component::GetPositionOverrideType ( )
   获取组件上最高级别定位覆盖的类型。


创建于NX7.5.0。

许可要求:装配("ASSEMBLIES MODULE")

◆ GetRealCharacteristic() [1/2]

virtual double NXOpen::Assemblies::Component::GetRealCharacteristic ( const char * name)
virtual

获取与输入名称关联的实型特征值。

返回

创建于NX4.0.0。

许可要求:routing_base ("Routing Basic")
参数
name名称

实现了 NXOpen::Routing::ICharacteristic.

◆ GetRealCharacteristic() [2/2]

virtual double NXOpen::Assemblies::Component::GetRealCharacteristic ( const NXString & name)
virtual

获取与输入名称关联的实型特征值。

返回

创建于NX4.0.0。

许可要求:routing_base ("Routing Basic")
参数
name名称

实现了 NXOpen::Routing::ICharacteristic.

◆ GetRealQuantity()

double NXOpen::Assemblies::Component::GetRealQuantity ( NXString * quantityUnits)
   获取此组件的实数数量值及相应单位。
@return  实数数量值


创建于 NX6.0.0.

许可需求:装配 ("ASSEMBLIES MODULE")

参数
quantityUnits单位

◆ GetStringCharacteristic() [1/2]

virtual NXString NXOpen::Assemblies::Component::GetStringCharacteristic ( const char * name)
virtual

获取与输入名称关联的字符串特征值。

返回

创建于NX4.0.0。

许可要求:routing_base ("Routing Basic")
参数
name名称

实现了 NXOpen::Routing::ICharacteristic.

◆ GetStringCharacteristic() [2/2]

virtual NXString NXOpen::Assemblies::Component::GetStringCharacteristic ( const NXString & name)
virtual

获取与输入名称关联的字符串特征值。

返回

创建于NX4.0.0。

许可要求:routing_base ("Routing Basic")
参数
name名称

实现了 NXOpen::Routing::ICharacteristic.

◆ HasInstanceUserAttribute() [1/2]

bool NXOpen::Assemblies::Component::HasInstanceUserAttribute ( const char * title,
NXOpen::NXObject::AttributeType type,
int index )

判断对象上是否存在具有给定标题、类型和数组索引的属性。 如果属性不是数组,则忽略索引(如果事先知道,建议将索引设置为-1以节省时间)。 数组的第一个元素索引为0。 注意:此方法不支持使用 NXOpen::NXObject::AttributeTypeReference 。 请改用 NXOpen::NXObject::AttributeTypeString

返回

创建于 NX8.0.0。

许可要求:无
参数
title标题
type类型
index索引

◆ HasInstanceUserAttribute() [2/2]

bool NXOpen::Assemblies::Component::HasInstanceUserAttribute ( const NXString & title,
NXOpen::NXObject::AttributeType type,
int index )

判断对象上是否存在具有给定标题、类型和数组索引的属性。 如果属性不是数组,则忽略索引(如果事先知道,建议将索引设置为-1以节省时间)。 数组的第一个元素索引为0。 注意:此方法不支持使用 NXOpen::NXObject::AttributeTypeReference 。 请改用 NXOpen::NXObject::AttributeTypeString

返回

创建于 NX8.0.0。

许可要求:无
参数
title标题
type类型
index索引

◆ IsFixed()

bool NXOpen::Assemblies::Component::IsFixed ( )

返回 此组件的固定状态。如果存在一个未抑制的 NXOpen::Positioning::ComponentConstraint 固定约束作用于该组件,则为 true,否则为 false。如果控制此组件位置的部件未加载,则返回 false。
在 NX5.0.0 版本中创建

许可要求:assemblies ("ASSEMBLIES MODULE")

◆ IsPartitionable()

std::vector< NXOpen::Assemblies::IsPartitionableResult * > NXOpen::Assemblies::Component::IsPartitionable ( const std::vector< NXOpen::Assemblies::Component * > & components,
const std::vector< NXOpen::Assemblies::Partition * > & partitions )

验证所有输入的NXOpen::Assemblies::Component 在所有可能的NXOpen::Assemblies::Partition 中的 IsPartitionable 状态并返回结果。 所有组件和分区输入应为唯一的且属于同一产品装配。
Created in NX2312.0.0.

License requirements : assemblies ("ASSEMBLIES MODULE")

参数
components组件
partitions分区

◆ IsPositioningIsolated()

bool NXOpen::Assemblies::Component::IsPositioningIsolated ( NXOpen::Assemblies::Arrangement * arrangement)

获取所选 NXOpen::Assemblies::Component 的定位在指定的 NXOpen::Assemblies::Arrangement 中是否为隔离。

返回
所选 NXOpen::Assemblies::Component 的定位在指定的 NXOpen::Assemblies::Arrangement 中是否为隔离。
创建于NX9.0.1。

许可要求:装配("ASSEMBLIES MODULE")
参数
arrangement指定的 NXOpen::Assemblies::Arrangement

◆ IsSuppressed()

bool NXOpen::Assemblies::Component::IsSuppressed ( )

返回 组件在其控制布置中的抑制状态。 此方法仅返回组件是否被显式抑制,并不反映因父项被抑制而导致的组件抑制情况。 (参见 NXOpen::Assemblies::Component::SuppressingArrangement 。)
Created in NX3.0.0.

License requirements : assemblies ("ASSEMBLIES MODULE")

◆ ModelElementRevision()

NXOpen::PDM::ModelElementRevision * NXOpen::Assemblies::Component::ModelElementRevision ( )

返回 与此组件对应的 NXOpen::PDM::ModelElementRevision 。 如果组件不是模型元素,则可能为 NULL。 如果此组件表示一个 NXOpen::PDM::DesignSubordinateRevision ,则将返回父级重用设计元素版本。 如果组件是独立设计特征,则将返回 NXOpen::PDM::DesignFeatureRevision
创建于 NX10.0.2。

许可要求:无

◆ NX_DEPRECATED() [1/3]

NXOpen::Assemblies::Component::NX_DEPRECATED ( "Deprecated in NX11.0.0. Use NXOpen::Routing::ICharacteristic::SetCharacteristic2 instead." ) const &

设置与输入名称关联的字符串特征值。如果不存在则添加新特征。如果已存在同名特征但其类型不是字符串型,则将其类型转换为字符串型。

弃用
自NX11.0.0起已弃用。请改用 NXOpen::Routing::ICharacteristic::SetCharacteristic2

创建于NX4.0.0。

许可要求:routing_base ("Routing Basic")

名称

◆ NX_DEPRECATED() [2/3]

NXOpen::Assemblies::Component::NX_DEPRECATED ( "Deprecated in NX11.0.0. Use NXOpen::Routing::ICharacteristic::SetCharacteristic2 instead." ) const &

设置与输入名称关联的实型特征值。如果不存在则添加新特征。如果已存在同名特征但其类型不是实型,则将其类型转换为实型。

弃用
自NX11.0.0起已弃用。请改用 NXOpen::Routing::ICharacteristic::SetCharacteristic2

创建于NX4.0.0。

许可要求:routing_base ("Routing Basic")

名称

◆ NX_DEPRECATED() [3/3]

NXOpen::Assemblies::Component::NX_DEPRECATED ( "Deprecated in NX11.0.0. Use NXOpen::Routing::ICharacteristic::SetCharacteristic2 instead." ) const &

设置与输入名称关联的整型特征值。如果不存在则添加新特征。如果已存在同名特征但其类型不是整型,则将其类型转换为整型。

弃用
自NX11.0.0起已弃用。请改用 NXOpen::Routing::ICharacteristic::SetCharacteristic2

创建于NX4.0.0。

许可要求:routing_base ("Routing Basic")

名称

◆ Parent()

NXOpen::Assemblies::Component * NXOpen::Assemblies::Component::Parent ( )

返回组件的父级。对于装配的根组件,此值为NULL。参见NXOpen::Assemblies::ComponentAssembly::RootComponent
Created in NX3.0.0.

License requirements : None

◆ PartitionSchemeInstance()

NXOpen::Assemblies::PartitionSchemeInstance * NXOpen::Assemblies::Component::PartitionSchemeInstance ( )

返回与此组件关联的NXOpen::Assemblies::PartitionSchemeInstance(如果存在)。
Created in NX2206.0.0.

License requirements : assemblies ("ASSEMBLIES MODULE")

◆ RecallAndListConstraints()

std::vector< NXOpen::Positioning::ComponentConstraint * > NXOpen::Assemblies::Component::RecallAndListConstraints ( )

调用该组件部件上先前记住的 NXOpen::Positioning::ComponentConstraint,并基于它们创建新的约束。这些新约束不完整且引用该组件。

返回
调用操作创建的约束
创建于 NX5.0.1.

许可需求:装配 ("ASSEMBLIES MODULE")

◆ RecallConstraints()

void NXOpen::Assemblies::Component::RecallConstraints ( )

调用该组件部件上先前记住的 NXOpen::Positioning::ComponentConstraint,并基于它们创建新的约束。这些新约束不完整且引用该组件。
创建于 NX5.0.1.

许可需求:装配 ("ASSEMBLIES MODULE")

◆ ReferenceSet()

NXString NXOpen::Assemblies::Component::ReferenceSet ( )

返回 用于此组件的引用集名称
Created in NX3.0.0.

License requirements : assemblies ("ASSEMBLIES MODULE")

◆ RemoveFromPartitions()

void NXOpen::Assemblies::Component::RemoveFromPartitions ( const std::vector< NXOpen::Assemblies::Component * > & components,
const std::vector< NXOpen::Assemblies::Partition * > & partitions )

在所有可能的NXOpen::Assemblies::Partition 中为选定的NXOpen::Assemblies::Component 移除分区。
Created in NX2306.0.0.

License requirements : assemblies ("ASSEMBLIES MODULE")

参数
components其分区成员资格将被更改的组件。
partitions分区

◆ RemovePositionOverride()

void NXOpen::Assemblies::Component::RemovePositionOverride ( NXOpen::Assemblies::Component * parent)
   移除组件在给定父部件中或之下的最高级别定位覆盖。父部件可以为NULL,在这种情况下将移除组件上的最高级别定位覆盖。如果组件上没有定位覆盖,或任何必要数据未加载,则此方法不执行任何操作。作为此覆盖移除的结果,此组件被覆盖的父部件将被完全加载。


创建于NX7.5.0。

许可要求:装配("ASSEMBLIES MODULE")

参数
parent要在其中或其下移除覆盖的组件的父部件

◆ RemoveRememberedConstraints()

void NXOpen::Assemblies::Component::RemoveRememberedConstraints ( )

移除此组件部件上存储的所有已记住的约束。
创建于 NX5.0.1.

许可需求:装配 ("ASSEMBLIES MODULE")

◆ SetCharacteristic() [1/3]

virtual void NXOpen::Assemblies::Component::SetCharacteristic ( const char * name,
const char * value )
virtual

设置与输入名称关联的字符串型特性的值。 如果尚不存在,则向列表中添加新特性。如果已存在同名特性但其类型不是字符串, 则将其类型转换为字符串。

弃用
自 NX11.0.0 起已弃用。请改用 NXOpen::Routing::ICharacteristic::SetCharacteristic2

创建于 NX4.0.0。

许可要求:routing_base ("Routing Basic")
参数
name名称
value

实现了 NXOpen::Routing::ICharacteristic.

◆ SetCharacteristic() [2/3]

virtual void NXOpen::Assemblies::Component::SetCharacteristic ( const char * name,
double value )
virtual

设置与输入名称关联的实型特征值。如果不存在则添加新特征。如果已存在同名特征但其类型不是实型,则将其类型转换为实型。

弃用
自NX11.0.0起已弃用。请改用 NXOpen::Routing::ICharacteristic::SetCharacteristic2

创建于NX4.0.0。

许可要求:routing_base ("Routing Basic")
参数
name名称
value

实现了 NXOpen::Routing::ICharacteristic.

◆ SetCharacteristic() [3/3]

virtual void NXOpen::Assemblies::Component::SetCharacteristic ( const char * name,
int value )
virtual

设置与输入名称关联的整型特征值。如果不存在则添加新特征。如果已存在同名特征但其类型不是整型,则将其类型转换为整型。

弃用
自NX11.0.0起已弃用。请改用 NXOpen::Routing::ICharacteristic::SetCharacteristic2

创建于NX4.0.0。

许可要求:routing_base ("Routing Basic")
参数
name名称
value

实现了 NXOpen::Routing::ICharacteristic.

◆ SetCharacteristic2() [1/6]

virtual void NXOpen::Assemblies::Component::SetCharacteristic2 ( const char * title,
const char * value )
virtual

设置或创建与输入标题关联的字符串类型属性。 如果属性不存在则创建新属性。 如果在标准件 Assemblies::Component 上调用此方法, 该方法将在标准件部件上创建或编辑部件属性。对于属性位于标准件组件上的旧版本部件, 该属性将被移动到标准件部件上。 如果在非标准件 Assemblies::Component 上调用此方法, 该方法将在相应的实例上创建或编辑属性。对于属性位于组件上的旧版本部件, 该属性将被移动到相应的实例上。 如果在任何非组件对象上调用此方法,该方法将访问或创建对象本身的属性。
创建于 NX11.0.0。

许可要求:routing_base ("Routing Basic")

参数
title属性或特征的唯一标题
value要在属性上设置的新值

实现了 NXOpen::Routing::ICharacteristic.

◆ SetCharacteristic2() [2/6]

virtual void NXOpen::Assemblies::Component::SetCharacteristic2 ( const char * title,
double value )
virtual

设置或创建与输入标题关联的双精度类型属性。 如果属性不存在则创建新属性。 如果在标准件 Assemblies::Component 上调用此方法, 该方法将在标准件部件上创建或编辑部件属性。对于属性位于标准件组件上的旧版本部件, 该属性将被移动到标准件部件上。 如果在非标准件 Assemblies::Component 上调用此方法, 该方法将在相应的实例上创建或编辑属性。对于属性位于组件上的旧版本部件, 该属性将被移动到相应的实例上。 如果在任何非组件对象上调用此方法,该方法将访问或创建对象本身的属性。
创建于 NX11.0.0。

许可要求:routing_base ("Routing Basic")

参数
title属性或特征的唯一标题
value要在属性上设置的新值

实现了 NXOpen::Routing::ICharacteristic.

◆ SetCharacteristic2() [3/6]

virtual void NXOpen::Assemblies::Component::SetCharacteristic2 ( const char * title,
int value )
virtual

设置或创建与输入标题关联的整数类型属性。 如果尚不存在,则创建新属性。 如果在型材 Assemblies::Component 上调用此方法, 该方法将在型材部件上创建或编辑部件属性。对于属性位于型材组件上的旧部件, 该属性将被移动到型材部件上。 如果在非型材 Assemblies::Component 上调用此方法, 该方法将在相应实例上创建或编辑属性。对于属性位于组件上的旧部件, 该属性将被移动到相应实例上。 如果在任何非组件对象上调用此方法,该方法将访问或创建该对象本身的属性。
创建于 NX11.0.0。

许可要求:routing_base ("Routing Basic")

参数
title属性或特性的唯一标题
value要在属性上设置的新值

实现了 NXOpen::Routing::ICharacteristic.

◆ SetCharacteristic2() [4/6]

virtual void NXOpen::Assemblies::Component::SetCharacteristic2 ( const NXString & title,
const NXString & value )
virtual

设置或创建与输入标题关联的字符串类型属性。 如果属性不存在则创建新属性。 如果在标准件 Assemblies::Component 上调用此方法, 该方法将在标准件部件上创建或编辑部件属性。对于属性位于标准件组件上的旧版本部件, 该属性将被移动到标准件部件上。 如果在非标准件 Assemblies::Component 上调用此方法, 该方法将在相应的实例上创建或编辑属性。对于属性位于组件上的旧版本部件, 该属性将被移动到相应的实例上。 如果在任何非组件对象上调用此方法,该方法将访问或创建对象本身的属性。
创建于 NX11.0.0。

许可要求:routing_base ("Routing Basic")

参数
title属性或特征的唯一标题
value要在属性上设置的新值

实现了 NXOpen::Routing::ICharacteristic.

◆ SetCharacteristic2() [5/6]

virtual void NXOpen::Assemblies::Component::SetCharacteristic2 ( const NXString & title,
double value )
virtual

设置或创建与输入标题关联的双精度类型属性。 如果尚不存在,则创建新属性。 如果在型材 Assemblies::Component 上调用此方法, 该方法将在型材部件上创建或编辑部件属性。对于属性位于型材组件上的旧部件, 该属性将被移动到型材部件上。 如果在非型材 Assemblies::Component 上调用此方法, 该方法将在相应实例上创建或编辑属性。对于属性位于组件上的旧部件, 该属性将被移动到相应实例上。 如果在任何非组件对象上调用此方法,该方法将访问或创建该对象本身的属性。
创建于 NX11.0.0。

许可要求:routing_base ("Routing Basic")

参数
title属性或特性的唯一标题
value要在属性上设置的新值

实现了 NXOpen::Routing::ICharacteristic.

◆ SetCharacteristic2() [6/6]

virtual void NXOpen::Assemblies::Component::SetCharacteristic2 ( const NXString & title,
int value )
virtual

设置或创建与输入标题关联的整数类型属性。 如果尚不存在,则创建新属性。 如果在型材 Assemblies::Component 上调用此方法, 该方法将在型材部件上创建或编辑部件属性。对于属性位于型材组件上的旧部件, 该属性将被移动到型材部件上。 如果在非型材 Assemblies::Component 上调用此方法, 该方法将在相应实例上创建或编辑属性。对于属性位于组件上的旧部件, 该属性将被移动到相应实例上。 如果在任何非组件对象上调用此方法,该方法将访问或创建该对象本身的属性。
创建于 NX11.0.0。

许可要求:routing_base ("Routing Basic")

参数
title属性或特性的唯一标题
value要在属性上设置的新值

实现了 NXOpen::Routing::ICharacteristic.

◆ SetCharacteristics2()

virtual void NXOpen::Assemblies::Component::SetCharacteristics2 ( NXOpen::Routing::CharacteristicList * values)
virtual

设置与输入列表中标题关联的所有属性, 为尚不存在的属性创建新属性。 如果在标准件 Assemblies::Component 上调用此方法, 该方法将在标准件部件上创建或编辑部件属性。对于属性位于标准件组件上的旧版本部件, 这些属性将被移动到标准件部件上。 如果在非标准件 Assemblies::Component 上调用此方法, 该方法将在相应的实例上创建或编辑属性。对于属性位于组件上的旧版本部件, 这些属性将被移动到相应的实例上。 如果在任何非组件对象上调用此方法,该方法将访问或创建对象本身的属性。
创建于 NX11.0.0。

许可要求:routing_base ("Routing Basic")

参数
valuesNXOpen::Routing::CharacteristicList ,包含要设置的属性的标题、类型和值

实现了 NXOpen::Routing::ICharacteristic.

◆ SetInstanceBooleanUserAttribute() [1/2]

void NXOpen::Assemblies::Component::SetInstanceBooleanUserAttribute ( const char * title,
int index,
bool value,
NXOpen::Update::Option option )

创建或修改布尔型属性,可选择是否更新。
创建于 NX8.0.0。

许可要求:无

参数
title标题
index索引
value
option选项

◆ SetInstanceBooleanUserAttribute() [2/2]

void NXOpen::Assemblies::Component::SetInstanceBooleanUserAttribute ( const NXString & title,
int index,
bool value,
NXOpen::Update::Option option )

创建或修改布尔型属性,可选择是否更新。
创建于 NX8.0.0。

许可要求:无

参数
title标题
index索引
value
option选项

◆ SetInstanceTimeUserAttribute() [1/2]

void NXOpen::Assemblies::Component::SetInstanceTimeUserAttribute ( const char * title,
int index,
const char * value,
NXOpen::Update::Option option )

创建或修改时间属性,可选择是否更新。 时间值假定为运行程序的机器当前时区的时间。 NX 将以 UTC 格式存储该值。
创建于 NX8.0.0。

许可要求:无

参数
title标题
index索引
value如果值为 NULL,则使用当前日期和时间。 有关有效格式,请参阅 NXOpen::NXObject::DateAndTimeFormat
option选项

◆ SetInstanceTimeUserAttribute() [2/2]

void NXOpen::Assemblies::Component::SetInstanceTimeUserAttribute ( const NXString & title,
int index,
const NXString & value,
NXOpen::Update::Option option )

创建或修改时间属性,可选择是否更新。 时间值假定为运行程序的机器当前时区的时间。 NX 将以 UTC 格式存储该值。
创建于 NX8.0.0。

许可要求:无

参数
title标题
index索引
value如果值为 NULL,则使用当前日期和时间。 有关有效格式,请参阅 NXOpen::NXObject::DateAndTimeFormat
option选项

◆ SetInstanceUserAttribute() [1/9]

void NXOpen::Assemblies::Component::SetInstanceUserAttribute ( const char * title,
int index,
const char * value,
NXOpen::Update::Option option )

创建或修改字符串属性,可选择是否更新。
创建于 NX8.0.0。

许可要求:无

参数
title标题
index索引
value
option选项

◆ SetInstanceUserAttribute() [2/9]

void NXOpen::Assemblies::Component::SetInstanceUserAttribute ( const char * title,
int index,
double value,
NXOpen::Update::Option option )

创建或修改实型属性,可选择是否更新。
创建于 NX8.0.0。

许可要求:无

参数
title标题
index索引
value
option选项

◆ SetInstanceUserAttribute() [3/9]

void NXOpen::Assemblies::Component::SetInstanceUserAttribute ( const char * title,
int index,
int value,
NXOpen::Update::Option option )

创建或修改整型属性,可选择是否更新。
创建于 NX8.0.0。

许可要求:无

参数
title标题
index索引
value
option选项

◆ SetInstanceUserAttribute() [4/9]

void NXOpen::Assemblies::Component::SetInstanceUserAttribute ( const char * title,
int index,
NXOpen::Update::Option option )

创建或修改空属性,可选择是否更新。
创建于 NX8.0.0。

许可要求:无

参数
title标题
index索引
option选项

◆ SetInstanceUserAttribute() [5/9]

void NXOpen::Assemblies::Component::SetInstanceUserAttribute ( const NXOpen::NXObject::AttributeInformation & info,
NXOpen::Update::Option option )

创建或修改属性,并带有更新或不更新的选项。 注意:此方法不支持使用 NXOpen::NXObject::AttributeTypeReference 。 请将类型设置为 NXOpen::NXObject::AttributeTypeString 并指定一个 ReferenceValue。 此方法忽略 Info 结构的以下数据成员: 别名 继承 必需 未设置 锁定 一旦属性设置,以下数据成员将无法编辑: 类型 标题 标题别名 数组 数组元素索引 单位规格的维度(不能从毫米更改为微安,但从毫米更改为厘米是可以的) 仅当属性不与模板关联时,才能设置和修改以下数据成员: 类别 仅当属性不与模板关联时,才能设置以下属性数据。一旦设置,将无法修改。 数组
创建于 NX8.0.0.

许可需求:无

参数
infoinfo
optionoption

◆ SetInstanceUserAttribute() [6/9]

void NXOpen::Assemblies::Component::SetInstanceUserAttribute ( const NXString & title,
int index,
const NXString & value,
NXOpen::Update::Option option )

创建或修改字符串属性,可选择是否更新。
创建于 NX8.0.0。

许可要求:无

参数
title标题
index索引
value
option选项

◆ SetInstanceUserAttribute() [7/9]

void NXOpen::Assemblies::Component::SetInstanceUserAttribute ( const NXString & title,
int index,
double value,
NXOpen::Update::Option option )

创建或修改实型属性,可选择是否更新。
创建于 NX8.0.0。

许可要求:无

参数
title标题
index索引
value
option选项

◆ SetInstanceUserAttribute() [8/9]

void NXOpen::Assemblies::Component::SetInstanceUserAttribute ( const NXString & title,
int index,
int value,
NXOpen::Update::Option option )

创建或修改整型属性,可选择是否更新。
创建于 NX8.0.0。

许可要求:无

参数
title标题
index索引
value
option选项

◆ SetInstanceUserAttribute() [9/9]

void NXOpen::Assemblies::Component::SetInstanceUserAttribute ( const NXString & title,
int index,
NXOpen::Update::Option option )

创建或修改空属性,可选择是否更新。
创建于 NX8.0.0。

许可要求:无

参数
title标题
index索引
option选项

◆ SetInstanceUserAttributeLock() [1/2]

void NXOpen::Assemblies::Component::SetInstanceUserAttributeLock ( const char * title,
NXOpen::NXObject::AttributeType type,
bool lock )

锁定或解锁给定属性。 对于数组属性,标题应设置为数组标题,不附加索引。 单个数组元素不能单独锁定
创建于 NX8.0.0。

许可要求:无

参数
title标题
type类型
lock锁定

◆ SetInstanceUserAttributeLock() [2/2]

void NXOpen::Assemblies::Component::SetInstanceUserAttributeLock ( const NXString & title,
NXOpen::NXObject::AttributeType type,
bool lock )

锁定或解锁给定属性。 对于数组属性,标题应设为数组标题,不带附加索引。 单个数组元素无法单独锁定
创建于NX8.0.0。

许可要求:无

参数
titletitle
typetype
locklock

◆ SetLayerOption()

void NXOpen::Assemblies::Component::SetLayerOption ( int layer)
   设置图层选项。这控制组件的几何体在其父部件中显示的图层。


Created in NX3.0.0.

License requirements : assemblies ("ASSEMBLIES MODULE")

参数
layer此组件在其父部件中的新图层 -1 表示使用组件部件中定义的原始图层设置。 0 表示使用当前工作图层。 1-255 表示使用指定图层。

◆ SetPartFamilyInstanceSelectionCriteria()

void NXOpen::Assemblies::Component::SetPartFamilyInstanceSelectionCriteria ( NXOpen::PartFamily::InstanceSelectionCriteria * selectionCriteria)

NXOpen::PartFamily::InstanceSelectionCriteria 挂钩到此组件
创建于 NX9.0.0。

许可要求:solid_modeling("实体建模")

参数
selectionCriteria选择条件

◆ SetPositioningIsolated()

void NXOpen::Assemblies::Component::SetPositioningIsolated ( NXOpen::Assemblies::Arrangement * arrangement)

将所选 NXOpen::Assemblies::Component 的定位在指定的 NXOpen::Assemblies::Arrangement 中设置为隔离。 该布置必须是定义在与组件相同部件中的隔离布置。
创建于NX9.0.1。

许可要求:装配("ASSEMBLIES MODULE")

参数
arrangement要在其中将定位设置为隔离的 NXOpen::Assemblies::Arrangement 。此 NXOpen::Assemblies::Arrangement 必须是隔离的 NXOpen::Assemblies::Arrangement

◆ SetPositioningVaried()

void NXOpen::Assemblies::Component::SetPositioningVaried ( const std::vector< NXOpen::Assemblies::Component * > & components,
bool setAsVaried )

为选定的 NXOpen::Assemblies::Component 在所有可能的 NXOpen::Assemblies::Arrangement 中设置定位。定位可以设置为在所有 NXOpen::Assemblies::Arrangement 中相同(set_as_varied = FALSE), 或在每个布置中单独定位(set_as_varied = TRUE)。
Created in NX7.5.2.

License requirements : assemblies ("ASSEMBLIES MODULE")

参数
components将要更改定位的组件。
setAsVaried如果为 FALSE,组件在所有 NXOpen::Assemblies::Arrangement 中具有相同位置; 为 TRUE 则允许位置变化。

◆ SetUsedArrangement()

void NXOpen::Assemblies::Component::SetUsedArrangement ( NXOpen::Assemblies::Arrangement * newArrangement)
   更改此组件使用的布置。如果这是根组件(即没有父组件),则相当于在所有者中设置活动布置。
   (参见 @link NXOpen::Assemblies::Component::DirectOwner NXOpen::Assemblies::Component::DirectOwner@endlink 和
   @link NXOpen::Assemblies::ComponentAssembly::SetActiveArrangement NXOpen::Assemblies::ComponentAssembly::SetActiveArrangement@endlink 。)
   对于非根组件,这将在其父组件上下文中设置此组件使用的布置。注意,此方法应仅用于具有子组件的组件。


Created in NX3.0.0.

License requirements : assemblies ("ASSEMBLIES MODULE")

参数
newArrangement新的 NXOpen::Assemblies::Arrangement 。 此布置必须定义在此组件的原型部件的组件装配中。

◆ Subset()

NXOpen::Assemblies::Subset * NXOpen::Assemblies::Component::Subset ( )

返回 与此组件对应的 NXOpen::Assemblies::Subset 。 如果组件不是子集,则可能为 NULL。
创建于 NX8.5.0。

许可要求:无

◆ Suppress() [1/2]

void NXOpen::Assemblies::Component::Suppress ( )
   在包含其控制布置的组件装配中抑制该组件。
   该组件将在组件装配中的所有布置中被抑制,而不仅仅是在控制布置中。
    <br> 这相当于调用: <br>
    <br> @link NXOpen::Assemblies::Component::SuppressingArrangement NXOpen::Assemblies::Component::SuppressingArrangement@endlink  <br>
    <br> @link NXOpen::Assemblies::Arrangement::Owner NXOpen::Assemblies::Arrangement::Owner@endlink  <br>
    <br> @link NXOpen::Assemblies::ComponentAssembly::SuppressComponents NXOpen::Assemblies::ComponentAssembly::SuppressComponents@endlink  <br>


Created in NX3.0.0.

License requirements : assemblies ("ASSEMBLIES MODULE")

◆ Suppress() [2/2]

NXOpen::ErrorList * NXOpen::Assemblies::Component::Suppress ( const std::vector< NXOpen::Assemblies::Component * > & components)
   在包含其控制布置的组件装配中抑制一组组件。该组件将在组件装配中的所有布置中被抑制。
    <br> 这相当于调用: <br>
    <br> @link NXOpen::Assemblies::Component::SuppressingArrangement NXOpen::Assemblies::Component::SuppressingArrangement@endlink  <br>
    <br> @link NXOpen::Assemblies::Arrangement::Owner NXOpen::Assemblies::Arrangement::Owner@endlink  <br>
    <br> 然后调用: <br>
    <br> @link NXOpen::Assemblies::ComponentAssembly::SuppressComponents NXOpen::Assemblies::ComponentAssembly::SuppressComponents@endlink  <br>
   在组件数组上。注意,所有组件应具有相同的抑制控制布置。
@return  抑制过程中遇到的错误列表


Created in NX3.0.0.

License requirements : assemblies ("ASSEMBLIES MODULE")

参数
components要抑制的组件。每个组件将在其控制布置中被抑制。 注意,这些组件必须都位于同一装配体下。

◆ SuppressingArrangement()

NXOpen::Assemblies::Arrangement * NXOpen::Assemblies::Component::SuppressingArrangement ( )

返回 控制此组件抑制状态的 NXOpen::Assemblies::Arrangement 。控制布置将定义在此组件上方树中的 NXOpen::Assemblies::ComponentAssembly 中。
注意:在当前版本中,布置仅用于控制组件的抑制状态。在未来的版本中,将通过布置控制更多属性。

创建于NX3.0.0。

许可要求:装配("ASSEMBLIES MODULE")

◆ Unsuppress() [1/2]

void NXOpen::Assemblies::Component::Unsuppress ( )
   在包含其控制布置的组件装配中取消抑制该组件。
   该组件将在组件装配中的所有布置中被取消抑制。
    <br> 这相当于调用: <br>
    <br> @link NXOpen::Assemblies::Component::SuppressingArrangement NXOpen::Assemblies::Component::SuppressingArrangement@endlink  <br>
    <br> @link NXOpen::Assemblies::Arrangement::Owner NXOpen::Assemblies::Arrangement::Owner@endlink  <br>
   @link NXOpen::Assemblies::ComponentAssembly::UnsuppressComponents NXOpen::Assemblies::ComponentAssembly::UnsuppressComponents@endlink


Created in NX3.0.0.

License requirements : assemblies ("ASSEMBLIES MODULE")

◆ Unsuppress() [2/2]

NXOpen::ErrorList * NXOpen::Assemblies::Component::Unsuppress ( const std::vector< NXOpen::Assemblies::Component * > & components)
   在包含其控制布置的组件装配中取消抑制一组组件。该组件将在组件装配中的所有布置中被取消抑制。这等效于调用:
    <br> @link NXOpen::Assemblies::Component::SuppressingArrangement NXOpen::Assemblies::Component::SuppressingArrangement@endlink  <br>
    <br> @link NXOpen::Assemblies::Arrangement::Owner NXOpen::Assemblies::Arrangement::Owner@endlink  <br>
    <br> @link NXOpen::Assemblies::ComponentAssembly::UnsuppressComponents NXOpen::Assemblies::ComponentAssembly::UnsuppressComponents@endlink  <br>
   作用于该组件数组。注意所有组件应具有相同的抑制布置。
@return  取消抑制过程中遇到的错误列表


在 NX3.0.0 版本中创建

许可要求:assemblies ("ASSEMBLIES MODULE")

参数
components要取消抑制的组件。每个组件将在其控制布置中被取消抑制。注意这些组件必须都位于同一装配下

◆ UpdateStructure() [1/2]

void NXOpen::Assemblies::Component::UpdateStructure ( const std::vector< NXOpen::Assemblies::Component * > & components,
int nLevels )

在显示部件的上下文中,将此装配的装配结构更新到指定层级数,忽略先前调用已处理过的组件。
在 NX4.0.0 版本中创建

许可要求:gateway ("UG GATEWAY")

参数
components从此处开始更新结构的组件标记
nLevels要更新的层级数。如果为-1则更新所有层级。

◆ UpdateStructure() [2/2]

void NXOpen::Assemblies::Component::UpdateStructure ( const std::vector< NXOpen::Assemblies::Component * > & components,
int nLevels,
bool checkComponentsVisited )

在显示部件的上下文中,将此装配的装配结构更新到指定层级数。
在 NX4.0.1 版本中创建

许可要求:gateway ("UG GATEWAY")

参数
components从此处开始更新结构的组件标记
nLevels要更新的层级数。如果为-1则更新所有层级。
checkComponentsVisited如果为 true,则在此会话中每个组件仅执行一次更新结构。

◆ UsedArrangement()

NXOpen::Assemblies::Arrangement * NXOpen::Assemblies::Component::UsedArrangement ( )

返回 此组件使用的布置。参见 NXOpen::Assemblies::Component::SetUsedArrangement
Created in NX3.0.0.

License requirements : assemblies ("ASSEMBLIES MODULE")

类成员变量说明

◆ value [1/3]

const NXString& NXOpen::Assemblies::Component::value

◆ value [2/3]

double NXOpen::Assemblies::Component::value

◆ value [3/3]

int NXOpen::Assemblies::Component::value