Jump to content
Ultimaker Community of 3D Printing Experts

OpenSCAD plugin (official thread)


thopiekar
 Share

Recommended Posts

  • 1 year later...
Posted · OpenSCAD plugin (official thread)

Could be a great Plugin if it was possible to load a Scad File. But with every SCAD file ( Except the sample file present in your source code) I always get the same Message  :  File Not valid ! . 

Even with a basic Script (A calibration cube creation)  I've got an error message and this script is not very different from the sample file.

// Calibration cube 20x20
font = "Arial:style=Bold";

cube_size = 20;
letter_size = 10;
letter_height = 2;

o = cube_size / 2 - letter_height / 2;

module letter(l) {
  color("Yellow")
  linear_extrude(height = letter_height) {
    text(l, size = letter_size, font = font, halign = "center", valign = "center");
  }
}

difference() {
  color("gray") 
  cube(cube_size, center = true);
  translate([0, -o, 0]) rotate([90, 0, 0]) letter("X");
  translate([o, 0, 0]) rotate([90, 0, 90]) letter("Y");
  translate([0, 0, o])  letter("Z");
}

Note this script run fine on OpenSCAD version 2019.05 . Herewith the script and the STL generated from OpenSCAD

CalibrationCube.scad.zip CalibrationCube.stl

  • Link to post
    Share on other sites

    Posted (edited) · OpenSCAD plugin (official thread)

    Oup's ... finally it was just an issue of PATH declaration on my computer.

    It works now !  (With basic file still have issue with some advanced SCad)

     

    Edited by Cuq
  • Link to post
    Share on other sites

    Posted · OpenSCAD plugin (official thread)

    Tips & Tricks : Using the OpenScad interface and the basic 'Text' function to create rapid custom support, without too many CAD effort.

     

    // Support text
    // Support V Y E
    TextParam = "Y"; //  Text
    
    Text_Size = 12;  //  Text size
    Text_Thickness = 4;  //  Text thickness
    Radius = 0.5;  //  Text radius
    fnt = "Arial:style=Regular"; //  Police texte
    $fn=100;
    
    color("Red")
        minkowski() {
            rotate([90,0,0]) {
            linear_extrude(height = Text_Thickness) {
            text(text = TextParam, size = Text_Size, font = fnt );
                }
        }
    	cylinder(r=Radius,h=0.5);
    }

     

    Using Letter : Y, V, E

    Lettre.JPG

  • Link to post
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
     Share

    • Our picks

      • The Ultimaker Showcase — October 14. What's new?
        Your dear friends at Ultimaker have some exciting news and insights for you!
         
        • 0 replies
      • New here? Get ahead with a free onboarding course
        Hi,
         
        Often getting started is the most difficult part of any process. A good start sets you up for success and saves you time and energy that could be spent elsewhere. That is why we have a onboarding course ready for
        Ultimaker S5 Pro Bundle, Ultimaker S5, Ultimaker S3 Ultimaker 2+ Connect.   
        They're ready for you on the Ultimaker Academy platform. All you need to do to gain access is to register your product to gain free access. 
        Ready? Register your product here in just 60 seconds.
          • Like
        • 10 replies
    ×
    ×
    • Create New...