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.

A drafting compass with dimension and drawing-panel symbols.
Inside this lesson 10 sections 5 questions 7 figures

SECTION 1

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.

SECTION 2

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).

SECTION 3

Visual Explanation — The Plot Style Pipeline

Plot Style Pipeline: Drawing → Plot Style Table → OutputDrawing (DWG)Color 1 (Red)Color 2 (Yellow)Color 3 (Green)Color 4 (Cyan)Color 5 (Blue)Plot Style Table (.ctb)Color 1 →0.50mm BlackColor 2 →0.25mm BlackColor 3 →0.15mm BlackColor 4 →0.35mm 50%Color 5 →0.10mm 30%255 entries totalPrinted Output0.500.250.1550%30%Key InsightOn-screen colors remain vibrant for drafting clarity.The plot style table transforms them into professional output(lineweights, screening, monochrome) at print time only.
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.

SECTION 4

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)=CTBTable[ACIColor(obj)]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)=STBTable[StyleName(obj)]??DefaultProperties(obj)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).

SECTION 5

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.

CTB vs. STB — Structural ComparisonCTB Mode (Color-Dependent)Layer: Wallscolor = Red (1)Layer: Dimscolor = Yellow (2)Layer: Hatchcolor = Green (3)Mapping Rule:color → plot propertiesColor IS the style selector.Same color = same output.✓ Simple · Industry standard✗ Limited to 255 unique stylesSTB Mode (Named Styles)Layer: Wallsstyle = "Heavy"color = anyLayer: Dimsstyle = "Thin"color = anyLayer: Hatchstyle = "Screened"color = anyMapping Rule:styleName → plot propertiesColor and style are independent.Same color ≠ same output.✓ Flexible · Unlimited styles✗ More setup · Less industry adoption
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.
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)

Comparison of CTB and STB plot style systems

SECTION 6

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. 1

    Step 1 — Open the Plot Style Manager

    Type 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. 2

    Step 2 — Copy and Rename the Base File

    Copy 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. 3

    Step 3 — Edit Plot Style Properties

    Double-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. 4

    Step 4 — Attach the CTB to a Layout

    Switch 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. 5

    Step 5 — Plot and Verify

    Use 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

SECTION 7

Strengths, Limitations, and Trade-offs

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

Trade-off analysis of plot style approaches

✦

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.

SECTION 8

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.

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

From introductory to advanced plot style concepts

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.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

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.
Show answer
A CTB file uses an object's ACI color index as the selector — like CSS styling by HTML tag name, where every <p> automatically gets the same style. An STB file uses a named plot style string assigned to the object or its layer — like CSS class-based styling, where you explicitly add class="heavy" to whichever elements need that treatment. In CTB mode, two red objects always share the same plot properties; in STB mode, two red objects can have entirely different plot properties if they are assigned different named styles.

Question 2: BASIC 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?
Show answer
The base color is Black (RGB 0, 0, 0). Screening at 70% means the ink intensity is 70% of full black. On white paper, this translates to a gray level of approximately 30% white — specifically, RGB(77, 77, 77) computed as 255 × (1 − 0.70) ≈ 77. In practice, the rendered output is a dark gray, with the exact appearance depending on the output device's halftoning algorithm. A screening of 100% would produce pure black (RGB 0,0,0), while 0% would produce white (RGB 255,255,255 — effectively invisible).

Question 3: INTERMEDIATE

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.
Show answer
In CTB mode, two layers sharing the same ACI color cannot have different plot properties because the plot style is resolved solely by color. The solution within CTB is to change the Doors layer to a different ACI color (e.g., Color 30 — a shade of orange) and map that color to 0.25mm Black in the CTB table. This works but forces a color change that may not be aesthetically ideal on screen. In STB mode, this problem does not exist: you would assign the named style 'Heavy' (0.50mm) to the Walls layer and 'Medium' (0.25mm) to the Doors layer, regardless of their display colors. This scenario is a classic example of when STB's flexibility justifies its additional configuration overhead.

Question 4: APPLIED

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.
Show answer
Create two layouts within the same DWG file — for example, 'A1-Monochrome' and 'A1-Color'. Both layouts can reference the same model space geometry through identically configured viewports. Attach FirmStandard.ctb to the monochrome layout via Page Setup, which maps all colors to black with appropriate lineweights. For the color layout, either attach a different CTB (e.g., FirmColor.ctb) that maps each ACI color to 'Use Object Color' with the same lineweights, or use the built-in acad.ctb (which passes colors through unchanged). When plotting or publishing, each layout renders the same geometry through its own plot style table, producing different output from a single source — a true separation of data and presentation.

Question 5: CRITICAL 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?
Show answer
Autodesk's decision to lock CTB/STB mode at the drawing level reflects the principle of data integrity over flexibility. In STB mode, every object and layer carries an additional 'plot style name' property that does not exist in CTB mode. Allowing per-layout switching would require the drawing database to maintain both color-based mappings and named style properties simultaneously, creating ambiguity about which system governs output and risking silent data loss when a named style property is dropped during a mode switch. This is analogous to choosing between a relational and NoSQL schema — the choice is structural and has cascading implications. The consequence for large-scale operations is that firms must standardize on one mode (nearly all choose CTB) and use the CONVERTPSTYLES command for legacy migration, treating it as a database schema migration rather than a runtime configuration change. It is a case where constraining flexibility prevents a category of errors that would be extremely difficult to debug in production.

SUMMARY

Lesson Summary

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)