News:

Be sure your post is relevant to the current discussion.  Create a new topic within the appropriate board if you are unsure.

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.

Creating 2D recangles with data from excel (LxW plus some text fields)

Started by jari2023, September 10, 2015, 03:42:55 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

jari2023

I cant get it done, don't know where to start.

I have a list of data records in excel, data exist of:
Length x Width x Height(no need for drawing) / weight in mt (int)

I need these to be drawn in an new drawing all rectangles nicely organized and with following text showing "LxWxH/weight.

Then I need custom properties with same L -W - H and the weight

Is there anybody out there who know how to do this (pro or hobbyist)

Pls help

thanks, stef

Jeff_in_90620

I'm replying to this thread because I want to learn how to do it, too.

Jeff
Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

Andy H

Welcome Stef

I'm a hobbyist :)  I assume you would like the object and text creation to be automatic (or you would simply draw them and put in the text).

A few things, first, more information please on what you wish to achieve, putting any object into TC requires a start coordinate, is that in the Excel file, one would also need to know how the objects line up, top to bottom, right to left edges, corners, if you have a picture of what you wish to achieve it would help. 

Next, TC cannot natively do what you require, it would need programming in ruby (TC Pro), VB, VBA (from excel) etc. however in order to make any sense in TC one would also need the coordinates of where objects should appear, in theory the text part shouldn't be too much of a problem but putting it in the custom fields may be a problem.

Lastly for now you may be better posting this (or a link to this thread) in the SDK section of this forum - where the programmers sometimes visit.

If I have totally misunderstood your requirements please say so.

Dean

Quote from: jari2023 on September 10, 2015, 03:42:55 AM
I cant get it done, don't know where to start.

I have a list of data records in excel, data exist of:
Length x Width x Height(no need for drawing) / weight in mt (int)

I need these to be drawn in an new drawing all rectangles nicely organized and with following text showing "LxWxH/weight.

Then I need custom properties with same L -W - H and the weight

Is there anybody out there who know how to do this (pro or hobbyist)

Pls help

thanks, stef

Perhaps you might find this helpful.
1) Entity marks with walls. (see attached video). Wall  > PSD (property set definition)  These are parametric meaning that the values (automatic property definitions) stay active with the object. You can assign (manual definitions) but these need to be changed manually.
2) If you have Microsoft Access you can create an.mdb file from your excel file that can be used in the database connect palette >  you could then use label templates.There are many options with the database tools.
"What do I know, I'm still learning".
Lenovo Legion T5  Intel(R) Core(TM) i7-14th Gen 20 cores Nvidia RTX 4070 Super 16GB Windows 11 home TurboCad 2025 with Animation Lab 6.0