Skip to content

Main example fails; NameError: name 'queryabolt' is not defined #4

@bkpgh

Description

@bkpgh

If I copy and paste your example in cq-editor, it fails with the NameError in the title:

`import cq_queryabolt
import cadquery as cq

class Workplane(queryabolt.WorkplaneMixin, cq.Workplane):
pass

box = Workplane().box(25, 10, 10)

A nutcatch on the bottom:

result = box.faces("<Z").workplane().tag("center").nutcatchParallel("M3")

And a bolt hole through:

result = result.faces(">Z").workplane().boltHole("M3")

show_object(result, name="simple")`

If
class Workplane(queryabolt.WorkplaneMixin, cq.Workplane):
is replaced with
class Workplane(cq_queryabolt.WorkplaneMixin, cq.Workplane):
it works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions