Kition
cadFloor Plans· featured

Two-Bedroom Apartment Plan

A 1:50 apartment floor plan with solid-filled walls, door swings, windows, furniture, room names with areas and dimensions.

Two-Bedroom Apartment Plan — CAD sample rendered by Kition

Walls are rectangles with gaps for the openings, filled together with one SOLID hatch and sent behind the outlines with draworder. Doors are a leaf line and a 90° arc; windows sit in the wall gaps on their own blue layer. An architectural dimension style (oblique ticks, DIMSCALE 50) gives the overall sizes and a continued chain along the top.

Steps

115 commands
showcase.yaml116 lines
steps:
  - {"command": "grid", "params": {"on": false}}
  - {"command": "lwdisplay", "params": {"on": true}}
  - {"command": "limits", "params": {"min": [-1400, -1400], "max": [11800, 9000]}}
  - {"command": "linetype", "params": {"load": "DASHED"}}
  - {"command": "dimstyle", "params": {"name": "Arch-1to50", "DIMSCALE": 50, "DIMTXT": 2.5, "DIMASZ": 1.5, "DIMTSZ": 1.2, "DIMEXO": 1.5, "DIMEXE": 1.5, "DIMGAP": 0.8, "DIMDEC": 0}, "as": "dimstyle"}
  - {"command": "layer.new", "params": {"name": "Walls", "color": "7", "lineweight": "0.50"}}
  - {"command": "layer.new", "params": {"name": "Wall fill", "color": "8"}}
  - {"command": "layer.new", "params": {"name": "Doors", "color": "7", "lineweight": "0.25"}}
  - {"command": "layer.new", "params": {"name": "Windows", "color": "5", "lineweight": "0.25"}}
  - {"command": "layer.new", "params": {"name": "Furniture", "color": "8", "lineweight": "0.13"}}
  - {"command": "layer.new", "params": {"name": "Text", "color": "7"}}
  - {"command": "layer.new", "params": {"name": "Dims", "color": "1"}}
  - {"command": "layer.current", "params": {"name": "Walls"}}
  - {"command": "rectang", "params": {"p1": [0, 0], "p2": [1000, 250]}, "as": "w0"}
  - {"command": "rectang", "params": {"p1": [2400, 0], "p2": [4100, 250]}, "as": "w1"}
  - {"command": "rectang", "params": {"p1": [5000, 0], "p2": [6200, 250]}, "as": "w2"}
  - {"command": "rectang", "params": {"p1": [7000, 0], "p2": [8300, 250]}, "as": "w3"}
  - {"command": "rectang", "params": {"p1": [9500, 0], "p2": [10400, 250]}, "as": "w4"}
  - {"command": "rectang", "params": {"p1": [0, 7350], "p2": [1200, 7600]}, "as": "w5"}
  - {"command": "rectang", "params": {"p1": [2800, 7350], "p2": [3400, 7600]}, "as": "w6"}
  - {"command": "rectang", "params": {"p1": [4800, 7350], "p2": [7000, 7600]}, "as": "w7"}
  - {"command": "rectang", "params": {"p1": [8800, 7350], "p2": [10400, 7600]}, "as": "w8"}
  - {"command": "rectang", "params": {"p1": [0, 250], "p2": [250, 4200]}, "as": "w9"}
  - {"command": "rectang", "params": {"p1": [0, 5800], "p2": [250, 7350]}, "as": "w10"}
  - {"command": "rectang", "params": {"p1": [10150, 250], "p2": [10400, 1200]}, "as": "w11"}
  - {"command": "rectang", "params": {"p1": [10150, 2600], "p2": [10400, 5000]}, "as": "w12"}
  - {"command": "rectang", "params": {"p1": [10150, 6400], "p2": [10400, 7350]}, "as": "w13"}
  - {"command": "rectang", "params": {"p1": [250, 2900], "p2": [900, 3000]}, "as": "w14"}
  - {"command": "rectang", "params": {"p1": [2500, 2900], "p2": [3700, 3000]}, "as": "w15"}
  - {"command": "rectang", "params": {"p1": [4600, 2900], "p2": [5600, 3000]}, "as": "w16"}
  - {"command": "rectang", "params": {"p1": [3200, 250], "p2": [3300, 2900]}, "as": "w17"}
  - {"command": "rectang", "params": {"p1": [5600, 250], "p2": [5700, 3050]}, "as": "w18"}
  - {"command": "rectang", "params": {"p1": [5600, 3950], "p2": [5700, 7350]}, "as": "w19"}
  - {"command": "rectang", "params": {"p1": [5700, 2800], "p2": [6200, 2900]}, "as": "w20"}
  - {"command": "rectang", "params": {"p1": [7000, 2800], "p2": [7500, 2900]}, "as": "w21"}
  - {"command": "rectang", "params": {"p1": [7500, 250], "p2": [7600, 3000]}, "as": "w22"}
  - {"command": "rectang", "params": {"p1": [7500, 3800], "p2": [7600, 4000]}, "as": "w23"}
  - {"command": "rectang", "params": {"p1": [5700, 4000], "p2": [6300, 4100]}, "as": "w24"}
  - {"command": "rectang", "params": {"p1": [7100, 4000], "p2": [10150, 4100]}, "as": "w25"}
  - {"command": "layer.current", "params": {"name": "Wall fill"}}
  - {"command": "hatch", "params": {"handles": ["$w0.handle", "$w1.handle", "$w2.handle", "$w3.handle", "$w4.handle", "$w5.handle", "$w6.handle", "$w7.handle", "$w8.handle", "$w9.handle", "$w10.handle", "$w11.handle", "$w12.handle", "$w13.handle", "$w14.handle", "$w15.handle", "$w16.handle", "$w17.handle", "$w18.handle", "$w19.handle", "$w20.handle", "$w21.handle", "$w22.handle", "$w23.handle", "$w24.handle", "$w25.handle"], "pattern": "SOLID"}, "as": "fill"}
  - {"command": "draworder.back", "params": {"handles": ["$fill.handle"]}}
  - {"command": "layer.current", "params": {"name": "Windows"}}
  - {"command": "rectang", "params": {"p1": [1000, 0], "p2": [2400, 250]}}
  - {"command": "line", "params": {"points": [[1000, 125.0], [2400, 125.0]]}}
  - {"command": "rectang", "params": {"p1": [6200, 0], "p2": [7000, 250]}}
  - {"command": "line", "params": {"points": [[6200, 125.0], [7000, 125.0]]}}
  - {"command": "rectang", "params": {"p1": [8300, 0], "p2": [9500, 250]}}
  - {"command": "line", "params": {"points": [[8300, 125.0], [9500, 125.0]]}}
  - {"command": "rectang", "params": {"p1": [1200, 7350], "p2": [2800, 7600]}}
  - {"command": "line", "params": {"points": [[1200, 7475.0], [2800, 7475.0]]}}
  - {"command": "rectang", "params": {"p1": [3400, 7350], "p2": [4800, 7600]}}
  - {"command": "line", "params": {"points": [[3400, 7475.0], [4800, 7475.0]]}}
  - {"command": "rectang", "params": {"p1": [7000, 7350], "p2": [8800, 7600]}}
  - {"command": "line", "params": {"points": [[7000, 7475.0], [8800, 7475.0]]}}
  - {"command": "rectang", "params": {"p1": [0, 4200], "p2": [250, 5800]}}
  - {"command": "line", "params": {"points": [[125.0, 4200], [125.0, 5800]]}}
  - {"command": "rectang", "params": {"p1": [10150, 1200], "p2": [10400, 2600]}}
  - {"command": "line", "params": {"points": [[10275.0, 1200], [10275.0, 2600]]}}
  - {"command": "rectang", "params": {"p1": [10150, 5000], "p2": [10400, 6400]}}
  - {"command": "line", "params": {"points": [[10275.0, 5000], [10275.0, 6400]]}}
  - {"command": "layer.current", "params": {"name": "Doors"}}
  - {"command": "line", "params": {"points": [[4100, 250], [4100.0, 1150.0]]}}
  - {"command": "arc", "params": {"center": [4100, 250], "radius": 900, "start": 0, "end": 90}}
  - {"command": "line", "params": {"points": [[3700, 3000], [3700.0, 3900.0]]}}
  - {"command": "arc", "params": {"center": [3700, 3000], "radius": 900, "start": 0, "end": 90}}
  - {"command": "line", "params": {"points": [[7000, 2800], [7000.0, 2000.0]]}}
  - {"command": "arc", "params": {"center": [7000, 2800], "radius": 800, "start": 180, "end": 270}}
  - {"command": "line", "params": {"points": [[7600, 3800], [8400.0, 3800.0]]}}
  - {"command": "arc", "params": {"center": [7600, 3800], "radius": 800, "start": 270, "end": 360}}
  - {"command": "line", "params": {"points": [[6300, 4100], [6300.0, 4900.0]]}}
  - {"command": "arc", "params": {"center": [6300, 4100], "radius": 800, "start": 0, "end": 90}}
  - {"command": "layer.current", "params": {"name": "Furniture"}}
  - {"command": "rectang", "params": {"p1": [600, 3300], "p2": [1500, 5600], "fillet": 120}}
  - {"command": "rectang", "params": {"p1": [2200, 4000], "p2": [3200, 4900]}}
  - {"command": "circle", "params": {"center": [4300, 6200], "radius": 550}}
  - {"command": "rectang", "params": {"p1": [250, 250], "p2": [850, 2900]}}
  - {"command": "rectang", "params": {"p1": [850, 250], "p2": [3200, 850]}}
  - {"command": "circle", "params": {"center": [550, 1500], "radius": 180}}
  - {"command": "rectang", "params": {"p1": [7900, 4500], "p2": [9700, 6600]}}
  - {"command": "rectang", "params": {"p1": [8050, 6150], "p2": [8750, 6500], "fillet": 60}}
  - {"command": "rectang", "params": {"p1": [8850, 6150], "p2": [9550, 6500], "fillet": 60}}
  - {"command": "rectang", "params": {"p1": [8800, 400], "p2": [9800, 2500]}}
  - {"command": "rectang", "params": {"p1": [8950, 2050], "p2": [9650, 2400], "fillet": 60}}
  - {"command": "rectang", "params": {"p1": [5800, 350], "p2": [7400, 1050], "fillet": 150}}
  - {"command": "ellipse", "params": {"center": [7150, 2100], "major": [0, 300], "ratio": 0.65}}
  - {"command": "rectang", "params": {"p1": [5800, 1900], "p2": [6300, 2700]}}
  - {"command": "circle", "params": {"center": [5010, 6610], "radius": 180}}
  - {"command": "circle", "params": {"center": [4300, 7020], "radius": 180}}
  - {"command": "circle", "params": {"center": [3590, 6610], "radius": 180}}
  - {"command": "circle", "params": {"center": [3590, 5790], "radius": 180}}
  - {"command": "circle", "params": {"center": [4300, 5380], "radius": 180}}
  - {"command": "circle", "params": {"center": [5010, 5790], "radius": 180}}
  - {"command": "layer.current", "params": {"name": "Text"}}
  - {"command": "text", "params": {"at": [2900, 5300], "text": "LIVING / DINING", "height": 200, "justify": "MC"}}
  - {"command": "text", "params": {"at": [2900, 5020], "text": "23.3 m²", "height": 150, "justify": "MC"}}
  - {"command": "text", "params": {"at": [2000, 1900], "text": "KITCHEN", "height": 200, "justify": "MC"}}
  - {"command": "text", "params": {"at": [2000, 1620], "text": "7.8 m²", "height": 150, "justify": "MC"}}
  - {"command": "text", "params": {"at": [4450, 1700], "text": "ENTRY", "height": 200, "justify": "MC"}}
  - {"command": "text", "params": {"at": [4450, 1420], "text": "6.1 m²", "height": 150, "justify": "MC"}}
  - {"command": "text", "params": {"at": [6650, 1500], "text": "BATH", "height": 200, "justify": "MC"}}
  - {"command": "text", "params": {"at": [6650, 1220], "text": "4.6 m²", "height": 150, "justify": "MC"}}
  - {"command": "text", "params": {"at": [7900, 7000], "text": "BEDROOM 1", "height": 200, "justify": "MC"}}
  - {"command": "text", "params": {"at": [7900, 6720], "text": "14.5 m²", "height": 150, "justify": "MC"}}
  - {"command": "text", "params": {"at": [8900, 3000], "text": "BEDROOM 2", "height": 200, "justify": "MC"}}
  - {"command": "text", "params": {"at": [8900, 2720], "text": "9.6 m²", "height": 150, "justify": "MC"}}
  - {"command": "text", "params": {"at": [6600, 3450], "text": "HALL", "height": 200, "justify": "MC"}}
  - {"command": "text", "params": {"at": [6600, 3170], "text": "2.0 m²", "height": 150, "justify": "MC"}}
  - {"command": "text", "params": {"at": [0, -1100], "text": "APARTMENT 4B  -  FLOOR PLAN  1:50", "height": 280}}
  - {"command": "layer.current", "params": {"name": "Dims"}}
  - {"command": "dimlinear", "params": {"p1": [0, 0], "p2": [10400, 0], "at": [5200.0, -600]}, "as": "dw"}
  - {"command": "dimlinear", "params": {"p1": [10400, 0], "p2": [10400, 7600], "at": [11100, 3800.0]}, "as": "dh"}
  - {"command": "dimlinear", "params": {"p1": [0, 7600], "p2": [5650, 7600], "at": [2800, 8100]}, "as": "c1"}
  - {"command": "dimcontinue", "params": {"points": [[7550, 7600], [10400, 7600]]}}
  - {"command": "drawing.inspect", "params": {}, "as": "di"}

Checks

5 checks on every build
  • inspect.layers = {"count":9,"all":{"on":true}}
  • results.di.counts = {"Hatch":1,"Arc":5,"Dimension":5}
  • results.dimstyle.current = "Arch-1to50"
  • Diagnostics: none, the kit's own check finds nothing wrong
  • The saved document opens again, and its thumbnail matches thumb.png within the render tolerance

Related

More CAD samples
cadFloor Plans

U-Shaped Staircase Plan

A 1:25 plan of a two-flight stair with a landing, treads made with a rectangular array, a walking line with arrowhead, break line and chained dimensions.

45 objects; 9 layers
cadFloor Plans

Open Office Desk Layout

A 1:100 office furniture plan with sixteen workstations from one block in arrays, a meeting room with eight chairs in a polar array and a tea point.

43 objects; 8 layers
cadMechanical Parts

Pipe Flange DN100

A front view and a hatched section of a bolted pipe flange at 1:2, with an eight-hole bolt circle, centre lines, diameters and a title block.

41 objects; 9 layers
cadSite & Landscape

Garden House Site Plan

A 1:200 site plan with the plot boundary, a hatched house, drive and terrace, trees drawn as revision clouds, contours, a lawn, north arrow and scale bar.

47 objects; 10 layers