discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

SVG import layers?

G
gasstationwithoutpumps
Wed, Jul 31, 2019 1:22 PM

Does SVG import accept the layer= argument, the way that dxf import
supposedly does? (I don't use DXF, so haven't checked whether the manual is
correct.)

The documentation at
https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/The_OpenSCAD_Language
does not mention SVG import, so I'm not sure what is supposed to work for
it.


gasstationwithoutpumps.wordpress.com
www.thingiverse.com/gasstationwithoutpumps/things

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

Does SVG import accept the layer= argument, the way that dxf import supposedly does? (I don't use DXF, so haven't checked whether the manual is correct.) The documentation at https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/The_OpenSCAD_Language does not mention SVG import, so I'm not sure what is supposed to work for it. ----- gasstationwithoutpumps.wordpress.com www.thingiverse.com/gasstationwithoutpumps/things -- Sent from: http://forum.openscad.org/
TP
Torsten Paul
Wed, Jul 31, 2019 6:34 PM

Hi!

On 31.07.19 15:22, gasstationwithoutpumps wrote:

Does SVG import accept the layer= argument, the way that dxf import
supposedly does? (I don't use DXF, so haven't checked whether the manual is
correct.)

No, SVG has no layers. There might be the option to add support
for what Inkscape calls layers but that will likely be specific
to Inkscape.

See https://github.com/openscad/openscad/issues/2383 for some
details including someone who actually worked on the SVG spec.

The documentation at
https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/The_OpenSCAD_Language
does not mention SVG import, so I'm not sure what is supposed to work for
it.

It's in the user manual, and still unfinished as it takes
quite a bit of time to create documentation...
https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/SVG_Import

ciao,
Torsten.

Hi! On 31.07.19 15:22, gasstationwithoutpumps wrote: > Does SVG import accept the layer= argument, the way that dxf import > supposedly does? (I don't use DXF, so haven't checked whether the manual is > correct.) No, SVG has no layers. There might be the option to add support for what Inkscape calls layers but that will likely be specific to Inkscape. See https://github.com/openscad/openscad/issues/2383 for some details including someone who actually worked on the SVG spec. > The documentation at > https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/The_OpenSCAD_Language > does not mention SVG import, so I'm not sure what is supposed to work for > it. It's in the user manual, and still unfinished as it takes quite a bit of time to create documentation... https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/SVG_Import ciao, Torsten.
G
gasstationwithoutpumps
Wed, Jul 31, 2019 10:32 PM

Thank you for the pointer to
https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/SVG_Import

There is no pointer to it from
https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/The_OpenSCAD_Language

What other pages are there to the manual that are "hidden" by not having any
mention on the top page?  I don't know what to look for if there is no
mention at the top level.

It would be nice to be able to specify a subset of an SVG file (by group
name or color, for example) for import, so that an SVG file with several
objects that are carefully aligned could be imported and then the objects
handled separately (with different height extrusions, for example).
Inkscape seems to implement layers by group commands in svg, so restricting
by group name would be the closest equivalent of layer names in dxf.


gasstationwithoutpumps.wordpress.com
www.thingiverse.com/gasstationwithoutpumps/things

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

Thank you for the pointer to https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/SVG_Import There is no pointer to it from https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/The_OpenSCAD_Language What other pages are there to the manual that are "hidden" by not having any mention on the top page? I don't know what to look for if there is no mention at the top level. It would be nice to be able to specify a subset of an SVG file (by group name or color, for example) for import, so that an SVG file with several objects that are carefully aligned could be imported and then the objects handled separately (with different height extrusions, for example). Inkscape seems to implement layers by group commands in svg, so restricting by group name would be the closest equivalent of layer names in dxf. ----- gasstationwithoutpumps.wordpress.com www.thingiverse.com/gasstationwithoutpumps/things -- Sent from: http://forum.openscad.org/
TP
Torsten Paul
Wed, Jul 31, 2019 10:59 PM

On 01.08.19 00:32, gasstationwithoutpumps wrote:

That is the Language Reference Section.

The top level page is https://en.wikibooks.org/wiki/OpenSCAD_User_Manual
and the SVG Import is linked there.

It would be nice to be able to specify a subset of an SVG file (by group
name or color, for example) for import, so that an SVG file with several
objects that are carefully aligned could be imported and then the objects
handled separately (with different height extrusions, for example).
Inkscape seems to implement layers by group commands in svg, so restricting
by group name would be the closest equivalent of layer names in dxf.

Yes, the specifically named (by non-standard parameter) group is
probably the best option. That's pretty much the conclusion from
the discussion in the linked github issue. The inclusion of
layers directly into SVG does not seem to have made much progress.

ciao,
Torsten.

On 01.08.19 00:32, gasstationwithoutpumps wrote: > There is no pointer to it from > https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/The_OpenSCAD_Language That is the Language Reference Section. The top level page is https://en.wikibooks.org/wiki/OpenSCAD_User_Manual and the SVG Import is linked there. > It would be nice to be able to specify a subset of an SVG file (by group > name or color, for example) for import, so that an SVG file with several > objects that are carefully aligned could be imported and then the objects > handled separately (with different height extrusions, for example). > Inkscape seems to implement layers by group commands in svg, so restricting > by group name would be the closest equivalent of layer names in dxf. Yes, the specifically named (by non-standard parameter) group is probably the best option. That's pretty much the conclusion from the discussion in the linked github issue. The inclusion of layers directly into SVG does not seem to have made much progress. ciao, Torsten.
G
gasstationwithoutpumps
Thu, Aug 1, 2019 4:17 AM

tp3 wrote

On 01.08.19 00:32, gasstationwithoutpumps wrote:

That is the Language Reference Section.

The top level page is https://en.wikibooks.org/wiki/OpenSCAD_User_Manual
and the SVG Import is linked there.

Oops!  Thanks for the correction.  I had saved the link to the language
reference section, thinking it was the top level.  I'm used to documentation
in which the language reference is complete and authoritative, with other
sections giving tutorials—it had not occurred to me that chunks of the
language were not included in the reference manual.


gasstationwithoutpumps.wordpress.com
www.thingiverse.com/gasstationwithoutpumps/things

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

tp3 wrote > On 01.08.19 00:32, gasstationwithoutpumps wrote: >> There is no pointer to it from >> https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/The_OpenSCAD_Language > > That is the Language Reference Section. > > The top level page is https://en.wikibooks.org/wiki/OpenSCAD_User_Manual > and the SVG Import is linked there. Oops! Thanks for the correction. I had saved the link to the language reference section, thinking it was the top level. I'm used to documentation in which the language reference is complete and authoritative, with other sections giving tutorials—it had not occurred to me that chunks of the language were not included in the reference manual. ----- gasstationwithoutpumps.wordpress.com www.thingiverse.com/gasstationwithoutpumps/things -- Sent from: http://forum.openscad.org/