Sketch Exporting

This page describes the various ways of exporting an Easik sketch.

Exporting a Sketch to an SQL Server

This action is started by right clicking on the desired sketch from the overview and selecting Export to SQL server from the popup menu. If there is currently no active connection to a database, the user is prompted for connection information and database parameters. The following is a list of the database parameters.

Database Parameters

Once a connection is established, the sketch (and its views) are converted to SQL code (see notes on shadow edges) and sent to the server. The database is created and the sketch is opened in data manipulation mode. The user can now interact with the new database. Note that this export action can also be found in the file menu of the sketch window - File | Export to | SQL server.

Exporting a Sketch to XML

To export a sketch to an XML file, right click on its representation in the overview and select Export sketch to XML from the popup menu. The action can also be fired through the menu bar in the sketch window - File | Export to | XML. Select where the XML is to be saved and click OK. Note that all views of this sketch are automatically exported. Note also that these XML files are given a .sketch extension. See import sketch for details on importing.

Exporting a sketch to an SQL Text File

This action can be fired from the file menu of the sketch window - File | Export to | SQL text file. The following steps are then taken to export the sketch to an SQL text file.

  1. Select SQL dialect (MySQL or PostgreSQL).

  2. Select database parameters.

  3. Enter database connection options

    • Database name: The name used for the new database.

    • Schema name (PostgreSQL only): The name used for the new schema.

    • Identifier quoting: See identifier quoting for details.

  4. Select where the SQL text file is to be saved and click OK. See shadow edges for details on auto-generated SQL code.

Export a Sketch to Image File

This action can be fired from the File menu in the sketch window - File | Export to | Image. Select where to save the image file and click OK. The default image type is png. The image type is specified by including its extension in the filename. Supported image types are png, jpeg, gif, and bmp.