Vectorworks 2011 introduced the ability to use an ODBC (Open Database Connectivity) interface to communicate with external databases. To use this functionality; ODBC drivers and an ODBC manager are required.
Windows:

Start ODBC Administrator:
- 32bit version: \Windows\SysWOW64\odbcad32.exe;
- 64bit versiom: \Windows\System32\odbcad32.exe.
On the ‘System DSN’ tab click on ‘Add…’ and a dialog ‘Create New Data Source’ will open. Choose ‘MySQL ODBC 5.1 Driver’ or other version of MySQL Driver and click ‘Finish’. A dialog will open and enter Data Source Name, e.g. ‘MySQL Test’, enter the IP of the server. If the server is localhost, enter 127.0.0.1 and port 3306. Select the database ‘test’ and test the connection.
If the test succeeded close the dialog and ODBC Administrator with OK. Start Vectorworks and go to Tools > Database > Manage Databases. Click on Connect button and choose the DSN ‘MySQL Test’ from the popup. Close the dialog with OK and the connection is established. Mark a column as a key and close the dialog with OK.

Create the following record format and map its fields to the database columns:

Close the dialog with OK and draw a rectangle. Go to data pane in the OIP and attach record Space to it. Go to Tools > Database > Object Connection and select a row from the table:

Close the dialog with OK and execute Tools > Database > Update Vectorworks Document and look at the data pane. The record instance is updated. Use Tools > Database > Update External Database to update data in the external database.


If you need to install MySQL Driver on MacOS download and install http://mirrors.cogentco.com/pub/mysql/Connector-ODBC/5.1/mysql-connector-odbc-5.1.7-osx10.6-x86-32bit.dmg. Start ODBC Manager and go to Drivers tab. If there isn't MySQL ODBC 5.1 Driver click on 'Add...' and type driver name 'MySQL ODBC Driver 5.1 Driver', type in 'Driver File' field /usr/local/lib/libmyodbc5.so and for 'Setup File' /usr/local/lib/libmyodbc3S.so. Close the dialog with OK.
To create a DSN start ODBC Manager and on System DSN click 'Add...', choose MySQL ODBC 5.1 Driver and click OK. If 'Connector/ODBC' dialog appear type data source name, e.g. 'MySQL Test', server 192.168.180.45 in our case, 127.0.0.1 for localhost, user and password and the database you are going to use. In our case 'test'. Test the connection and if it is successful close the dialog with OK.

If a standard dialog appears type a name for the datasource, e.g. 'MySQL Test' and add the following keywords:
SERVER=
PORT=3306
DATABASE=

Close the dialog with OK and start Vectorworks. Go to Tools > Database > Manage Databases. Click on Connect button and choose the DSN ‘MySQL Test’ from the popup, enter username and password. Close the dialog with OK and the connection is established. Mark a column as a key and close the dialog with OK.
Create the following record format and map its fields to the database columns:

Close the dialog with OK and draw a rectangle. Go to data pane in the OIP and attach record Space to it. Go to Tools > Database > Object Connection and select a row from the table:

Close the dialog with OK and execute Tools > Database > Update Vectorworks Document and look at the data pane. The record instance is updated. Use Tools > Database > Update External Database to update data in the external database.
