Arbortext IsoDraw > Macro Language Reference > Menu Commands > Objects Menu > Create Object_attribute
  
Create Object_attribute
CREATE OBJECT_ATTRIBUTE creates a new attribute for the object info of a given element.
CREATE OBJECT_ATTRIBUTE“name”“type”element
name
Name of the new attribute as string.
type
Type of the new attribute. Possible data types are INTEGER, FLOAT, STRING and LINK where the LINK is just a special string.
element
Element which should get a new attribute to its object info. The element must already have an object info (see Create Object_info).
MACRO Create Object Info

DEFINE el AS element
el = CREATE ELLIPS 100 100 100 90 90
CREATE OBJECT_IONFO el

CREATE OBJECT_ATTRIBUTE "Title" "string" el
el.info.attributes["Title"].value = "IsoDraw"

CREATE OBJECT_ATTRIBUTE "Stock" "integer" el
el.info.attributes["Stock"].value = 10

CREATE OBJECT_ATTRIBUTE "URL" "link" el
el.info.attributes["URL"].value = "http://www.itedo.com"

END MACRO