discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

change from tool 0 to tool 1

L
Louis
Sun, Jun 6, 2021 3:19 PM

what code and were would i insert it to get the printer to go from tool 0 to
tool 1 , so that the letters a are different color than the tag ?

pet_name="NAME"; //Your pet name
phone_number="000-0000000"; //Your phone number
bone_height = 5; //Tag height in mm
font_height=2; //Font height in mm

module t(t){
translate([-1,(-len(t)*3.8),bone_height])
rotate([0, 0, 90])
linear_extrude(height = font_height)
text(t, 10, $fn = 16);
}
module t2(t){
translate([-1,(-len(t)*3.8),bone_height])
rotate([0, 0, 90])
linear_extrude(height = font_height)
text(t, 7, $fn = 16);
}

//bone
//left side of bone
translate([-10,-30,0])
{
translate([20,0,0]) cylinder(h=bone_height, r=14);
cylinder(h=bone_height, r=14);
};
//right side of bone
translate([-10,30,0])
{
translate([20,0,0]) cylinder(h=bone_height, r=14);
cylinder(h=bone_height, r=14);
};
//center of bone
translate([-15,-25,0]) cube([30,50,bone_height]);
translate([0,-5,0])
t(pet_name);
translate([11,14,0]) t2(phone_number);

//tag attachment
difference(){
translate([-16,0,0]) cylinder(r=6, h=bone_height);
//prevents non-manifold
translate([-16,0,-1]) cylinder(r=3, h=((bone_height)+2));
}

--
Sent from: http://forum.openscad.org/

what code and were would i insert it to get the printer to go from tool 0 to tool 1 , so that the letters a are different color than the tag ? pet_name="NAME"; //Your pet name phone_number="000-0000000"; //Your phone number bone_height = 5; //Tag height in mm font_height=2; //Font height in mm module t(t){ translate([-1,(-len(t)*3.8),bone_height]) rotate([0, 0, 90]) linear_extrude(height = font_height) text(t, 10, $fn = 16); } module t2(t){ translate([-1,(-len(t)*3.8),bone_height]) rotate([0, 0, 90]) linear_extrude(height = font_height) text(t, 7, $fn = 16); } //bone //left side of bone translate([-10,-30,0]) { translate([20,0,0]) cylinder(h=bone_height, r=14); cylinder(h=bone_height, r=14); }; //right side of bone translate([-10,30,0]) { translate([20,0,0]) cylinder(h=bone_height, r=14); cylinder(h=bone_height, r=14); }; //center of bone translate([-15,-25,0]) cube([30,50,bone_height]); translate([0,-5,0]) t(pet_name); translate([11,14,0]) t2(phone_number); //tag attachment difference(){ translate([-16,0,0]) cylinder(r=6, h=bone_height); //prevents non-manifold translate([-16,0,-1]) cylinder(r=3, h=((bone_height)+2)); } -- Sent from: http://forum.openscad.org/
JB
Jordan Brown
Sun, Jun 6, 2021 3:23 PM

On 6/6/2021 8:19 AM, Louis wrote:

what code and were would i insert it to get the printer to go from
tool 0 to tool 1 , so that the letters a are different color than the
tag ?

Somebody with more (more than zero!) experience with multiple extruders
will probably provide more information, but I may be able to help a
little right away...

OpenSCAD per se won't help you.  The models it produces don't have any
color/material/tool marking.  (And, for STL, that's pretty much the way
it is.)  There are some ideas being floated but they haven't been
implemented.

What I believe you need to do is to generate two models, one for each
material, and then recombine them in the slicer.

Probably you would have your OpenSCAD program run in one of three
modes:  all parts (probably with preview coloring), the first material,
and the second material.

On 6/6/2021 8:19 AM, Louis wrote: > what code and were would i insert it to get the printer to go from > tool 0 to tool 1 , so that the letters a are different color than the > tag ? Somebody with more (more than zero!) experience with multiple extruders will probably provide more information, but I may be able to help a little right away... OpenSCAD per se won't help you.  The models it produces don't have any color/material/tool marking.  (And, for STL, that's pretty much the way it is.)  There are some ideas being floated but they haven't been implemented. What I believe you need to do is to generate *two* models, one for each material, and then recombine them in the slicer. Probably you would have your OpenSCAD program run in one of three modes:  all parts (probably with preview coloring), the first material, and the second material.
TP
Torsten Paul
Sun, Jun 6, 2021 4:17 PM

If it's just a small number of prints, there's another option to just
keep the model as it is and define a manual filament swap pause in
the slicer at the height where the main plate ends. This works with a
single extruder by swapping filament at that point. I don't know if
it also allows for manual tool change by sending the appropriate
g-code.

Maybe there's also some specific slicer option to swap tools at some
given height, but I don't know any details as I never had a printer
with more than one extruder.

ciao,
Torsten.

If it's just a small number of prints, there's another option to just keep the model as it is and define a manual filament swap pause in the slicer at the height where the main plate ends. This works with a single extruder by swapping filament at that point. I don't know if it also allows for manual tool change by sending the appropriate g-code. Maybe there's also some specific slicer option to swap tools at some given height, but I don't know any details as I never had a printer with more than one extruder. ciao, Torsten.
LA
Louis Arseneau
Sun, Jun 6, 2021 4:54 PM

Thank you very much

Sent from my iPhone

On Jun 6, 2021, at 13:17, Torsten Paul Torsten.Paul@gmx.de wrote:

If it's just a small number of prints, there's another option to just
keep the model as it is and define a manual filament swap pause in
the slicer at the height where the main plate ends. This works with a
single extruder by swapping filament at that point. I don't know if
it also allows for manual tool change by sending the appropriate
g-code.

Maybe there's also some specific slicer option to swap tools at some
given height, but I don't know any details as I never had a printer
with more than one extruder.

ciao,
Torsten.


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

Thank you very much Sent from my iPhone > On Jun 6, 2021, at 13:17, Torsten Paul <Torsten.Paul@gmx.de> wrote: > > If it's just a small number of prints, there's another option to just > keep the model as it is and define a manual filament swap pause in > the slicer at the height where the main plate ends. This works with a > single extruder by swapping filament at that point. I don't know if > it also allows for manual tool change by sending the appropriate > g-code. > > Maybe there's also some specific slicer option to swap tools at some > given height, but I don't know any details as I never had a printer > with more than one extruder. > > ciao, > Torsten. > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org
MM
Michael Möller
Sun, Jun 6, 2021 5:40 PM

Having a dual extruder I can confirm my experience is exactly as Jordan
Brown describes. Two STL files, combine in slicer. AND I have used
"conditionals"/"defines" in the openSCAD code to make it run in 3 "modes".

On Sun, 6 Jun 2021 at 17:31, Jordan Brown openscad@jordan.maileater.net
wrote:

On 6/6/2021 8:19 AM, Louis wrote:

what code and were would i insert it to get the printer to go from tool 0
to tool 1 , so that the letters a are different color than the tag ?

Somebody with more (more than zero!) experience with multiple extruders
will probably provide more information, but I may be able to help a little
right away...

OpenSCAD per se won't help you.  The models it produces don't have any
color/material/tool marking.  (And, for STL, that's pretty much the way it
is.)  There are some ideas being floated but they haven't been implemented.

What I believe you need to do is to generate two models, one for each
material, and then recombine them in the slicer.

Probably you would have your OpenSCAD program run in one of three modes:
all parts (probably with preview coloring), the first material, and the
second material.


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

Having a dual extruder I can confirm my experience is exactly as Jordan Brown describes. Two STL files, combine in slicer. AND I have used "conditionals"/"defines" in the openSCAD code to make it run in 3 "modes". On Sun, 6 Jun 2021 at 17:31, Jordan Brown <openscad@jordan.maileater.net> wrote: > On 6/6/2021 8:19 AM, Louis wrote: > > what code and were would i insert it to get the printer to go from tool 0 > to tool 1 , so that the letters a are different color than the tag ? > > > Somebody with more (more than zero!) experience with multiple extruders > will probably provide more information, but I may be able to help a little > right away... > > OpenSCAD per se won't help you. The models it produces don't have any > color/material/tool marking. (And, for STL, that's pretty much the way it > is.) There are some ideas being floated but they haven't been implemented. > > What I believe you need to do is to generate *two* models, one for each > material, and then recombine them in the slicer. > > Probably you would have your OpenSCAD program run in one of three modes: > all parts (probably with preview coloring), the first material, and the > second material. > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >