gumyr / cq_warehouse

A cadquery parametric part collection

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example in docs does not work

bullestock opened this issue · comments

The "simple bearing pillow block" example in the docs results in
AttributeError: 'Workplane' object has no attribute 'clearanceHole'

Thanks for pointing this out. There is a missing import:

import cq_warehouse.extensions

(I was using a patched version of CadQuery when creating this example and therefore didn't need the import.)

The very soon to be released 0.6.0 version of cq_warehouse introduces a new Bearing module so the dev branch of this example now includes a bearing instead of just a hole.

Okay, it does indeed work with the added import. Thanks.

Fixed in the v0.6.0 release.