News:

Please note new Forum URL: forum.designcad.com

Main Menu
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.

Data table

Started by j-wetzel, May 08, 2013, 09:21:58 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

j-wetzel

How do I make a data table to include in a drawing?  I can draw a table in the usual way by just drawing the lines using tickmarks or parallel-by-distance or something and then enter the data in it, but surely there must be an easier way--a template, a macro, or something. 
--Jack

dcadRob

Create it in a spreadsheet or something. Snip it or save it as an image. Insert the file with File->Image->Load Image File

Or copy and paste directly.

Dr PR

Jack,

The copy/paste trick works, but not without problems. The font you use in the spreadsheet or word processor will be different in DesignCAD, and that can screw up column spacing. Only the text will paste - all of the table lines will be lost. You will have to regenerate them in DesignCAD if you want them.

Nevertheless, all of the text and numbers in the table will paste correctly into DesignCAD, so at least you don't have to type it all and then double check your typing.

Phil
DesignCAD user since 1987

dcadRob

QuoteOnly the text will paste - all of the table lines will be lost. You will have to regenerate them in DesignCAD if you want them.
Table lines are not always lost. I admit that formatting of text and lines can be messy and requires playing around with fonts and spacing to get a decent result.

Rob S


I wonder how hard it would be to expand the existing multiline text editor, which I believe uses the .rtf format for its work, couyld be easily expanded to handle tables?

If so, this very useful table-editing feature could be added relatively easily.
User since forever

MarkX

This is the first time I've noticed that DC doesn't have OLE insertion. Does it?

Inserting an OLE reference to your spreadsheet range is a trick that works in TurboCad (TC Deluxe has table capabilities, but they're not very good).

Mark

j-wetzel

Thanks so much for the suggestions and discussion.  Generally speaking, DesignCad doesn't handle technical text very well at all.  For example, if you want to enter an algebraic expression, you pretty much have to build it symbol by symbol, and adjust the spacing and alignment entirely by hand.  Since I use it mainly to draw graphics for mathematics papers, this is sometimes a pain in the wrist.

In this particular case, I'll just draw the array and insert the numbers by hand.  It takes forever, but the result is the way I want.

Thanks again.
--Jack

Rob S

A couple more ideas you might try:

- after (or before) you create the grid lines for your table, you could take a sample text line, and use Designcad's array copy tool to give yourself a starter line of text in each space, which would then all be exactly aligned in both directions, and can be selected and edited with the info box.

- for the mathematical symbols within lines of text, you could try creating these directly in the multi-line text editor, which can use multiple fonts within a line.  That way you should be able to get your symbols included within the lines of text.

Unfortunately I don't have time to do much in the way of a sample right now.

Also too bad the math symbols from Word won't paste into the text editor directly.
User since forever

dcadRob

QuoteThis is the first time I've noticed that DC doesn't have OLE insertion. Does it?

Inserting an OLE reference to your spreadsheet range is a trick that works in TurboCad (TC Deluxe has table capabilities, but they're not very good).
You can go in the other direction - insert a reference to your DC drawing in a Word or Excel document.

dcadRob

Quote from: j-wetzel on May 09, 2013, 03:05:25 PM
Thanks so much for the suggestions and discussion.  Generally speaking, DesignCad doesn't handle technical text very well at all.  For example, if you want to enter an algebraic expression, you pretty much have to build it symbol by symbol, and adjust the spacing and alignment entirely by hand.  Since I use it mainly to draw graphics for mathematics papers, this is sometimes a pain in the wrist.

In this particular case, I'll just draw the array and insert the numbers by hand.  It takes forever, but the result is the way I want.

Thanks again.
I don't know what your doc looks like but maybe you could do all the equations in Excel/Word and insert DC drawings.

Lar

#10
Quote from: Rob S on May 09, 2013, 10:32:21 PM
- for the mathematical symbols within lines of text, you could try creating these directly in the multi-line text editor, which can use multiple fonts within a line.  That way you should be able to get your symbols included within the lines of text.
Could you guys confirm that, with Multiline Text, the Wingdings and Webdings type fonts do not appear as symbols in model space but as numbers and letters. Ie, on my system, in the m-text editor, when I type normal letters/numbers the 'dings' symbols would appear. However, once I 'ok' and place the m-text entity in model space I see letters/numbers, not the 'dings'.

For the dings to appear in model space I have to click the 'insert symbol or text' button (the red arrow pointing down on the left side of the editor window), change the font to wingdings or whatever, pick a symbol, then click insert. Once a symbol is inserted it also replaces a number along the left side so the next time I need it I can just click that to insert it where the cursor is.

Quote from: MarkX on May 09, 2013, 08:03:29 AM
This is the first time I've noticed that DC doesn't have OLE insertion. Does it?
Dcad had OLE insertion back around version 15 and I used it quite a bit.  I hadn't used for a while after that then I noticed it disappeared <<edit: or did it work the other way around.. you could only insert dcad drawings in other apps?????>>.

I also remember copying groups of cells in a spreadsheet, pasting directly into dcad and the cell borders coming in as individual lines, along with the text (maybe the OLE function controlled this). If I copied the contents of a cell only then it would paste in as a text entity, or I could paste the string into the 'text' or 'text block' editor.

Lar

magic

Hi Lar,

By Multiline Text I assume that you mean Text Block.

If you use Webdings or Wingdings True Type Fonts and enter text into the text field, it will look like normal text here, but will be Webdings/Wingdings symbols in the drawing. See attached.

It Works the same with the Character Map.
It's a kind of magic!




Lar

#12
Quote from: magic on May 10, 2013, 09:03:57 AM
By Multiline Text I assume that you mean Text Block.
No, Magic.
MultiLine Text is a separate command used to create 'word wrapped' text (under the Draw menu, or the 'T t" icon in the Main Toolbox (in the Text pullout). Not only does it allows you to create a single wrapped text entity but you can have different font types and sizes in a single line, the text can have a colored background and/or border.

See attached image for a visual of what I described in my previous post.

Tips:
1] I don't copy and paste with the windows shortcuts, since this has caused dcad to crash in the past. I use the icons in the editor window or the right click menu. If the problem was ever fixed I don't know. Using colored backgrounds caused dcad to crash frequently in a previous version (maybe 19). It appears to have been improved since, but I can't say for sure. I did use it extensively this month and dcad did crash frequently but I can't be sure this is what caused the crashes as I was pushing a few limits.

2] You can convert m-text to regular text by exploding. Every font or size change in a single line would convert to a separate text entity but would appear the same as in the m-text entity.

3] To see how to create m-text with basiccad use the macro record command. Pay attention to the multitude of characters that the macro records. These control fonts, sizes, etc. After a text string you would see characters for linefeed and 'end-of-text-block' (my term, not sure what it's actually called).

Lar

dcadRob

QuoteIf you use Webdings or Wingdings True Type Fonts and enter text into the text field, it will look like normal text here, but will be Webdings/Wingdings symbols in the drawing. See attached.
It works the opposite way in the Multiline Text Editor. It looks like Windings in the editor but pastes as real text in the drawing

samdavo

#14
jw,
these might come in handy as well
I find I use them a fair bit now (since I got the idea from Minstrel)
Just select a few lines of text, and it sets it left centre or right justified,
Other options available in 3D - or aligning text at 90deg etc  can be found at Alt+E, S, and Object Alignment. (2 cents)

'LJ = Left Justification of text or lines etc in XY plane
>AlignObjects
{
  <Type 0
  }


'CJ = Centre Justification of text or lines etc in XY plane
>AlignObjects
{
  <Type 4
  }


'RJ = Right Justification of text or lines etc in XY plane
>AlignObjects
{
  <Type 1
  }


PS, and once loaded where DCAD can find them as d3m macros, you just
hit spacekey, hit LJ etc, and viola (or should that be violin?)