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.

Can we assign text size etc. to a layer?

Started by SFA, December 19, 2016, 06:24:06 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

SFA

One of the best things about DesignCAD (and perhaps all CAD systems for that matter?) is the ability to specify the colour and line style of each layer.

Can this be done for text size/font etc.?

SEMPER IN EXCRETIA

Rob S

AFAIK, there is no similar way to set a fixed font and text style by layer.
User since forever

Lar

In the Options dialog the Text tab has the 'use current color' and 'use current layer' options. That's about it. Nice idea, though.

Here's a trick, short of writing a macro: have a file of your different text styles in different colors on their different layers. When you need text open this file and copy and paste what you need from it, then edit the text. Or you can merge the file into the current drawing and just duplicate what text you need.

Lar

Dempsey

To be able to define font type, size and colour would be a nice extension of the layer definition. But then there has to be a on/off switch for "text by layer" similar to "color by layer" and "line style by layer". Oh, boy...
Dempsey

Bob P

I like macros.  ;) Although you'd have to create a different macro for each layer. Also, you could add an argument for a different text size (entered on the command line) if you want.


't4.d3m
'Text in layer 4, in blue
>Text
{
  <Color 47,7,255
  <Layer 4
  <DrawAs2dText
  <Style 0
  <Justification 0
  <Size 1.000000000000000e+000
  <Angle 0.000000000000000e+000
  <Font "Arial"
  <FontType 0
   }

Dr PR

A poor substitute is to use the "Selection Filter" to select text, then open the Info Box to change font and layer. In the Info Box you can select the "Color by Layer" option.

This should at least cause the text color to follow the layer color. I haven't tested this (I never use color by layer) so I don't know if it will work.

Also, in the "Options/Options" (Q) "Text" tab there is a "Using current color" option. What happens if you disable this? Is new text created in the current layer color? If text is moved between layers does it use the color of the layer it is moved to?

I don't have time to test these options. Maybe someone with by-layer color experience can tell us.

Phil
DesignCAD user since 1987

Lar

The 'use current color/layer' options in the Text and Dimensions Option tabs are just conveniences for the user. 'Color / Line Style by Layer' are entity properties and would override.

It should be easy to create macro like Bob P's. Just set up the text style, layer and color then record a macro creating some text. When you begin the record macro command click the arrow (recording options') in the little box that opens in the upper left corner of the screen and enable 'layer', 'command parameters', 'color' and maybe 'line style'. Disable 'starting point'. After recording open the macro and replace the <Text line with '<incomplete' so when you run the macro it will pause for you to enter the text.

Lar

SFA

Thank you all!

I like Bob P's idea with the macros as one could then:-

1) set up a macro for each type of element (e.g. steel beams, concrete beams etc.)
2) assign each macro to a button.
3) create a toolbox of these buttons.

This would be very useful and operator-friendly.



SEMPER IN EXCRETIA