KK Tools Help · Fill & Line Color
KK Tools Help › Fill & Line Color

Fill & Line Color

A palette for the colors and pens of 2D drafting: it follows your selection, edits fill colors as RGB, sets pens and pen weights, gives lines an RGB color, selects everything of the same color or pen, and simplifies dense linework.

It works on fills and on lines, arcs and circles, polylines and splines in the floor plan, sections, elevations, interior elevations, details, worksheets, 3D Documents and layouts. Every change goes to the whole selection as one step you can undo.

Note: In Archicad, fills can have their own RGB colors, but lines only ever take a pen. Fill & Line Color gives lines RGB colors through pens set aside for it. See Give lines an RGB color.

Workflow

Open the palette

To open the palette:

  1. Choose KK Tools › Fill & Line Color › Fill & Line Color Palette, or Window › Palettes › Fill & Line Color.
  2. Select fills or lines in the drawing. The palette shows their colors and pens straight away.

The palette stays open as you work and updates whenever the selection changes. Choose the command again, or click the palette's close button, to hide it.

Change fill colors

To change the color of the selected fills:

  1. Select one or more fills.
  2. In Edit, set Apply to to Fill foreground, Fill background or Fill foreground + background.
  3. Set the color with the R G B or H S V sliders or fields, type a Hex code (such as #9A5F3F), or click Pick Color… for the Mac color panel.

A slider changes the fills when you let go of it; a field or the hex code when you press Return or leave it. Fills that used a pen for that side become RGB fills.

ButtonWhat it does
DesaturateTurns the selected fills' color (the side in Apply to) into the gray of the same lightness.
Convert Pens to RGBGives fills that take their color from a pen that same color as RGB, so they no longer change when the pen does.
Tip: With nothing selected, the color in Edit is only a search color for Select Same; nothing in the drawing changes.

Change pens and pen weights

To give the selection a pen:

  1. Select fills or lines and set Apply to.
  2. Pick the pen in the Pen picker. For Fill background the picker also offers transparent and window background.

A fill that had an RGB color on that side takes the pen instead.

Weight beside the picker shows the pen's weight in the active pen set, in points as in Options › Pens & Colors. Typing a new weight changes the pen itself in the active pen set, so everything drawn with that pen changes, as in Pens & Colors.

Give lines an RGB color

Archicad's lines, arcs, polylines and splines only take a pen. To give them any RGB color, set aside a range of pens that KK Tools may recolor (once per project), then color lines like fills.

To set aside the RGB pens:

  1. In Edit, click RGB Pens….
  2. Click the pens KK Tools may use in the pen grid; Shift-click another pen to add or remove the whole rectangle between the two. Or type ranges such as 10-20, 30-40.
  3. Click OK. The range is saved in the project.

To color lines:

  1. Select the lines and set Apply to to Line pen.
  2. Set the color with the sliders, the hex code or Pick Color….

For each different pen among the selected lines, KK Tools takes a pen from the range (or one it already gave that color and weight), sets it to the color in every pen set with the weight the lines' old pen has in that pen set, and moves the lines onto it. The lines change color and keep their lineweight in every pen set. The palette shows how many RGB pens are used.

Note: Pick a range your project doesn't otherwise use: KK Tools overwrites those pens' colors, weights and descriptions. Pens are shared, so anything else drawn with an RGB pen changes with it.

Select by color or pen

To select everything of the same color or pen:

  1. Select one fill or line to match, or select nothing and set the search color in Edit.
  2. In Select Same, set Match: a fill side, both fill sides, or Line pen.
  3. Click Select Same. Shift-click it to add to the current selection instead.
OptionWhat it does
Color tolerance0 finds exactly the same color (at 8 bits per channel); higher values also find colors that differ by up to that much in each of red, green and blue.
Include pen-based fillsAlso finds fills whose color comes from a pen of that color. Off: only fills with that RGB color.
Only visible, editable layersLeaves out elements on hidden or locked layers.

Select Same searches the current window. Line pen finds lines, arcs, polylines and splines drawn with the same pen.

Simplify linework

Linework copied out of a 3D Document can hold tens of thousands of short lines: every round hole or edge becomes a ring of tiny segments, which makes selecting and redrawing slow. Simplify Linework rebuilds it with far fewer elements that draw the same.

To simplify linework:

  1. Select the lines, for example everything you pasted from a 3D Document.
  2. Choose KK Tools › Fill & Line Color › Simplify Linework…, or click Simplify Linework… in the palette.
  3. Choose the options (see Simplify Linework dialog) and click Simplify.

The palette then shows the result, for example 14051 lines → 2310 elements. It's one step: Undo brings the original lines back.

Note: Only lines of the same layer, pen, line type, line category, drawing order and group are joined, so nothing changes look. Arcs and existing polylines are left as they are.
Tip: Archicad's own Edit › Reshape › Linework Consolidation can also merge lines across layers or pens and clean up overlaps of different line types. Run it first if you need that, then Simplify Linework to rebuild the curves.

The palette

Palette layout

The Fill & Line Color palette
The palette with nothing selected
PartWhat it shows or does
HeaderThe KK Tools logo, the version and build date (quote them with any problem report), and ? for this help.
Status lineHow many fills and lines are selected. With thousands selected, the colors are read from the first 300 of each; edits and Select Same still use all of them.
SelectionThe fill foreground, fill background and line pen of the selection: a swatch, the hex code, and the pen when it's pen-based. varies when they differ. Simplify Linework… is here too.
Select SameSee Select by color or pen. The line under the button reports what was found.
Edit › Apply toWhat the pen and color go to: a fill side, both fill sides, or the line pen. With only fills or only lines selected it switches to suit.
Edit › Pen, WeightSee Change pens and pen weights.
Edit › RGB colorPreview, hex code, Pick Color…, RGB and HSV sliders, Desaturate and Convert Pens to RGB. For lines it works once RGB pens are set up.
RGB pens for linesHow many of the set-aside pens are used, and RGB Pens….

RGB Pens dialog

PartWhat it does
Pen gridThe active pen set's 255 pens, 20 across as in Pens & Colors. A purple bar under a pen marks it as part of the range. Click to add or remove; Shift-click to do the rectangle from the last pen clicked.
RangeThe same range as pen numbers, which you can also type, such as 10-20, 30-40, 55.
ClearEmpties the range.
Forget Given ColorsFrees every pen KK Tools has handed out. Their colors stay until they're reused.

Simplify Linework dialog

OptionWhat it does
Join lines that lie on one lineLines on the same line that touch or overlap become one line; exact duplicates go.
Rings into circles and ellipsesA closed ring of 8 or more short lines becomes a true circle, or an ellipse (round holes seen in perspective), when every corner lies on it.
Chains into polylinesRemaining connected lines become one polyline each.
Remove lines shorter thanDeletes slivers below the length you set. Off by default.
Ends closer than this count as touchingThe tolerance, in mm. 0.5 mm suits most linework; raise it if lines that look joined stay apart.

Reference

Troubleshooting

IfThen
The RGB sliders are gray with lines selectedSet up RGB pens first: RGB Pens….
"All RGB pens are in use"Widen the range in RGB Pens…, or click Forget Given Colors if the old colors aren't needed any more.
A pen weight change affected other elementsWeight changes the pen itself, for everything drawn with it. Undo, or give the selection its own pen first.
Select Same misses fills that look the sameRaise Color tolerance a little, or tick Include pen-based fills.
Simplify Linework left some rings as polylinesTheir corners don't lie on one ellipse (for example a ring cut by another edge). They still draw the same.
Something else went wrongChoose KK Tools › Send Problem Report….

Install, update & uninstall

TaskHow
InstallOpen KK Tools <version>.pkg. Under Installation Type, tick Fill & Line Color (and View Cone if you want it). It adds KK Tools to every Archicad 30 in Applications.
Add or remove a toolRun the installer again with different boxes ticked.
UninstallChoose KK Tools › Uninstall KK Tools… (it asks for your password), then restart Archicad.
Add-On ManagerWith only Fill & Line Color installed, you can untick KK Tools for a session. With View Cone it stays always loaded, as it carries the KK View Cone object.
Which version do I have?It's shown at the top right of the palette.