Workbook

Page 90

Learning WITNESS Bi

Attribute Elements Attributes can be defined in the model as new elements – selected from the Attributes designer elements tab. •

Iattr – An integer attribute

Rattr – A real attribute

Nattr – A name attribute

Sattr – A string attribute

Labat – A Labor attribute (set to REAL)

Macat – A Machine attribute (set to REAL)

Note that other types of Labor and Machine attributes are possible too and that Vehicles and Carriers can also have attributes. The key is to define an attribute that is in Group 0 (a setting on an attribute dialog). To define a different one than those supplied in the designer window simply right click in any model display window and choose define – then enter the name, group, quantity and type. Attributes are usually used for simple identification of parts – for example color. A string attribute might be defined called Color. Then in any actions language box the following could be typed to set the attribute: IF UNIFORM(0,1)>0.6 Color=”Red” ELSE Color=”Blue” ENDIF This would set 40% of the parts being processed to Red and 60% to Blue.

LEARNING WITNESS BOOK ONE

ATTRIBUTES

Page 90


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.