AUTOCAD • LAYOUTS, PLOTTING, AND OUTPUT

Plot Styles — Use plot styles (CTB/STB) to control output appearance (intro)

Control how AutoCAD objects translate from screen to printed output using color-dependent and named plot style tables.

Historical Context & Motivation

Before the era of digital CAD, engineers and drafters produced drawings with ink on vellum or mylar, carefully selecting pen weights, ink colors, and line types to convey information hierarchy on the printed page. When AutoCAD arrived in 1982, it digitized the drawing process but initially offered limited control over how on-screen colors mapped to physical pen plotters. Early pen plotters had carousels holding pens of different widths, and AutoCAD simply mapped object colors to pen numbers — a crude but effective scheme. As the software matured and electrostatic and inkjet plotters replaced pen-based hardware, Autodesk recognized that separating visual appearance from geometric data was essential for professional output workflows.

1982
AutoCAD Release 1.0
AutoCAD launches with rudimentary pen-plotter support. Object color directly determines which physical pen is used, binding appearance to color assignment.
1997
AutoCAD R14 — CTB Introduced
Autodesk introduces Color-Dependent Plot Style Tables (CTB), formalizing the mapping of AutoCAD's 255 indexed colors to specific lineweights, screening percentages, and output colors.
2000
AutoCAD 2000 — STB Introduced
Named Plot Style Tables (STB) are introduced, decoupling plot style assignment from color entirely and allowing per-object or per-layer named style assignments.
2010s
PDF and DWF Workflows
Modern plotting increasingly targets virtual printers like DWG to PDF. Plot styles remain critical, governing lineweight and grayscale conversion in digital deliverables.

The central question that plot styles answer is fundamentally one of abstraction: how do you maintain a single source drawing while supporting multiple output appearances — monochrome construction documents, color presentations, and screened background sheets — without duplicating geometry? This is the same separation of concerns principle familiar from software engineering, where data logic is isolated from presentation.

Core Principles & Definitions

A plot style is a collection of property overrides that modify how an object is rendered at plot time without changing its properties in the drawing database. These overrides are organized into plot style tables — files with either a .ctb or .stb extension — that are attached to layouts and referenced during the plot pipeline. Understanding the distinction between these two table types, and when to use each, is foundational to mastering AutoCAD output.

1

CTB — Color-Dependent

Maps each of AutoCAD's 255 indexed ACI colors to a set of plot properties (lineweight, output color, screening). An object's color is its plot style. Simple but inflexible — two objects of the same color always plot identically.
2

STB — Named Style

Defines arbitrary named styles (e.g., 'Heavy Walls', 'Light Hatch') that can be assigned independently of object color. Offers maximum flexibility but requires explicit assignment per layer or per object.
3

Plot Style Properties

Each style entry controls: output color, screening percentage (0–100%), lineweight, line-end style, line-join style, fill style, and pen number. These overrides apply only at plot time.
4

PSTYLEPOLICY System Variable

The PSTYLEPOLICY variable (0 or 1) determines whether new drawings use CTB or STB mode. This is set at drawing creation time and is difficult to change retroactively, making early planning critical.
KEY TAKEAWAY
Think of plot styles like CSS stylesheets for a webpage. Your AutoCAD drawing is the HTML — raw structure and content. The plot style table is the CSS — it dictates how that content looks when rendered. A CTB file is like styling by element tag name (every <h1> looks the same), while an STB file is like styling by class name (you assign classes freely to any element regardless of its tag).

Visual Explanation — The Plot Style Pipeline

The plot pipeline in CTB mode: each ACI color in the DWG file maps to a row in the .ctb table, which defines the output lineweight and screening percentage. The on-screen colors remain unchanged — only the printed result is affected.

The diagram above illustrates the fundamental pipeline. On the left, the drawing contains objects assigned to various AutoCAD Color Index (ACI) colors — red for walls, yellow for dimensions, green for hatching, and so on. These colors are chosen for on-screen legibility against a dark model-space background. In the middle, the CTB table acts as a lookup function: each color index (1 through 255) maps to a set of output properties. On the right, the final printed sheet renders all objects in black with varying lineweights and screening percentages, producing a professional, hierarchical document. The critical observation for computer science students is that this pipeline implements a classic decorator pattern — the plot style table wraps the drawing data with presentation logic without modifying the underlying objects.

How Plot Styles Work — The Rendering Pipeline

When you issue a PLOT command (or Ctrl+P), AutoCAD traverses every visible object in the designated plot area and evaluates it through the plot style table. The resolution order depends on whether the drawing uses CTB or STB mode, and understanding this resolution is essential to debugging unexpected output.

CTB Resolution Logic

In a CTB drawing, the resolution is deterministic and simple. AutoCAD reads the object's effective ACI color (which may be inherited from its layer via ByLayer or set explicitly via ByObject). It uses this color index as a key to look up the corresponding entry in the attached .ctb file. The entry's properties — output color, lineweight, screening, line-end style, line-join style, and fill style — override the object's native properties for the duration of the plot. This can be expressed as a function:

CTB RESOLUTION FUNCTION
PlotProperties(obj) = CTB_Table[ ACI_Color(obj) ]
Where ACI_Color(obj) returns the effective color index (1–255) of the object, and CTB_Table is an array of 255 style entries. This is essentially a hash map with integer keys — O(1) lookup.

STB Resolution Logic

In an STB drawing, the resolution involves an extra level of indirection. Each object (or its layer) carries a plot style name property — a string like "Heavy Walls" or "Light Annotation". AutoCAD looks up this name in the attached .stb file's dictionary of named styles. If the name is not found, the object plots with its native properties. This is analogous to CSS class-based styling where a missing class simply results in default rendering.

STB RESOLUTION FUNCTION
PlotProperties(obj) = STB_Table[ StyleName(obj) ] ?? DefaultProperties(obj)
Where StyleName(obj) returns the named plot style string assigned to the object or its layer, and the ?? operator falls back to native properties if the style name is unresolved. This is a dictionary lookup — also O(1) amortized.
📐 Screening Formula
Screening controls the intensity of plotted color. A screening value of 100% means full intensity; 0% means the object is invisible. The effective output intensity is computed as: Output Intensity = Base Color × (Screening / 100). For a monochrome plot where the base color is black (RGB 0,0,0), screening instead controls a grayscale value: a 50% screen produces a medium gray (RGB 128,128,128).

Detailed Breakdown — CTB vs. STB

Choosing between CTB and STB mode is one of the first architectural decisions in an AutoCAD project, much like choosing between a relational and document database shapes your entire data access layer. Both systems achieve the same end goal — controlling output appearance — but they impose fundamentally different constraints on your drawing organization. The following diagram and table provide a side-by-side comparison to help you reason about which approach fits a given workflow.

Left: CTB mode binds plot output directly to ACI color, meaning every object of the same color shares output properties. Right: STB mode assigns named styles independent of color, enabling different plot treatments for same-colored objects.
Comparison of CTB and STB plot style systems
FeatureCTB (Color-Dependent)STB (Named)
Style SelectorACI color index (1–255)Arbitrary name string
Max Unique Styles255Unlimited
File Extension.ctb.stb
AssignmentAutomatic via object colorManual per layer or per object
Industry AdoptionDominant (~85% of firms)Growing but still niche
ConversionCan convert to STB (CONVERTPSTYLES)Can convert to CTB (CONVERTPSTYLES)

Worked Example — Creating and Applying a Monochrome CTB

The most common plot style task is creating a monochrome CTB that converts all colors to black while differentiating objects by lineweight. Let us walk through this process from start to finish using the monochrome.ctb as a base template.

Setting Up a Custom Monochrome CTB File
1
Step 1 — Open the Plot Style ManagerType STYLESMANAGER at the command line (or navigate to File → Plot Style Manager). This opens the directory where AutoCAD stores plot style table files, typically C:\Users\<username>\AppData\Roaming\Autodesk\AutoCAD <version>\R<xx>\enu\Plotters\Plot Styles\.
Plot Styles folder opens in Windows Explorer
2
Step 2 — Copy and Rename the Base FileCopy monochrome.ctb and rename the copy to MyProject-Mono.ctb. Starting from the built-in monochrome template saves time because it already sets all 255 colors to output as Black. We will customize lineweights for specific color indices.
New file: MyProject-Mono.ctb
3
Step 3 — Edit Plot Style PropertiesDouble-click MyProject-Mono.ctb to open the Plot Style Table Editor. Select Color 1 (Red) and set its lineweight to 0.50 mm — this will be used for walls and structural elements. Select Color 2 (Yellow) and set lineweight to 0.25 mm for dimensions. Select Color 3 (Green) and set lineweight to 0.15 mm with screening at 50% for background hatching.
Color 1 = 0.50mm, Color 2 = 0.25mm, Color 3 = 0.15mm at 50% screen
4
Step 4 — Attach the CTB to a LayoutSwitch to a layout tab (e.g., Layout1). Open the Page Setup Manager (PAGESETUP) and select Modify. In the Plot Style Table dropdown, select MyProject-Mono.ctb. Check Display plot styles to preview the output visually in the layout.
Layout now references MyProject-Mono.ctb and displays plot style preview
5
Step 5 — Plot and VerifyUse Ctrl+P to open the Plot dialog. Confirm the plot style table is listed, choose your printer or DWG To PDF, and click Preview. The preview should show all objects in black with distinct lineweight hierarchy: walls thick, dimensions medium, hatch thin and screened to gray.
Professional monochrome output with lineweight hierarchy

Strengths, Limitations, and Trade-offs

Trade-off analysis of plot style approaches
CriterionStrengthLimitation
SimplicityCTB requires zero per-object configuration; color assignment implicitly defines output appearance, reducing setup timeColor choices are constrained by plotting needs — you cannot freely choose display colors for aesthetics if each color has a fixed plot meaning
FlexibilitySTB allows unlimited named styles and decouples color from output, enabling sophisticated multi-style workflowsSTB requires explicit style assignment to every layer or object; migration from CTB to STB is non-trivial and may introduce errors
InteroperabilityCTB files are universally understood by consultants, contractors, and regulatory agencies — industry standard since the late 1990sPlot style tables are not embedded in DWG files; if you share a drawing without its CTB/STB file, the recipient gets default (uncontrolled) output
ScalabilityA single CTB can be shared across hundreds of drawings, ensuring organizational consistencyCTB maxes out at 255 unique style entries; complex projects with fine-grained output requirements may exhaust this space
KEY TAKEAWAY
In practice, the CTB vs. STB decision mirrors the age-old software engineering trade-off between convention over configuration. CTB is the Rails approach — it makes strong assumptions that work for 90% of cases, and experienced teams build efficient workflows around those assumptions. STB is the Spring approach — maximum flexibility, but at the cost of more explicit setup and a steeper learning curve. When in doubt, default to CTB and only adopt STB if you have a documented requirement that CTB cannot satisfy.

Connection to Advanced Plotting Concepts

Plot styles are one component of a broader output ecosystem in AutoCAD. As your projects grow in complexity — from single-sheet exercises to multi-discipline construction document sets — you will encounter several advanced topics that build directly on the foundations covered here. Understanding where plot styles sit in this larger landscape helps you plan your learning path and avoid architectural mistakes that are costly to refactor later.

From introductory to advanced plot style concepts
Introductory Concept (This Lesson)Advanced Extension
Single CTB for one layoutSheet Set Manager publishing with per-layout plot style overrides across hundreds of sheets
Manual lineweight assignment in CTBAutomated lineweight mapping using company CAD standards (DWS files) and batch auditing with CAD Standards Checker
Screening percentage for grayscaleFull color plotting with transparency objects, gradient hatches, and PDF layer output for digital deliverables
CTB vs. STB choice at drawing creationEnterprise template management using CONVERTPSTYLES for legacy drawing migration and ACAD.DWT customization
Plotting from Paper Space layoutsAutoLISP/VBA scripting for batch plotting, custom plot style programmatic manipulation via ObjectARX/.NET API

For computer science students, the programmatic angle is particularly relevant. AutoCAD exposes its plot style infrastructure through the .NET API and ObjectARX (C++ SDK), enabling you to write plugins that dynamically generate or modify plot style tables. Imagine a CI/CD pipeline for construction documents where a commit to a CAD file repository triggers automated plot style validation, generates PDF outputs with standardized lineweights, and flags non-compliant color assignments — this is the kind of infrastructure that firms increasingly build using AutoCAD's API layer.

Practice Problems

PROBLEM 1CONCEPTUAL
Explain the fundamental difference between how CTB and STB plot style tables determine which plot properties to apply to an object. Use the analogy of CSS styling to frame your answer.
PROBLEM 2BASIC CALCULATION
A CTB file maps Color 1 (Red) to output as Black with a screening value of 70%. If a solid hatch assigned to Color 1 is plotted, what approximate RGB value will it appear as on the printed page, assuming a white paper background and a monochrome output device?
PROBLEM 3INTERMEDIATE
You have a drawing with six layers: Walls (Color 1), Doors (Color 1), Windows (Color 4), Dimensions (Color 2), Hatching (Color 3), and Furniture (Color 6). You need Walls to plot at 0.50mm and Doors at 0.25mm, but both are Color 1. In CTB mode, how would you solve this problem? Alternatively, describe how STB mode would handle it.
PROBLEM 4APPLIED
Your architecture firm has standardized on a CTB file called FirmStandard.ctb. A new project requires you to produce both a standard monochrome drawing set and a color presentation set from the same DWG files. Describe a workflow using AutoCAD's layout and plot style features that achieves this without duplicating any geometry.
PROBLEM 5CRITICAL THINKING
Consider AutoCAD's plot style system from a software architecture perspective. The PSTYLEPOLICY system variable is set at drawing creation time and is non-trivial to change later. Critically evaluate this design decision: Why might Autodesk have implemented it this way rather than allowing per-layout switching between CTB and STB? What software engineering principles does this reflect, and what are the consequences for large-scale CAD operations?

Lesson Summary

Plot styles are AutoCAD's mechanism for separating drawing content from output appearance, analogous to the separation of data and presentation in web development. They are stored in plot style tables — either CTB (color-dependent) files that map each of 255 ACI colors to output properties, or STB (named style) files that define arbitrary named styles assignable per layer or per object. CTB offers simplicity and broad industry adoption — the color is the style selector — while STB provides maximum flexibility by decoupling color from plot treatment.

Each plot style entry controls properties including output color, lineweight, and screening percentage, which are applied only at plot time without modifying the underlying drawing database. The choice between CTB and STB is made at drawing creation via the PSTYLEPOLICY system variable and should be treated as an architectural decision. Plot style tables are attached to individual layouts through Page Setup, enabling multiple output configurations from a single drawing — the same geometry can produce monochrome construction documents and color presentations without any data duplication.

Varsity Tutors • AutoCAD • Plot Styles — Use plot styles (CTB/STB) to control output appearance (intro)