Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Example 2, Use data in the data slot of the parameter with |OPTIONSOPTIONS| script:

As alternative method to select data, in stead of making a reference to an object as done with "DATA#" "ParentShips", you can include the data in the |OPTIONS|….| script of the parameter. This is done in the following example

...

Although the object RhinoComponents contains both Name$ as Type$, it will not ask for the type if a value of Type$ is already available on the location at which a hull form file is required. So, if Type$="Hull form", the option dialog will not present the "Type$" options  options list and only leaves the choice for cases fulfilling Type$="Hull form".

...

The above selection mechanism is enhanced with a mechanism that will immediately export any binary data stored in the final selection result. This implies that in the above example the binary data contained in the selected Component$ case will be exported to the currently active working (project) directory. There can be more than one binary datasets included in a selection; all will be exported assuming they will have unique names. In this way, you can ensure that particular data is available to any used satellite program (in this example the CAD program Rhinoceros) in which it is addressed by a Quaestor-generated script.

The optional @INITIFNOFILE attribute…@INITIFNOFILE attribute… 
In the event that a knowledge base in which the above mechanism with binary data is applied, is copied and a solution is restarted using data already selected in the above described manner, some required files may not be present at the moment of executing a particular script. This may lead to some confusion that can be avoided by adding the @INITIFNOFILE attribute to parameters representing binary objects (such as the above example ComponentFile$). On restarting a solution using an Input object, parameters with the @INITIFNOFILE attribute will be checked on the availability of the file (of which the name is contained in the parameter) on the current project directory. If not available, the value is intialised and the selection dialog is re-invoked. After selection, the file is exported again.

The Input object is another reserved Quaestor object reserved Quaestor object you can define together with the reserved string parameters Value and Parameter parameters Value and Parameter. By doing so, you will have an input recorder for object-related input, a typical requirement of configurator applications.

...