Home > Getting Started Guide > Application Interface
Attributes
Attributes are a specialized type of entity used to attach data to entities; any entity may have zero or more attributes. Attributes can carry simple data, pointers to other entities, or links to application specific variable length data. ACIS uses many system attributes, but applications may also define their own attributes.
The ATTRIB base class in kern provides the data and functionality that all attributes share, for both user-defined attributes and system attributes. The ATTRIB class is derived from the ENTITY class, and performs housekeeping operations to maintain attribute lists attached to model entities.
In ACIS, the most common types of entities to have attributes attached are topological entities (implemented in the various topology classes), and many of the methods of the ATTRIB class are designed with this in mind. However, attributes can be attached to any type of entity.
Organization attribute classes are always the first level of derivation from the ATTRIB class. (This is similar to the organization class for derivations from ENTITY.) Classes for specific attributes are derived from the organization attribute classes.
Application-defined attributes allow you to extend an ACIS geometric model into a true product model. Application developers can derive their own attribute classes from the ACIS ATTRIB class to attach application specific data to entities. The examples at the end of this topic show how to derive new attribute classes.
ACIS also provides Generic Attributes, which provide storage for basic types of data. Generic Attributes are useful because they provide a quick and convenient way for applications to store data on entities without having to implement their own attribute. Generic Attributes are implemented with the ATTRIB_GENERIC class and its derivations. Refer to Generic Attributes for information.
The PART class also provides basic attribute support. A generically-named attribute class assigns an attribute with a name (a text string) and a value (number, position, or text) to any entity. There are also functions for selecting entities based on these attributes.
Topics include:
- Types of Attributes
- Attribute Notification Methods
- How ACIS Uses Attributes
- Attribute Pointers
- Special Characters in Saved Attributes
- Attribute Derivation
- Attribute Derivation Macros
- Creating an Organization Attribute Class
- Creating a Specific Attribute Class
[Top]
© 1989-2007 Spatial Corp., a Dassault Systèmes company. All rights reserved.