News:

Please remember to do a search before you ask a question!

Main Menu
TurboCAD 2026 Platinum box
Now available

TurboCAD 2026.2

The latest update for TurboCAD 2026. It installs over any 2026 build and keeps your activation, drawings and settings. Get it from the Start Page or Help > Check for Update.

Import Data Base Tables and Custom Fields

Started by jasbrou, February 02, 2018, 07:20:54 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jasbrou

In TC 2016, I created custom data fields in an objects Custom Properties, which included things like Quantity, Description, Length, Weight, etc.
that were then used to create reports and BOM tables.
My question is, How can I import those data field presets and tables into TC 2017 without having to re-define the various fields and not have to recreate custom tables and reports.

jasbrou

I answered part of my question. I walked away from my PC for a break and it occurred to me to use a template from 2016. That gives me all the custom fields and tables I previously setup in 2016. All I need now is to import the custom reports from 2016, or do I have to re-create those?

nikkipollard

#2
another way is to use an external database with the database connect tool. I like this method because it creates the fields automatically. You can also have a list of all the properties already defined and just link to them - no more typing the same thing over and over again. If you have a new item just type it in via the database connect tool and it will remember it in new drawings.

https://turbocaddoc.atlassian.net/wiki/spaces/TC2016UG/pages/43811164/Database+Connection+Palette

https://turbocaddoc.atlassian.net/wiki/spaces/TCADLTE5/pages/538996/Linking+Data+to+Graphics

I use Microsoft access. You can still use it if you don't have it on your computer. Save one of your reports as a Microsoft access file and then link to that. All the editing is done in Turbocad anyway.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

jasbrou

#3
Thanks, Nikki.
After I got my template setup and was able to access my custom fields and tables, running a report was fairly simple.
But this is definitely something I need to look into. Might take a while to set up properly but should shorten time spent doing things over and over in drawings.


nikkipollard

10 minutes? - the way I see it is you have already done most of the work.

Open one of your existing drawings with everything defined (the more components it has the better).
Create a summary report. Under advanced report change report header to "ID"
Click on the export icon to save. Instead of saving to excel (default) save to microsoft access (*.mdb). In a location that is easy to find. Find it in File Explorer and copy the address.
In the database connect palette
Right click on "DataSources" and add a Data source. Give it a name and click ok.
Choose the microsoft office access database engine. (If it isn't there you might need to download it from the internet)
Click on next
Paste the address in data source then type \(name of file).mdb
Click on test connection - if it succeeds click ok

you are almost  connected -
Double click on your datasource a table should appear with everything you previously defined.
Right click on the datasource and export it so that you don't have to go through that whole rigmarole again.

Edit the table to change the Id - I use consecutive numbers. Any changes you make will be made to the database file.

To use the table in any drawing you need to double click on the datasource. (if it is not there reload it)
Click on the table and click the "create link template" icon. Give it a name and click OK
For your key column select "id"
and the value select the rest.
Select the item(s) in the drawing and the corresponding entry on the table (you can add to the table if needed- new entries will be remembered in future drawings)
click on create link
and then Synchronize data.

The custom data of the item is now linked to the table - if you edit that entry in the table the custom data will change when you synchronise.
If you want to keep the custom properties but remove the link detach the link in custom properties. Or click on the link template and right click to remove the link.

If you have block attributes in a block that correspond to your headings the block attribute will change and a custom property will not be created.  (which can be very useful too)

Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

jasbrou

#5
It had been months since I used TCAD for anything other than 2D profiles for plasma or water jet cutting. So when I returned to 3D modeling I assumed that the BOM reports I had created in previous TCAD (2015,2016) were complicated. But I only use a few custom fields for my BOM, such as item#, description, length and weight. These I attach to each item through the custom tab of the properties dialog. Since I was able to import the defined fields and table styles from previous TCAD into 2017, all I needed was to run a summary report to create the tables.
I see that with the data base connect tool allows for much more predefined info. Something I may pursue as my drawings become increasingly complicated.
I should note that I am not using TCAD for architectural drawings, but rather frames and carriers for various power units and equipment.

Thank you for your help.

edit: I attached a sample drawing of what I was working on. This design gat scrapped be cause we were given the wrong foot print allowed. Now I have to start over and everything has to fit in a 30"x60" foot print.