Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(50)  |  Call(50)  |  Derive(0)  |  Import(0)

src/h/e/heekspython-HEAD/examples/example.py   heekspython(Download)
 
    cad.line(-beam_width/2.0,-beam_height/2.0,beam_width/2.0,-beam_height/2.0)
    cad.add(sketch,cad.getlastobj())
    cad.line(-beam_width/2.0,-beam_height/2.0,-beam_width/2.0,-beam_height/2.0+beam_thickness)
    cad.add(sketch,cad.getlastobj())
    cad.line(-beam_width/2.0,-beam_height/2.0+beam_thickness,-beam_thickness/2.0,-beam_height/2.0+beam_thickness)
    cad.add(sketch,cad.getlastobj())
    cad.line(beam_thickness/2.0,-beam_height/2.0+beam_thickness,beam_width/2.0,-beam_height/2.0+beam_thickness)
    cad.add(sketch,cad.getlastobj())
    cad.add(sketch,cad.getlastobj())
    cad.line(beam_width/2.0,-beam_height/2.0+beam_thickness,beam_width/2.0,-beam_height/2.0)
    cad.add(sketch,cad.getlastobj())
 
    cad.line(beam_thickness/2.0,-beam_height/2.0+beam_thickness,beam_thickness/2.0,beam_height/2.0-beam_thickness)

src/h/e/heekspython-HEAD/examples/facegear.py   heekspython(Download)
    cad.line(0,0, -.0625,.1083)
    l3 = cad.getlastobj()    
    cad.add(sketch,l1)
    cad.add(sketch,l2)
    cad.add(sketch,l3)

src/h/e/heekspython-HEAD/examples/parametric_rectangle.py   heekspython(Download)
    cad.line(originx,originy+length,originx,originy)
    l4= cad.getlastobj()
    cad.add(sketch,l1)
    cad.add(sketch,l2)
    cad.add(sketch,l3)
    cad.add(sketch, l4)

src/h/e/heekspython-HEAD/examples/fillets2.py   heekspython(Download)
l4= cad.getlastobj()
 
cad.add(sketch,l1)
cad.add(sketch,l2)
cad.add(sketch,l3)
cad.add(sketch, l4)
cad.fillet2d(sketch,0,1,0, .1)
f4= cad.getlastobj()
cad.add(sketch,f1)
cad.add(sketch,f2)
cad.add(sketch,f3)

src/h/e/heekspython-HEAD/examples/fillets.py   heekspython(Download)
cad.line(0,2,0,1)
l4= cad.getlastobj()
cad.add(sketch,l1)
cad.add(sketch,l2)
cad.add(sketch,l3)
cad.add(sketch, l4)

src/h/e/heekspython-HEAD/examples/revolve_it.py   heekspython(Download)
cad.line(0,2,0,1)
l4= cad.getlastobj()
cad.add(sketch,l1)
cad.add(sketch,l2)
cad.add(sketch,l3)
cad.add(sketch, l4)

src/h/e/heekspython-HEAD/examples/fillet0.py   heekspython(Download)
cad.line(4,1,4,2)
l2= cad.getlastobj()
cad.add(sketch,l1)
cad.add(sketch,l2)
cad.fillet2d(sketch,4,1,0,.1)

src/h/e/heekspython-HEAD/examples/polar_array.py   heekspython(Download)
 
            cad.point(x,y,z)
            cad.add(sketch,cad.getlastobj())            
            data=str('X%.4f Y%.4f Z%.4f '% (x, y, z)+'\n')