AutoCAD - What is the point of a CTB file?

AutoCAD - What is the point of a CTB file?

fkuznets
Explorer Explorer
26,040 Views
35 Replies
Message 1 of 36

AutoCAD - What is the point of a CTB file?

fkuznets
Explorer
Explorer

I'm new to AutoCAD, so sorry if this is a bit of a silly question, but aren't CTB files redundant? Why would I ever need to use them? From what I understand, they're just a way to assign a bunch of properties to things in my drawing, but couldn't I just do that using layer properties? 

 

[ The subject line of this post has been edited for clarity by @handjonathan Original: What is the point if a CTB file? ]

0 Likes
Accepted solutions (1)
26,041 Views
35 Replies
Replies (35)
Message 2 of 36

illusionistNUGXG
Advocate
Advocate

It is harder to work with drawings, if all everything is set in the layer properties. All lines look alike.

I can differentiate line styles with ease.

(i use a dark background) white lines  = wide

green = thin

magenta = thin, dashed

cyan = middle lines (dash + dot)

...and they all print black

 

Also different ctb files can change the printed (or PDF) outcome with one selection.

e.g. thinner lines overall, or monochrome.ctb for black/white only

Message 3 of 36

imadHabash
Mentor
Mentor
Accepted solution

Hi and Welcome to AutoCAD Forum,

CTB, or color-dependent, plot styles are settings for how the 256 available colors in AutoCAD will appear when you plot them, including the lineweight assigned to each color. When you use CTB styles, you are essentially adapting some or all of the colors 0 through 255 to meet your office standards for plotting. You can use Color Plot Styles to plot in black and white or color.

  • By using a finite list of layer colors, CTB styles make it easier to tell which layer is which in your drawing and makes it easier to rescale for plotting.
  • The CTB file offers myriad options, but you are primarily concerned with three:
    • The color in which the source color should plot
    • Line thickness
    • Screening

Imad Habash

EESignature

Message 4 of 36

RSomppi
Advisor
Advisor

@fkuznets wrote:

aren't CTB files redundant? Why would I ever need to use them? From what I understand, they're just a way to assign a bunch of properties to things in my drawing, but couldn't I just do that using layer properties?


It's not really a redundancy but rather a choice for you to make. 

0 Likes
Message 5 of 36

rkmcswain
Mentor
Mentor
@fkuznets wrote:

.... but aren't CTB files redundant? Why would I ever need to use them? From what I understand, they're just a way to assign a bunch of properties to things in my drawing, but couldn't I just do that using layer properties?

Prior to ~2004 (not sure of exact release), there were no "lineweights" in AutoCAD. So in order to have objects with various widths, we had to use plot styles, or use polylines with a width (and not all objects can be represented with polylines).

 

Many, dare I say most, people and firms who learned this way still do it this way. As said above, it's a choice.

R.K. McSwain     | CADpanacea | on twitter
Message 6 of 36

Ed__Jobe
Mentor
Mentor

@rkmcswain wrote:
@fkuznets wrote:

.... but aren't CTB files redundant? Why would I ever need to use them? From what I understand, they're just a way to assign a bunch of properties to things in my drawing, but couldn't I just do that using layer properties?

Prior to ~2004 (not sure of exact release), there were no "lineweights" in AutoCAD. So in order to have objects with various widths, we had to use plot styles, or use polylines with a width (and not all objects can be represented with polylines).

 

Many, dare I say most, people and firms who learned this way still do it this way. As said above, it's a choice.


@fkuznets In addition to what RK mentioned, layers are more for controlling screen appearance, whereas ctp (and also stb) are for controlling plot output. For example, our standard plot size is Arch D. We have a ctb that specifies the lineweights and maps all the layer colors to black. But for a check print (Arch B) we use a ctb that scales the lineweights by half. If all you had were layers, you would have to change the layer settings to get a different plot.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

Message 7 of 36

RSomppi
Advisor
Advisor

@Ed__Jobe wrote:
If all you had were layers, you would have to change the layer settings to get a different plot.

Are you sure?

 

Scale Lineweights.png

Message 8 of 36

Ed__Jobe
Mentor
Mentor

@RSomppi wrote:

@Ed__Jobe wrote:
If all you had were layers, you would have to change the layer settings to get a different plot.

Are you sure?

 

Scale Lineweights.png


Good catch. oops.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes
Message 9 of 36

payingtoomuch
Collaborator
Collaborator

I'm interested in this too. Have been drawing in autocad for 20 years+ and have only dabbled in making a switch to by layer assignments of lineweights, linetypes, transparency & color.

One of the posts above seems to indicate that there is no way to still see color of the lines in model space when working.... but this doesn't seem to be accurate. Question would be that if "none" plot style is selected and line color is assigned by layer if there is a way to still have it plot black (or grey) and ideally when a layout tab is opened, be able to see the color that the line will be plotted at. Thinking this might require changing the vp layer color to black (or gray) for each individual linetype? That could get cumbersome. Not sure that path to take but I do like some of what I'm thinking through on the switch from ctb to assignments by layer.

 

0 Likes
Message 10 of 36

Ed__Jobe
Mentor
Mentor

@payingtoomuch wrote:

One of the posts above seems to indicate that there is no way to still see color of the lines in model space when working....


I didn't see that indicated anywhere. Layers have both color and lineweight settings, just like a ctb file has. If you choose "none" for the ctb setting in page setup, then the plot uses the layer settings (and object if it overrides the layer setting). The ctb is just a way to store overrides and easily switch back and forth. Layouts can't completely display what a plot would look like, although you can display lineweights. For that you need to use plot preview. If you want to plot all black, just use the acad-supplied monochrome.ctb.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

Message 11 of 36

payingtoomuch
Collaborator
Collaborator

Not meaning to hijack the thread....

 

Below is where I got the notion that someone was thinking they couldn't see color in model space if they chose to set up drawings with color by layer....

"It is harder to work with drawings, if all everything is set in the layer properties. All lines look alike.

I can differentiate line styles with ease.

(i use a dark background) white lines  = wide

green = thin

magenta = thin, dashed

cyan = middle lines (dash + dot)

...and they all print black"

 

Was trying to get away from ctb.... but already having issues heading that direction.

-1st issue appears to be that because the default lineweight- assigned by "lwdefault"  (which would be the majority of my lineweights "assigned" to the various layers) is apparently a global setting (all drawings would revert to any new setting). So, if anyone arbitrarily selects some obscure lineweight then their (and my drawings) will not plot properly.

- Also. Thinking will be way more cumbersome having to select black or grey for all the various layers in the viewport everytime a new viewport is created and/or a new layer is created.

 

Think I'm bailing already. Can anyone convince me to stay the course and and get away from plot styles?

0 Likes
Message 12 of 36

Ed__Jobe
Mentor
Mentor

It depends on your needs, only you would know what works best for you (or your company). But you may want to look at named style table files (stb). Most use color tables because they just never changed from the way that AutoCAD first introduced...too hard to make a change, etc. But named styles have advantages too.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes
Message 13 of 36

payingtoomuch
Collaborator
Collaborator

Thanks Ed. I played around with STBs some years back and got away from it for some reason..... Will look again.

0 Likes
Message 14 of 36

payingtoomuch
Collaborator
Collaborator

Very quick search revealed...

"If you want to be able to set your lineweights completely independent of the color of things on your screen, the stb is the way to go"

Definitely need to look into them again because after all said and done, this is probably the big reason I'm looking to make a change.

 

Thanks.

0 Likes
Message 15 of 36

dngow
Community Visitor
Community Visitor

 


@payingtoomuch wrote:

 

- Also. Thinking will be way more cumbersome having to select black or grey for all the various layers in the viewport everytime a new viewport is created and/or a new layer is created.


 

Civil 3D 2025 here. This is what originally did it for me... that a new viewport would require the cumbersome work for all the layers, but if I have an existing viewport and I create a new viewport, it inherits all of the layer states from the first viewport. Additionally, layer properties now has a layer states manager that can save your settings so you can load it for another viewport. It's like a ctb file, but for viewports.

 

I receive drawings where layer names can change, be typo'd, etc, but I also can't rely on the color or name being the same every drawing... yet.  That makes ctb and stb files less useful for me. Layer states hasn't been helpful so far either since new viewports are inheriting the layer states anyways since all of my viewports have the same settings. (maybe if you have multiple viewports all with different layer states, I see the Layer state manager being very useful). So making a template drawing is how I'm doing it. It is painful, but at least I only do it the once. The drawings I receive to process though, I don't see an easy way of dealing with that, but when dealt with, I know what it will all plot as. Suggestions welcome.

 

0 Likes
Message 16 of 36

TomBeauford
Advisor
Advisor

I was taught the KISS principal (Keep It Simple Stupid) in the Army back in 1975 and have lived with it ever since. For the last 26 versions of AutoCAD we've been able to control lineweights with layer properties easily managed with layer states. To use plot styles to control lineweights requires multiplying the number of plot styles you actually need by the number of different lineweights you might possibly use and every user would have to understand all them which is the opposite of keeping something simple. We use an STB with only six plot styles Color, Black, 3 Grayscales and a last one that plots as a light shade which works great for solid hatching with various colors. Simple, works with millions of colors, and provides many times the options a CBT file with 256 plot styles can.

64bit AutoCAD Map & Civil 3D 2023
Architecture Engineering & Construction Collection
2023
Windows 10 Dell i7-12850HX 2.1 Ghz 12GB NVIDIA RTX A3000 12GB Graphics Adapter
0 Likes
Message 17 of 36

RSomppi
Advisor
Advisor

@TomBeauford wrote:

To use plot styles to control lineweights requires multiplying the number of plot styles you actually need by the number of different lineweights you might possibly use


Nope, pretty sure that's not a requirement.

0 Likes
Message 18 of 36

TomBeauford
Advisor
Advisor

If you know some way of making CTB plot styles to control 15 colors (of the only 256 that actually work with CTBs) & grayscales for 5 different lineweights without needing 75 (15×5) different plot styles please share.

64bit AutoCAD Map & Civil 3D 2023
Architecture Engineering & Construction Collection
2023
Windows 10 Dell i7-12850HX 2.1 Ghz 12GB NVIDIA RTX A3000 12GB Graphics Adapter
0 Likes
Message 19 of 36

RSomppi
Advisor
Advisor

Yeah, if I'm understanding you correctly, you only need one CTB.

0 Likes
Message 20 of 36

pkolarik
Advisor
Advisor

We have two ctb files for our printing needs. Just two (the second one is for half-sized plotting, as some plotters/printers don't handle some of the thinner and shaded lineweights correctly if we just tick the "scale lineweights" button). The 255 colors available to use are more than sufficient for managing the roughly 8 solid lineweights and 5 shaded lineweights that all our drawings require.