SolidCode/SolidPython

combine translate and rotate

Closed this issue · 6 comments

in openscad I use:

translate([10,0,5])
rotate([0,90,0])
cylinder(d=50, h=200);

can't figure out how to write that with solid as it is not accepting this statement:
translate((10,0,5))rotate((0,90,0))(cylinder(d=50, h=200))

I have installed solid as pip install solidpython
it is version 1.1.3 and I run it with python 3.12 on ubuntu
rotate(...) will add a colon ; after the command making it useless!
runtime error for .rotate
'cylinder' object has no attribute 'rotate'

thanks but these examples use solid2. how to install that?

Great, thanks, looks much better now!