Cocobox

CAD and BIM review

An optional add-on. When an agent writes or changes a 3D model, the chat shows it in a viewer you can turn, measure and cut. Click a spot to pin a comment, and the agent gets it with the exact place you meant.

Turn it on

  1. Open Settings, then Add-ons.

  2. Set CAD & BIM review to On. Cocobox downloads the two engines it needs for STEP, IGES and IFC, about 15 MB, and shows the progress.

  3. Set it to Off to hide the viewer. Remove engines deletes the download and frees the space at any time.

Settings, Add-ons: CAD & BIM review set to On, engines installed, 15 MB on disk, and a Remove engines button.
Settings › Add-ons.

It is off until you turn it on. While it is off, a model in the chat is a plain file name and none of the viewer loads.

What it opens

Review a model

A two-storey IFC house in the chat, cut by a section plane: the cut walls, floor slabs and roof show solid, with the stair and partitions behind, and the X, Y and Z plane buttons and a slider below.
An IFC house cut through both storeys.
A STEP gearbox in the chat with its gears, bearings and cap screws; two flange bolts are joined by a measuring line and the distance reads 59.433.
A STEP gearbox, measured bolt to bolt in millimetres.

Pin a comment

  1. Click Comment, then click the spot on the model.

  2. Write what you want changed and click Send to agent.

Comment mode on the IFC house: the living-room window is picked, the box names it (IfcWindow, Living room window and its GlobalId) and reads “Make the living-room window 600 mm wider”, with Send to agent.
Click the window, say what you want.

The agent gets your comment with the file, the 3D point, the part or element you clicked (its IFC GlobalId when the model is IFC), the camera and the section plane, much like a BCF viewpoint. If the agent is busy, the comment waits its turn like any message.

The chat: your comment with a chip naming the Living room window, IfcWindow, and the viewpoint folded under it, then agent-4 answering that the window is now 3.6 m wide, with the regenerated house and Before and After buttons.
Your comment, and the agent’s answer with the regenerated model.

In the chat your comment shows as a chip naming what you clicked. Click the chip to see the model again from where you pinned it; Viewpoint unfolds the exact details the agent got.

When the agent writes the file again, its answer shows the new version with Before and After, so you can check the change before you move on.

Before: the living-room window on the ground floor, 3.0 m wide.
Before: a 3.0 m window.
After: the same window, now 3.6 m wide, closer to the front door.
After: 3.6 m, same GlobalId.

It works the same on parts. Here the comment “Add a fillet here” on the gearbox housing came back with a 5 mm fillet where the walls meet the flange.

Comment mode on the gearbox: the housing is picked and the box reads “Add a fillet here”.
A comment on the housing.
Before: a sharp inside corner where the housing walls meet the mounting flange.
Before: a sharp corner.
After: a rounded fillet along the foot of the housing walls.
After: a 5 mm fillet all the way round.

Getting agents to write models

Agents write models with their own tools, in their own environment; Cocobox does not install them. Good choices: build123d or CadQuery for STEP, STL and glTF, IfcOpenShell for IFC, and ezdxf for DXF. Cocobox already tells every agent which formats the chat shows and to embed the model in its answer, like ![bracket](/path/to/bracket.step).

The models on this page were made that way, from short scripts: a change is a rerun. Try them in the viewer: house.ifc (IfcOpenShell: two storeys, walls, slabs, openings, a stair, materials and properties) and gearbox.step (build123d: involute gears, bearings, a filleted housing, 2.5 MB).

Agents see their models

Since 0.14.3 an agent can look at what it built before it shows you. With the add-on on, it renders the model to pictures and checks them against what you asked for.

A rendered timber cabin with a slate gable roof, a covered porch with rails and steps, and a stone chimney on the side.
“A cosy one-storey cabin with a porch, a stone chimney, two bedrooms, furnished”, as the agent rendered it.
The same cabin cut at 1.5 m: two bedrooms with double beds, a bathroom, a living room with a fireplace, sofa and rug, and a kitchen with a dining table.
The cutaway it checked every room against.

For a building, the agent first writes a design brief and asks you to confirm it; see the design brief.

Revit and DWG

The engines and your Mac