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.

Lar

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 remember it being possible to 'insert' just about anything from any other program to and from dcad. I can't remember the exact term for this process, I think it had "ole" in the name. I think this was before XP, before MS Word and Powerpoint, when there was a Microsoft Works. There was a menu item to edit the inserted item, which would open the original program with the item loaded, you do the editing, then click 'update' or something.

I also go in the opposite direction, to get text from dcad into a spreadsheet or database. I have macros that generate rows and columns of text from dcad and save it to a text file. The rows would have commas in strategic places. I would open the text file in notepad, copy everything, then go to the spreadsheet, highlight the cell where I needed the text to start, and paste. The text would go into the cells sequentially, each line being separated into rows downward, and the commas separating the cells across. I especially used this to split layer names across database cells. The macro would generate lines of text something like:
Layer 1, Walls, Exterior, Level 1, Pink, discuss with client .....(the underlined part is the actual layer name, including the commas, which at one time was a big problem for dxf'ing, so maybe I would've used a dxf friendly character that I would 'replace' with a comma in notepad).

When these type layer names were pasted into a database, each line of text would be separated, at the commas, across cells. I would then be able to sort the entire database by any of the columns. So, to get the layer list by layer number I sort by the first column... the 2nd column would sort by type, the 3rd column by location, etc. The last bit ('discuss with client') was for comments and reminders. Sorting by this would bring together all the layer that needed attention (I would remove it from the layer name (in dcad and the database) when addressed).

Before MultilineLine Text was introduced I had a spreadsheet of all my typical notes in the cells, with 'word wrap' enabled somehow (ie, the text was a single line but would 'wrap' if I resized a column).  In dcad I would view the space I had available for a particular note to fit in, then switch to the spreadsheet and resized the column of the needed note so it wrapped to match the space in dcad. I would then highlight the text in the cell and copy and paste it into dcad. It pasted in as individual text line entities. In architecture the same note is used many times in a drawing but the 'wrapping' would be different depending on the space available. With this method I avoided having to retype the same note every time I needed a different wrapping. Multiline Text rendered this method obsolete, happily.

I have long abandoned these methods, mostly because I haven't had a spreadsheet or database installed since back then.

Lar

mathiaslink

Try this:

Highlight the area you want to copy in Excel.

Click COPY

Open MS Word--new document

Click PASTE (various options..pick the one that works for you)

Select the table by click and drag

Click COPY

Go to your DC Drawing..

Click PASTE.

It should be Perfect.  The difference is the way Word handles tables.  Designcad knows about Word and not about Excel.


Dempsey

mathiaslink,

Thanks, that is a great find. I learn something new everyday.
Dempsey