NX Open C++ Reference Guide
Public Member Functions | List of all members
NXOpen::AttributeIterator Class Reference

This class is used to iterate over the user attributes of an object, with options to restrict or extend such searches
Created in NX11.0.0. More...

Inheritance diagram for NXOpen::AttributeIterator:
NXOpen::TransientObject

Public Member Functions

void Reset ()
 Rewind the iterator and return all its constraints to their default values. More...
 
void Rewind ()
 Rewind the iterator. More...
 
void SetIncludeAllCategories ()
 Do not restrict searches to attributes with a previously given category. More...
 
void SetIncludeAlsoUnset (bool includeAlsoUnset)
 Widen (or cancel the widening of) searches to attributes that have not been set, but for which the object has associated templates. More...
 
void SetIncludeOnlyArrays (bool includeOnlyArrays)
 Restricts searches to array attributes. More...
 
void SetIncludeOnlyCategory (const NXString &category)
 Restrict searches to attributes with the given category. More...
 
void SetIncludeOnlyCategory (const char *category)
 Restrict searches to attributes with the given category. More...
 
void SetIncludeOnlyTitle (const NXString &title)
 Restrict searches to attributes with the given title. More...
 
void SetIncludeOnlyTitle (const char *title)
 Restrict searches to attributes with the given title. More...
 
void SetIncludeOnlyType (NXOpen::NXObject::AttributeType type)
 Restrict searches to attributes with the given type. More...
 
void SetIncludeOnlyUnset (bool includeOnlyUnset)
 Restricts (or cancel the restriction of) searches to attributes that have not been set, but for which the object has associated templates. More...
 
virtual ~AttributeIterator ()
 Delete the iterator
Created in NX11.0.0. More...
 
- Public Member Functions inherited from NXOpen::TransientObject
void * GetHandle ()
 Handle of the internal object represented by this object. More...
 

Detailed Description

This class is used to iterate over the user attributes of an object, with options to restrict or extend such searches
Created in NX11.0.0.


Constructor & Destructor Documentation

virtual NXOpen::AttributeIterator::~AttributeIterator ( )
virtual

Delete the iterator
Created in NX11.0.0.



License requirements : None

Member Function Documentation

void NXOpen::AttributeIterator::Reset ( )

Rewind the iterator and return all its constraints to their default values.

This allows the iterator to be safely reused.
Created in NX11.0.0.

License requirements : None

void NXOpen::AttributeIterator::Rewind ( )

Rewind the iterator.

This allows the iterator to be reused with the same constraints.
Created in NX11.0.0.

License requirements : None

void NXOpen::AttributeIterator::SetIncludeAllCategories ( )

Do not restrict searches to attributes with a previously given category.

Note: If this function will allow the iterator to return attributes with any or no category. It can be use to cancel a previous restriction to, for example, attributes with no category.
Created in NX11.0.0.

License requirements : None

void NXOpen::AttributeIterator::SetIncludeAlsoUnset ( bool  includeAlsoUnset)

Widen (or cancel the widening of) searches to attributes that have not been set, but for which the object has associated templates.

Default: Unset attributes (not being there) are not included. Note: 'unset' attributes are really attribute templates that the object has access to, but the object has no corresponding attributes.
Created in NX11.0.0.

License requirements : None

Parameters
includeAlsoUnsetincludealsounset
void NXOpen::AttributeIterator::SetIncludeOnlyArrays ( bool  includeOnlyArrays)

Restricts searches to array attributes.

NOTE: Array attributes with no or just one element are included unless otherwise excluded. . Default: no constraint.
Created in NX11.0.0.

License requirements : None

Parameters
includeOnlyArraysincludeonlyarrays
void NXOpen::AttributeIterator::SetIncludeOnlyCategory ( const NXString category)

Restrict searches to attributes with the given category.

Note: If this function is called with a NULL or empty category, then the search is restricted to attributes that have no assigned category To cancel this restriction, use SetIncludeAllCategories. . Default: no constraint.
Created in NX11.0.0.

License requirements : None

Parameters
categoryThe desired category of the returned attributes
void NXOpen::AttributeIterator::SetIncludeOnlyCategory ( const char *  category)

Restrict searches to attributes with the given category.

Note: If this function is called with a NULL or empty category, then the search is restricted to attributes that have no assigned category To cancel this restriction, use SetIncludeAllCategories. . Default: no constraint.
Created in NX11.0.0.

License requirements : None

Parameters
categoryThe desired category of the returned attributes
void NXOpen::AttributeIterator::SetIncludeOnlyTitle ( const NXString title)

Restrict searches to attributes with the given title.

Note: If this function is called with a NULL or empty title, then iterator will no longer be restricted to a given title. . Default: no constraint.
Created in NX11.0.0.

License requirements : None

Parameters
titleThe desired title of the returned attributes
void NXOpen::AttributeIterator::SetIncludeOnlyTitle ( const char *  title)

Restrict searches to attributes with the given title.

Note: If this function is called with a NULL or empty title, then iterator will no longer be restricted to a given title. . Default: no constraint.
Created in NX11.0.0.

License requirements : None

Parameters
titleThe desired title of the returned attributes
void NXOpen::AttributeIterator::SetIncludeOnlyType ( NXOpen::NXObject::AttributeType  type)

Restrict searches to attributes with the given type.

Default: no constraint.
Created in NX11.0.0.

License requirements : None

Parameters
typeThe desired type of the returned attributes (if not NXOpen::NXObject::AttributeTypeAny )
void NXOpen::AttributeIterator::SetIncludeOnlyUnset ( bool  includeOnlyUnset)

Restricts (or cancel the restriction of) searches to attributes that have not been set, but for which the object has associated templates.

Default: no constraint.
Created in NX11.0.0.

License requirements : None

Parameters
includeOnlyUnsetincludeonlyunset

The documentation for this class was generated from the following file:
Copyright 2017 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.