KufCad

Plot styles (CTB / STB)

Ribbon: Plot dialog ▸ Plot style table ▸ Edit…Command: PLOTAlias: STYLESMANAGER

A plot style table decides how objects come out on paper: which colour, how thick, which linetype, how much screening. There are two kinds, compatible with AutoCAD:

  • CTB (color-dependent) — one "style" per object colour (Color_1 … Color_255): every red line plots the same way.
  • STB (named) — named styles (Normal, Thick…) assigned to objects or layers.

KufCad installs three tables in ~/.kufcad/plotstyles: acad.ctb (objects unchanged), monochrome.ctb (every colour plots black) and acad.stb.

Using a table when plotting

  1. Open the Plot dialog, in the Colors & lineweights section click the Style table box 1 and pick a table.
Choosing a style table
Figure 11.44 — The Style table list 1: None, acad.ctb, acad.stb, monochrome.ctb.
  1. To set lineweights by colour without a table file: turn on Pens per color and pick a set from Standard sets ▾ 1; the pen table 2 lists each colour with its plot colour and lineweight, editable row by row.
The pen table by colour
Figure 11.45 — Standard sets 1 → Standard pen set — black (ISO 128): the pen table 2 sets lineweights by colour, plotted black.
  1. Click Plot to PDF…. You can edit any row of the pen table right in the dialog; Defaults restores the standard 7-colour table, Save .ctb… saves the pen table to a file, Load .ctb… loads a .ctb file.

Editing a table: the Plot Style Table Editor

Click Edit… (next to the style table box). The dialog has three tabs:

The Plot Style Table Editor
Figure 11.46 — The table editor: the General · Table View · Form View tabs, the style list on the left and the Save & Close / Save As… buttons.
TabContent
GeneralTable type (CTB or STB), description, and the global scale factor (Apply global scale factor, Scale factor)
Table ViewA summary of every style: colour, screening, linetype, lineweight, description
Form ViewEdit one style: Color (or Use object color), Dither, Grayscale, Pen #, Virtual pen #, Screening (0–100), Linetype, Adaptive, Lineweight, line end / join style, fill style

An STB table also has a name box with Add to add a style and Delete Style to remove one. Finish with Save & Close (overwrite the file), Save As… (save as another file) or Cancel.

The STYLESMANAGER command opens the style-table folder through the operating system's file dialog (it does not ask for a name on the command line); pick a .ctb / .stb file to edit, or type a new name to create a table.