Versions Compared

Key

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

...

Similar to the procedures followed to create an image database in the Dataset.QBinaries object, it is possible to create any object in the dataset containing binary data using other than the reserved QBinariesreserved QBinaries,  QBinary and  QBinary and QBinaryID parameters.

Please note that, in order to make any string parameter suitable for the storage of binary data, the only necessary action is to include the @BINARY attribute the @BINARY attribute in the Data slot of the frame. A dataset can be created with the "Parameter to Dataset" menu option. Binary data can be included through the "Dataset>Include Binary Data" menu option after which a file dialog is invoked on the current active project directory and removed by means of the "Dataset>Remove " menu options (shortcut is Ctrl-B). Please note that only parameters of the String type can be used to store binary data.

In this example an object Dataset.RhinoComponents has been created containing the following parameters:

  1. Component$: a string parameter with the @BINARY attributethe @BINARY attribute. In each value cell of this parameter in the Dataset.RhinoComponents an arbitrary file can be stored (see above). If the file is double-clicked or F2 is pressed, it is saved in the currently active project working directory and the associated program is started (in this case Rhino). If the file is changed in the associated tool and saved on the same location under the same name, Quaestor restores this modified file in the selected cell.
  2. Type$: an existing parameter defining the type of component, e.g. a "Hull form", "Crane" etc. This is the first selection key.
  3. Name$: the denominator of the component, e.g. Container vessel or Gantry. This is the second selection key.

...