Accessing attributes

From the model context, By using the model context, you can get or specify the attributes of the models in the context.

Getting attributes

The basic form to obtain the value of an attribute is as follows:

var property = context.get("AttributeName");

you can check all the attributes in "Attribute List".

However, the most progressive eXERD XScript editor offers not only the simple type inference method, but also automatic content assist feature for attribute names or comparison values for the attributes. Therefore, you don¡¯t have to memorize those attributes.

Specifying an attribute

The basic form to specify the value of attribute is as follows:

var property = context.set("AttributeName", AttributeValue);

Of course, while you specify the value of the property, you can utilize the amazing feature of content assist.