30.07.2013 Views

T-FLEX Parametric CAD. Fundamentals. 2D Design

T-FLEX Parametric CAD. Fundamentals. 2D Design

T-FLEX Parametric CAD. Fundamentals. 2D Design

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Fundamentals</strong>. Two-Dimensional <strong>Design</strong><br />

Databases by Reference<br />

532<br />

Such databases are provided as an attempt to combine the capabilities of creating and storing data in the<br />

fashion of the external databases, while supporting access as if to an internal database. Upon calling the<br />

command “File|New Database”, the dialog box appears, “Database Properties”, shown above, in which<br />

you enter the database name and a comment. To create a database by reference, set the respective parameter.<br />

This makes two additional items available for editing. The first one is the full path to the location of the<br />

external database of one of the standard formats. (The path includes the database filename.)<br />

To specify the path, pick the button with ellipsis points next<br />

to the “File Name” box. This opens the standard dialog<br />

box “Open Database Source”, where you can browse the<br />

locations and select the file in the required format. Once<br />

you confirmed the selection, you need to additionally<br />

define the table name. Upon the confirmation, the selected<br />

table is displayed in the read-only mode, so that you can<br />

view the table but not edit. Pressing the [ΟΚ] button<br />

confirms creation of the reference to this table .<br />

As a result of the described steps, a reference is created to<br />

an external database, so that its data can be accessed similar<br />

to accessing internal databases, that is, using the name of<br />

the reference similar to the name of an internal database.<br />

The syntax of the function calls remains the same.<br />

Databases referenced to Excel (*.xls) tables require additional preliminary step. In Excel application you<br />

should assign a name to a data block that is planned to be linked with the T-<strong>FLEX</strong>’s database by reference.<br />

Doing so, keep in mind that the first row of the selected<br />

block is considered the header and will not be displayed in<br />

the database being created. (We recommend leaving the<br />

first row empty).<br />

Name the selected block (example: name1)<br />

(“Insert|Name|Define…”).<br />

Create a database by reference in T-<strong>FLEX</strong> <strong>CAD</strong> using the<br />

approach described above, except that in the database<br />

properties define the “Table Name” by the name that you<br />

assigned to the selected block in the (*.xls) file.<br />

As a result, you'll get a table as shown on the diagram.<br />

Creating and Editing External Databases<br />

An external DB differs from an internal DB in that it is saved in a separate file on your hard disk, rather than<br />

together with the drawing. The system provides a special function for accessing data from external databases.<br />

The system supports external databases in dBase format. External databases can be created using the built in<br />

database editor or by any other available means.<br />

Functions for Getting Values from External Databases: DBF () and DBFWIN ()<br />

The functions DBF() and DBFWIN()are provided for getting data from external databases in DBF format.<br />

The difference between the two functions is in the way of handling the ASCII extension fonts. The user

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!