DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Another noob question - importing Excel spreadsheets

Started by rictheobscene, June 09, 2014, 04:35:21 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rictheobscene

I am 99.9% sure that this is not possible in DesignCAD 3D Max, but I am going to ask nonetheless. Is it possible to import Excel spreadsheets or .csv files into a DesignCAD drawing?

For example, I have a Bill of Materials or Drawing Index that I created in Excel and would like to import it into a DC drawing that has my title block.

Currently, I actually have emulated my title block in an Excel workbook, but it would be nice to have it in one file / package. I also can import it into Visio.

If it can't be done, no big deal, but I thought I would ask.
With Kind Regards:

Ric Kinney (aka Ric(†he)Obscene)

Bob P

You could take a screen shot of your Excel file, edit it down and insert it into your drawing.

Alternately, I did a cut-and-paste of the cells into Multiline Text.  I lost the column alignment though, so it would have to be cleaned up in the Multiline editor.

samdavo

#2
Ric
I find it's pretty easy.
Firstly I attach jpeg of the Excel spreadsheet.
Note that the second column is based on the formula "cell = cell at left + 1"
Also the third column is text and centre-justified.
All cells of interest have a single-line border.  (I found double-lines show as blanks).


Ok simply select the range you want,  Copy it, and Paste it into DCAD.
At this point you have a lot of small vertical lines where you would expect numbers and text.   The overall borders of the table are there copied accurately, including column widths (more or less).

If you try to change/convert all the text at once, they seem to stay as lines (even through Infobox says they are 2D text).

The trick seems to be to select JUST ONE NUMBER/text, (the text "1" in this case), open Infobox, change it to Arial true font (or some other font).  It shows as "1" correctly.

Make sure the text size is right - again, coincidentally (or by design/intentionally?) a height of 1 seems to be right.

Then select the rest, and use SAME AS.
Everything changes to numbers and text. 
A small vertical shift is required to place all the numbers (as a set) centrally in the cells of the table as they were in Excel.

Numbers that were right-justified stay right justified (whether "value" or "formula").
Text that was centre-justified stays centre-justified.
cheers

 

samdavo

#3
OK , I find another trick.

It seems that a change of text colour (between cells in Excel) has an effect on the paste-into DCAD, as follows
a) after a change of text colour, it pastes correctly (not as small vertical llines)
b) it also doesn't need as much of a small vertical shift to align with the table.

This can be exploited as follows:-
If you add a "TRIGGER" at the top left - sacrificial - and make it red colour
then change to black for cells with 1 - 21
and you can even change the other text back to red (it doesn;t have any effect)

THIS time, when you paste, it doesn't need converting to Arial.   In fact, I am using Calibri in Excel, and that's what is in the DCAD drawing (2 cents).

I believe it is the change of colour between cell A1 and cell A2 that triggers the correct pasting.
cheers.   

samdavo

Just as further evidence that a change of text colour triggers correct pasting into DCAD,   here's what you get if the first change of colour is with the number "5"  :-

Rob S

Sam, I did not know this worked, and I suspect many others here did not know either.

I just tried a few examples, and it is not necessary to have borders, you can just paste a table of text and number entities as well

I also found that in many cases there is no same-as operation required, the text pastes properly to start with, maybe depending on the original font or size in used Excel.

You should post this in tips and tricks,  I  recall many users asking in the past about importing tables fro excel, and this works just perfect.

Anyone else who knew this, or was I the only one who didn't???
User since forever

prl

Quote from: Rob S on June 10, 2014, 12:42:22 PM
Anyone else who knew this, or was I the only one who didn't???

I didn't know this.

Dr PR

Sam,

Very good!

I have cut and pasted text from Word and Excel into DesignCAD, but only line at a time, and I didn't select the table lines. This is much better!

Phil

PS: Cut and paste to/from Word and Excel worked great in V15.3, but in V16.0 it didn't work. We had ordered two copies of V16 for our company, and when I found out cut/paste no longer worked I threw my unopened package into the trash can.

PPS: I haven't tried it lately, but in V15 we could copy from other CAD programs and paste into Word and the drawing remained intact. Then we could copy from Word and paste into DesignCAD and get an editable drawing. This had something to do with the way Windows copied and pasted. We couldn't copy from other CAD programs and paste directly into DesignCAD.
DesignCAD user since 1987

samdavo

As for why I tried red text - Basically I was watching "24-Live Another Day" in the background - with Jack Bauer in full flight - blood all over the place - and I thought, hey I wonder if you can have red text?  (Needless to say the missus gets pretty annoyed with me that I don't follow every second of the TV story, plus I'm mumbling things like "well I'll be damned, it works" etc.)  Anyway don't thank me, thank Jack Bauer.  cheers.

SciGraphics

Ric:
  I use exl files that are shown as graphs a lot. I print them to a .pdf file and open them in CorelDraw with text as text. Then I remove all that I don't want in the final plate and do any editing needed. Then I cut and paste them to DCad and bob's your uncle, there they are.

Rob S


For many the ability to edit sorted tables and schedules with calcs and numbering and spell-checked in excel and paste into a drawing directly with minimal fuss is invaluable.

When you need to edit  again, you just delete the whole works from the drawing and paste in the new one.

This seems to work great with no intermediary programs required!!!
User since forever

Dean

I use "copy as picture" (bitmap) from excel 2010 then paste into dcad 3d max v21. It's quick and easy, if I need the spreadsheet. I'm not seeing this "red text fix" with my setup. Copying text and vectors from excel into dcad 3d max v21 is unpredictable. Sometimes it works and other times it doesn't and really doesn't matter if the text is red or not. It would be nice if Dcad had an insert ole object.
DesignCad 3D max 2021
Lenovo 17.3"Laptop Intel(R) Core(TM) i7-9750H CPU @ 2.6GHz/Turbo boost 6 cores 12 threads.16GB memory.SSD 256GB/HDD 1TB 7200 Rpm.Nvidia Graphics GeForce GTX 1660 Ti 6GB
Windows 10 Home 64 bit

samdavo

Well, I happily add jpeg's/png's into 2D drawings, whether
a) spreadsheets,  - as both Bob P and Dean recommend - or
b) a quick 3D isometric sketch, (rather than use Paperspace, given I can only reliably export to 2D Autocad as some clients require), or
c) maybe (most common) an excerpt from a reference drawing, eg a pdf that I was sent - which I have to interface with

Speaking of csv's (comma separated values) however, ( tangent alert) ...
and COMBINING SPREADSHEETS ( to do calcs) and DESIGNCAD (to present the result) :-

I use something similar all the time - just that I still prefer Lotus123 (anyone remember that? lol) to Excel - for this anyway (because it can export multiple XYZ files in a single macro - and within my knowledge base lol).

Basically I export five columns of XY coordinates (representing layers of a steel "bridge bearing thingo" - with layers bolted together) - from the spreadsheet as five .xyz files  (with Excel you have to use ".csv" files ) ...

the five files are called A.xyz,  B.xyz,  C.xyz etc - (or A.csv etc) ...

and in either case (Lotus or Excel), you can import the five XYZ or CSV files into DCAD with another macro.   They arrive with their own layer, and colour to match (allocated with the import macro).

I only import a quadrant, then use mirroring (obvious enough). 

I've never taken it further to 3D - one for a rainy day.

I went into a bit of detail on this thread if anyone is interested:-
http://forum.designcad.com/index.php?topic=5174.msg34052#msg34052

PS. The third jpeg shows the columns of x (black) and y (red) coordinates in the spreadsheet that make up the 5 layers that are drawn and imported.   (This is a zoomed out view starting at row 300). 

PS. When there is no gap between data in one row and the next - and the next etc, you get a zig-zag line;  when you have a blank row, and continue the coordinates below that, the first line terminates, and a new one starts - 2 cents

prl

Quote from: samdavo on June 11, 2014, 02:02:43 AM
. . .  I use something similar all the time - just that I still prefer Lotus123 (anyone remember that?

Yes, I have it too (Lotus).  Also was a fan of Quattro Pro (long time ago).   My "lost causes" software collection.

samdavo