Skip to content

How to create dimensioned drawings? #61

@ToddG

Description

@ToddG

WHAT
I'd like to create dimensioned drawings for shop work.

WHY
For me, solidypython and openscad are tools for generating shop drawings, not for sending to a 3D printer.

HOW
I see that OpenSCAD has a library for creating dimensioned lines:

How can I use this openscad library in SolidPython?

For instance, here's one of the examples:

cube.py

#! /usr/bin/env python

from solid2 import cube, sphere, difference, set_global_fn
from solid2 import import_scad
import_scad("dimlines.scad")

set_global_fn(72)


difference()(
    cube([100, 20, 30]),
    sphere(5)
).save_as_scad()

I have downloaded the dimlines.scad file to the same directory as the "cube.py" file above. How do I use the dimlines scad utilities to generate technical drawing lines etc?

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