Custom Object Properties
Custom Object Properties are similar in functionality to Labels. However, custom properties are attributes of Objects rather than Work Items.
This feature allows any simulation object to hold information about that object in a similar way to labels do for Work Items.
Custom Properties can be accessed from the Visual Logic tab. There you can create a new property by clicking “New” on the dialog, and by ticking the checkboxes of each Object it applies to. In the following example we have created a Custom Property called “Department” that is assigned to Activities 1 and 2.
If you have many Objects to attach a Custom property to, you can do this faster though Visual Logic. The Create Custom Property and Attach Custom Propertycommands are useful for this. An example of their use is the following:
This example shows how a Custom Property is created through Visual logic, and how it is attached to each Activity via the LOOPOBJECT command.
A numeric value attributed to each Object automatically, you can assign Custom Properties specifically to the Objects of your choice. For instance, you may have Dummy Activities that don’t need Custom Properties, but you may instead wish to attach your Custom Property to the rest of the Activities. One way to do this, is to loop through the selected Objects. First, select your Objects of interest by drawing a rectangle around them with the mouse and then use the Loop on selected Object command:
You can reference Custom Properties through Visual Logic in the same way as you can identify all the default object properties. The property should be referenced in the following way:
The value of a Custom Property for an Object can be viewed in the Watch Window and in Quick View.
In Simul8 2008 and more recent versions, the Custom Properties functionality has been expanded to allow users to view any Custom Properties through the Input Summary. The Custom Properties of the object can be viewed by selecting the object type (for example Queues) and scrolling to the right of the properties table.
Custom Properties are only available in Simul8 Professional.