Welcome! Log In Create A New Profile

Advanced

open scad help

Posted by chris33 
open scad help
March 12, 2013 03:42AM
ok i made a plate now i want to add a part from another scad and move it so i opened my plate.scad and i put at to include and it appears yipee but im stuck how do i maneuver the part.scad i put translate command afterwards and nothing moved basically i put

include
translate ([20,02,30]);

what have i done incorrect hat am i missing for it to move to the postion i want it thanks
Re: open scad help
March 12, 2013 04:23AM
You have to do:
translate([x,y,z])
    import("my.stl", convexity=5);


Bob Morrison
Wörth am Rhein, Germany
"Luke, use the source!"
BLOG - PHOTOS - Thingiverse
Re: open scad help
March 12, 2013 04:27AM
Create module in your included .scad file:
module mymodule() {
        cube([10, 10, 10]);
}
then you can instantiate and translate it in another file like this:
use <./mymodule.scad>

translate([10, 10, 10]) mymodule();
Re: open scad help
March 12, 2013 02:51PM
Just a note its isnt a stl its scad file

Edited 1 time(s). Last edit at 03/12/2013 02:52PM by chris33.
Sorry, only registered users may post in this forum.

Click here to login