Discussion:
[OpenSCAD] Import stl files with Openscad on mac
Gianpaolo
2018-03-29 10:44:56 UTC
Permalink
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/
doug moen
2018-03-29 13:37:02 UTC
Permalink
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”);
Post by 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
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Gianpaolo
2018-03-29 14:08:21 UTC
Permalink
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/
doug moen
2018-03-29 14:25:49 UTC
Permalink
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.
Post by 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
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Gianpaolo
2018-03-29 14:50:40 UTC
Permalink
What should I write more to have three lines?



--
Sent from: http://forum.openscad.org/
Hugo Jackson
2018-03-29 15:13:35 UTC
Permalink
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");
Post by Gianpaolo
What should I write more to have three lines?
--
Sent from: http://forum.openscad.org/
_______________________________________________
OpenSCAD mailing list
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Gianpaolo
2018-03-29 15:39:23 UTC
Permalink
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/
Gianpaolo
2018-03-29 15:56:50 UTC
Permalink
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/
Apres
2018-03-29 16:16:26 UTC
Permalink
STL files are NOT scripts... they are static objects... so you can’t revise them directly
Post by 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
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Gianpaolo
2018-03-29 16:35:03 UTC
Permalink
Ok, thanks



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

Loading...