ODBC Compatibility - FileMaker Pro

Required knowledge before using ODBC in Vectorworks:

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:

There is an integrated ODBC manager and the ‘Microsoft ODBC Driver Pack’ is available with the OS. To use databases like FileMaker Pro, MySQL, Oracle, FoxPro, etc., additional driver packages must be installed. The ODBC manager is available in Control Panel\Administrative Tools\ and it is called ‘Data Sources (ODBC)’. Take into consideration that in 64bit Windows there are two applications – one 32bit and one 64bit. They work with different ODBC drivers. The ‘Microsoft ODBC Driver Pack’ is not available in 64bit version and by default the list of drivers is empty. So, use the 32bit version of the ODBC manager for common purposes.

The 32bit version is located at \Windows\System32\odbcad32.exe and the 64bit version is located at \Windows\System32\odbcad32.exe.


Mac OSX:

There is no integrated ODBC manager, nor drivers. Additional packages must be installed. Here is an article about ODBC drivers and managers: http://kbase.vectorworks.net/questions/858/ODBC+Driver+Information 

Before you start using Vectorworks a DSNs (Data Source Name) must be created. It is the name that applications use to request a connection to an ODBC Data Source. In other words, it is a symbolic name that represents the ODBC connection. It stores the connection details like database name, directory, database driver, UserID, password, etc. when making a connection to the ODBC.

There are various types of ODBC Data Source Types such as System DSN, User DSN, FIle DSN. The differences between is in the store location and user privileges. Some drivers may not support all types of DSN, so be careful when create one.

On Mac some keywords Establishing ODBC connection in Vectorworks consists of three steps:

1) Connect to DSN: Tools > Database > Manage Databases. On Macintosh use username ‘admin’ with no password if you don’t have one.

2) Create Record Format Database Connection: Tools > Database > Create Record Format Connection.

3) Create Object Database Connection: Tools > Database > Object Connection.

Windows - Using ODBC to connect to Filemaker Pro files:

FileMaker Pro software and FileMaker ODBC driver are required. For purposes of this article a sample file ‘TestDatabase.fp7’ was created with a sample table:

 odbc filemaker win1.png

Start FileMaker Pro and open the file. Go to File > Sharing > ODBC/JDBC and turn on ODBC/JDBC Sharing for this file. Close the dialog with OK and do not close anything. Start 32bit version of ODBC Administrator, located at \Windows\SysWOW64\odbcad32.exe. On the ‘System DSN’ tab click on ‘Add…’ and a dialog ‘Create New Data Source’ will open. Choose ‘FileMaker ODBC’ and click ‘Finish’. A wizard will start. Follow it and during steps enter a name for the data source, e.g. ‘FM Test’, enter the IP of the machine, where the FileMaker is running (‘localhost’ if the application is running on the same machine). Turn on ‘Connect to host to obtain the names of available databases’, select the Database and finish the wizard.

Close the ODBC Administrator with OK. Start Vectorworks and go to Tools > Database > Manage Databases. Click on Connect button and choose the DSN ‘FM Test’ from the popup, use ‘admin’ as username if you don’t use something else and close the dialog with OK. The connection is established. Mark a column as a key and close the dialog with OK.

 odbc filemaker win2.png

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

 odbc filemaker win3.png

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:

 odbc filemaker win4.png

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.

 odbc filemaker win5.png

Mac OSX - Using ODBC to connect to Filemaker Pro files:

FileMaker Pro software, FileMaker ODBC driver and ODBC Manager are required. For purposes of this article a sample file ‘TestDatabase.fp7’ was created with a sample table:

odbc filemaker mac1.png

Start FileMaker Pro and open the file. Go to File > Sharing > ODBC/JDBC and turn on ODBC/JDBC Sharing for this file. Close the dialog with OK and do not close anything. Start ODBC Manager and on System DSN click Add. Choose FileMaker ODBC driver from the list and click OK. A wizard will start and following steps enter name for the data source, e.g. 'FM Test', enter the IP of the machine where FileMaker is running (write 'local' if the machine is the current machine) as Host and turn on 'Connect to host to obtain the names of available databases.'. Then select the database 'TestDatabase' and finish the wizard.

Start Vectorworks and go to Tools > Database > Manage Databases. Click on Connect button and choose the DSN ‘FM Test’ from the popup, use ‘admin’ as username if you don’t use something else and close the dialog with OK. The connection is established. Mark a column as a key and close the dialog with OK.

odbc filemaker mac2.png

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

odbc filemaker mac3.png

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:

odbc filemaker mac4.png

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.

 odbc filemaker mac5.png


Related Articles

Attachments

No attachments were found.

Visitor Comments

Would you like to...

Print this page  Print this page

Email this page  Email this page

Post a comment  Post a comment

Remove Highlighting Remove Highlighting

Edit this Article

Quick Edit

Export to PDF



Bookmark and Share

User Opinions

100% thumbs up 0% thumbs down (2 votes)

How would you rate this answer?




Thank you for rating this answer.

Continue