Skip to content

AttributeError: 'Workplane' object has no attribute 'cylinder' #1654

@WWWladWWW

Description

@WWWladWWW

In cadquery 2.4.0, I get AttributeError: 'Workplane' object has no attribute 'cylinder' when i running this simple programm in CQ-editor:

import cadquery as cq
# Create the cylinder
cylinder = c =cq.Workplane().cylinder(5,1)
# Display the result
show_object(cylinder)

Meanwhile if i change attribute to box it works just fine:

import cadquery as cq
# Create the cylinder
cylinder = c =cq.Workplane().box(5,1,1)
# Display the result
show_object(cylinder)

What do i do wrong?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions