Import stl files with Openscad on mac

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Import stl files with Openscad on mac

Gianpaolo
Import stl files with Openscad on mac
Hello,
how can I import STL files with a Mac?

import(“User:/my name/Desktop/miocubo.stl”);
WARNING: Can’t open import file ‘”User:/my name/Desktop/miocubo.stl”‘.

Con surface(“User:/may name/Desktop/miocubo.stl”);
WARNING: Can’t open DAT file
‘/Users/paolopuggioni/Desktop/mioimport/User:/my name/Desktop/miocubo.stl’.
WARNING: PolySet has degenerate polygons

Thank you



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

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Import stl files with Openscad on mac

doug.moen
I don't know why your file name starts with "User:". I don't think that works on a Mac.

Try
import("/Users/paolopuggioni/Desktop/miocubo.stl”);

On 29 March 2018 at 06:44, Gianpaolo <[hidden email]> wrote:
Import stl files with Openscad on mac
Hello,
how can I import STL files with a Mac?

import(“User:/my name/Desktop/miocubo.stl”);
WARNING: Can’t open import file ‘”User:/my name/Desktop/miocubo.stl”‘.

Con surface(“User:/may name/Desktop/miocubo.stl”);
WARNING: Can’t open DAT file
‘/Users/paolopuggioni/Desktop/mioimport/User:/my name/Desktop/miocubo.stl’.
WARNING: PolySet has degenerate polygons

Thank you



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

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Import stl files with Openscad on mac

Gianpaolo
I inserted the search into openscad, but it gave me error

import ( "/ Users / paolopuggioni / Desktop / miocubo.stl");

ERROR: Parser error in line 3: syntax error
ERROR: Compilation failed!



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

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Import stl files with Openscad on mac

doug.moen
You are not showing the entire script, only a single line of the script. This line by itself does not produce a parser error. The syntax error is on line 3, so the script must have at least 3 lines.

On 29 March 2018 at 10:08, Gianpaolo <[hidden email]> wrote:
I inserted the search into openscad, but it gave me error

import ( "/ Users / paolopuggioni / Desktop / miocubo.stl");

ERROR: Parser error in line 3: syntax error
ERROR: Compilation failed!



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

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Import stl files with Openscad on mac

Gianpaolo
What should I write more to have three lines?



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

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Import stl files with Openscad on mac

boxcarmib
If you’re unsure about the syntax of how to load a specific STL file into OpenSCAD, drag and drop the STL file onto the OpenSCAD program.
OpenSCAD will create a new window whose sole content is the STL import statement. You can then copy and paste that line into your own program.
e.g.:

import("/Users/me/Downloads/epoxy_spatula.stl”);

Looking at some of the samples you’ve provided I would note that
1) There should be no colon “:” after “User”
        import(“User:/my name/Desktop/miocubo.stl”);
        should be:
        import(“User/myname/Desktop/miocubo.stl”);

2)It looks like you’re adding spaces in the path, where there should be none
        import ( "/ Users / paolopuggioni / Desktop / miocubo.stl”);
        should be:
        import ( "/Users/paolopuggioni/Desktop/miocubo.stl");
 


> On Mar 29, 2018, at 7:50 AM, Gianpaolo <[hidden email]> wrote:
>
> What should I write more to have three lines?
>
>
>
> --
> Sent from: http://forum.openscad.org/
>
> _______________________________________________
> OpenSCAD mailing list
> [hidden email]
> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Import stl files with Openscad on mac

Gianpaolo
If it was really useful, I never thought it would be enough to transport the
file in openscad.

Thanks so much



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

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Import stl files with Openscad on mac

Gianpaolo
Ok, the problem of importing files is solved, but it is not possible to see
the script of the file?
Or is it possible how is it done?



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

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Import stl files with Openscad on mac

boxcarmib
STL files are NOT scripts... they are static objects... so you can’t revise them directly

> On Mar 29, 2018, at 8:56 AM, Gianpaolo <[hidden email]> wrote:
>
> Ok, the problem of importing files is solved, but it is not possible to see
> the script of the file?
> Or is it possible how is it done?
>
>
>
> --
> Sent from: http://forum.openscad.org/
>
> _______________________________________________
> OpenSCAD mailing list
> [hidden email]
> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Import stl files with Openscad on mac

Gianpaolo
Ok, thanks



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

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org