Table of Contents

Interface INamedAttribute

Namespace
CADability
Assembly
CADability.dll

All Attributes for IGeoObject objects (e.g. Layer) are identified by name. They all implement this interface

public interface INamedAttribute

Properties

Name

The unique name of the attribute

string Name { get; set; }

Property Value

string

Parent

The list that contains this attribute (may also be null)

IAttributeList Parent { get; set; }

Property Value

IAttributeList

Methods

GetSelectionProperty(string, Project, GeoObjectList)

Gets a selection property to select an appropriate attribute from a list. The current attribute can be retrieved by calling IGeoObject.GetNamedAttribute(key) and set by calling IGeoObject.SetNamedAttribute(key, newValue). List list of available properties should be retreived for the project by calling IAttributeListContainer.GetList(key).

IPropertyEntry GetSelectionProperty(string key, Project project, GeoObjectList geoObjectList)

Parameters

key string

The unique key of the attribute

project Project

The project that contains the attributeList

geoObjectList GeoObjectList

The objects that keep the attribute

Returns

IPropertyEntry