Beispiel U-1: Benutzerdefinierte Objekteigenschaft

Aus Asprova Hilfe
Version vom 1. Juli 2019, 18:04 Uhr von GK (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „{{DISPLAYTITLE:Beispiel U-1: Benutzerdefinierte Objekteigenschaft}} <div align="right">Hilfe Nummer: 927000</div> <div align="right">Beispiele Übersicht|Üb…“)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Wechseln zu: Navigation, Suche
Hilfe Nummer: 927000
Übersicht Beispiele

Übersicht

This sample is sample data for learning additional functions of object type user properties added in Ver.15.2.

Was sind Objekteigenschaften?

An object type property is, for example, the order table item (Order_Item) property. In the Properties window, black arrows are displayed as the order’s properties, and you can click them to display the item’s properties. You can acquire the item name of items set in an order by writing ME.Order.Order_Item.Item_Name or ME.Order.Item.Name in the expression.

Object type properties, with some exceptions, have reverse properties. For example, the reverse property of an item in the order table is “Orders which use this item” (Order_Item_Rev). This property is available in the link tab of the properties window. If one of the object type properties is deleted, the reverse property is also automatically deleted.

Starting with Ver. 15.2, object type properties can be added in each table by the user. These are called object type user properties.

Vorteile

  • Allows one to select objects from a combo box in all kinds of table, simplifying data entry.
  • Of course, users can also select objects in user-added tables.
  • Allows one to write expressions that speed up execution.
  • Shorter expressions can be written.

Variante 1 - Add an object type user property to the integrated master table so that specifications can be selected for each master use instruction

Specifications can be specified for orders, items, and resources. If you set specifications for resources, only operations that match the specifications of the order or item will be assigned.

Here we will consider an example where this specification cannot be determined by resources alone but depends on the integrated master. In this sample data, container sizes (SS / S / M / L) and bottle capacities are defined in the Specification 1 table. Bottle capacities are a float type user property.

Spezifikationscode Flaschengröße (ml)
SS 100
S 200
M 300
L 400

Packers 1, 2 and 3 in the filling process have the following limitations with regard to the size of the containers that can be filled.

	ProductA	ProductB

Machines S and under SS and under Packer 2 M and under L and under Filling machine 3 All All


In other words, since producible specification 1 depends on the item, specification 1 cannot be set for resources. Try adding an object type user property to the master use instruction class of the integrated master. The method for doing this is as follows.

From the popup menu of the column headers of the integrated master table, select [Column Settings].


There is no big problem in selecting "All instruction types" in the select box in the middle, but since this is only set for the master use instruction, select Master use instruction. For details, refer to “Adding a new property in the integrated master editor table”.


Specify “Object” for the data type, entering the information as follows.


Once the dialog is closed by pressing the OK button and the column settings are adjusted, the "Specification 1" column is displayed as shown below. Since this property is an object type, a list of the objects in the Specification 1 table is displayed in the select box by clicking a cell or by pressing the ALT and ? keys.


Then, set the valid condition expression for comparing the bottle capacity being assigned and the producible bottle capacity of each resource in the valid condition expression. ME is a split operation, and HOLDER is the master use instruction of the integrated master. ME.Order.Spec1.BottleSize<=HOLDER.Spec1.BottleSize

Even in past versions, this could be realized by adding the string-type user property Spec1Code to a use instruction of the Integrated Master and describing the following valid condition expression. ME.Order.Spec1.BottleSize<=PROJECT.Child['Spec1'].Child[HOLDER.Spec1Code].Spec1User_BottleSize However, this method has the following disadvantages.

   The combo box for selecting objects in the Specification 1 table is not displayed.
   Processing time is extended depending on the number of objects of Specification 1 in order to search for objects in the Specification 1 table.
   The length of the expression makes it difficult to read.

In the Specification 1 table, the reverse property "Master use instruction" is displayed. In this sample, this reverse property is not used.


By rescheduling, you can see that the container size constraints you have set are met.


Setting 2 Add an object type user property to the resource table and display load graph on resource Gantt chart

The "standard" style of the resource Gantt chart for this sample data allows you to drill down to see the load graph. This also uses object type user properties.


The method for doing this is as follows. First, in the resource table or resource Gantt chart, launch the Column Settings dialog and add the object type user property.


Next, enter ME in the virtual property expression for this property. You can set this either from the resource table or the resource Gantt chart.


Next, set “Hierarchy Properties” (ASGTableViewProps_HierarchySetting) on the Table tab in Display Settings of the resource Gantt chart.



Click the black arrow of the Hierarchy Properties object, display the “Hierarchy Properties” property window, and set “Load amount graph” in “Hierarchy row display content” (ASGHierarchySetting_RowContent).


In this way, you can display yourself in the hierarchically displayed rows. Although you can also display additional load ratio graph rows from the right-click menu as shown below, this method cannot save the additionally displayed rows in Styles.


Praktische Anwendung

Besides the above two setting examples, object type user properties can be applied to various situations such as creating skill maps of workers in the user table and referencing this from valid condition expressions of the Integrated Master. Next, we will introduce a sample that generates rework orders by applying the function to automatically generate objects.


Hilfe Nummer: 927000