discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Import stl files with Openscad on mac

G
Gianpaolo
Thu, Mar 29, 2018 10:44 AM

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/

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/
DM
doug moen
Thu, Mar 29, 2018 1:37 PM

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 gpau@ticino.com 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
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

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 <gpau@ticino.com> 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 > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >
G
Gianpaolo
Thu, Mar 29, 2018 2:08 PM

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/

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/
DM
doug moen
Thu, Mar 29, 2018 2:25 PM

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 gpau@ticino.com 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
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

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 <gpau@ticino.com> 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 > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >
G
Gianpaolo
Thu, Mar 29, 2018 2:50 PM

What should I write more to have three lines?

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

What should I write more to have three lines? -- Sent from: http://forum.openscad.org/
HJ
Hugo Jackson
Thu, Mar 29, 2018 3:13 PM

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 gpau@ticino.com wrote:

What should I write more to have three lines?

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


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

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 <gpau@ticino.com> wrote: > > What should I write more to have three lines? > > > > -- > Sent from: http://forum.openscad.org/ > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
G
Gianpaolo
Thu, Mar 29, 2018 3:39 PM

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/

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/
G
Gianpaolo
Thu, Mar 29, 2018 3:56 PM

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/

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/
A
Apres
Thu, Mar 29, 2018 4:16 PM

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 gpau@ticino.com 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
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

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 <gpau@ticino.com> 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 > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
G
Gianpaolo
Thu, Mar 29, 2018 4:35 PM

Ok, thanks

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

Ok, thanks -- Sent from: http://forum.openscad.org/