...
The user must be able to define a table containing a number of transverse reference planes. In the Domain Expert tutorial, the purpose of entity Transverse planes
is described in detail.
...
Parameter name | Dimension | Determined by | Reference | In Class |
| [#] | VR: User only | Number of instances | General |
| [Str] | VR: User only | Name of object | General |
| [-] | USR: User or system/equation | Case index | General |
| [-] | VR: User only | Frame number | General |
| [mm] | VR: User only | Frame spacing | Dimensions |
| [m] | VR: User only | X position, in longitudinal direction | Dimensions |
Z | [m] | VR: User only | Z position, in vertical direction | Dimensions |
Z
in Horizontal and drop parameters Nr
, Names$
and CaseID
in both Horizontal planes
and Transverse planes
.Frame_Nr
, Frame_spacing
and X
in Transverse planes
.Z
in Horizontal
and drop the other parameters in Transverse planes
.In the Domain Expert version of the tutorial, it was shown that sometimes a user can modify calculated values after they are determined by the system, if this is configured so the the Knowledge Engineer. You . You, as a Knowledge Engineer, can enable this functionality by adding a @MODIFY attribute to the data slot of the parameter.
Volume
in the Knowledge Browser, select the Parameter tab of the Properties window and enter @MODIFY
in the Data field.
...
Loa
in the Knowledge Browser, select the Parameter tab of the Properties window and enter @ORDER:1
in the Data field....
Parameter Nr
will be used to indicate the number of cases (columns) in an entity.
Nr
with the special attribute @NRINST (Data field of Parameter tab in Properties window).The @NRINST attribute tells Quaestor that the value given/calculated for this parameter indicates the number of instances/cases in an object (in this case an Entityentity). TODO ??? (ASR)
It is useful to also provide Nr
with the attribute @INTEGER. The @INTEGER attribute limits input or computed values of the parameter to integer values. If a non-integer value is either computed or provided, the system issues a warning and prompts for other input or for new input of other parameter values that lead to this result. In addition, for this integer value you should change the number of decimal places to 0.
...
The @MULTVAL attribute forces a single value parameter to present itself in table form. The @MULTVAL attribute is used in parameters if you wish to obtain a table which includes all values of these parameters whether they are single values or not. See also the Domain Expert tutorial.
The following parameters need to be shown in the table: Name$
, CaseID
, Frame_Nr
and X
. So you have to set
By doing this, you can see thethese these parameters being moved from list view to table view (you might have to refresh Quaestor with Ctrl+U to redraw the Workbase).
...
X
in entity Transverse planes
in the Workbase:X = Frame_nr * (Frame_spacing/1000)
For each case, representing a transverse reference plane, this relation will be calculated. Parameter Frame_spacing
does not have a @MULTVAL attribute, thus the value provided for Frame_spacing
will be constant for each case.
...
CaseID
in entity Transverse planes
in the Workbase:CaseID = ORCA(1)
The function ORCA(1) returns the current case number (during execution). Later on, this calculated value is used to refer to one of the transverse reference planes.
...
Every entity is automatically created with three parameters, QEntityData
, QEntityID
and QEntityName
. These are hidden from the user output by default. The first one can show behingbehind-the-scenes computed values. In addition, parameters QEntityDoc
and QEntityRef
can also show extra information.
...
Nr
in entity Transverse planes
and select Taxonomy>Instantiate “Nr” (or press Ctrl+E).Now, the background of the this parameter's Properties window for this parameter the textfield turns to changes from white to light yellow. This means that you are now able to set properties and provide a reference text and attributes for the parameter which differ from the global reference text and attributes for this parameter.
...
@WBNAME
:Number of transverse reference planes
Number of transverse reference planes
.Name$
(make it local, @WBNAME
: Name of transverse
reference plane
, reference: Name of transverse reference plane
)...
Z
, CaseID
and Nr
Name$
with the attribute @MULTVAL.Horizontal planes
: Nr
, Name$
, CaseID
, QEntityDoc
and QEntityRef
.Nr
and Name$
in entity Horizontal planes
and provide for both parameters a @WBNAME attribute to define a display name.CaseID = ORCA(1)
....