discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Re: [OpenSCAD] Rendering DXFs from Inkscape

K
kintel
Sun, Mar 1, 2015 7:24 PM

Just move it in Inkscape. I think inkscape places the origin in the bottom
left corner of the page.

--
View this message in context: http://forum.openscad.org/Rendering-DXFs-from-Inkscape-tp11789p11802.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Just move it in Inkscape. I think inkscape places the origin in the bottom left corner of the page. -- View this message in context: http://forum.openscad.org/Rendering-DXFs-from-Inkscape-tp11789p11802.html Sent from the OpenSCAD mailing list archive at Nabble.com.
B
basile
Mon, Mar 2, 2015 9:14 AM

I have been using this same tutorial for importing dxfs into my scad files.
Only on step 6 I am using the "Extensions - Modify Path - Flatten Beziers"
with a value of 0.1

Apart from that in order to exactly locate my imported dxfs I use the
"dxf_cross" mentioned here:
http://en.wikibooks.org/wiki/OpenSCAD_User_Manual/General#Getting_input

You can see how I use it lines 516-519 and lines 900-903
Code is in BasWheel.scad file
DXF files are BasSpoke1.dxf and rc1_10.dxf (I also have the source svg files
too)

Files can be found here: https://github.com/basile-laderchi/BasWheel


basile

View this message in context: http://forum.openscad.org/Rendering-DXFs-from-Inkscape-tp11789p11813.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

I have been using this same tutorial for importing dxfs into my scad files. Only on step 6 I am using the "Extensions - Modify Path - Flatten Beziers" with a value of 0.1 Apart from that in order to exactly locate my imported dxfs I use the "dxf_cross" mentioned here: http://en.wikibooks.org/wiki/OpenSCAD_User_Manual/General#Getting_input You can see how I use it lines 516-519 and lines 900-903 Code is in BasWheel.scad file DXF files are BasSpoke1.dxf and rc1_10.dxf (I also have the source svg files too) Files can be found here: https://github.com/basile-laderchi/BasWheel ----- basile -- View this message in context: http://forum.openscad.org/Rendering-DXFs-from-Inkscape-tp11789p11813.html Sent from the OpenSCAD mailing list archive at Nabble.com.
S
shadowwynd
Mon, Mar 2, 2015 1:52 PM

I use Inkscape and OpenSCAD together frequently.

my steps:

1 - Draw object in Inkscape
2 - Move object to lower left corner of page, align left/right center marker
to left page border, align top/bottom center marker with the bottom page
border (it may help to turn off the page shadow in Document Properties)
3 - Select Objects you want to export
4 - Convert to Path: Path --> Object to Path (Ctrl+Shift+C)
5 - Flatten Beziers: Extensions --> Modify Path --> Flatten Beziers
(adjust the value based on granularity you need; I use 0.3 or 0.1 for most
things)
6 - Save as Desktop Cutting Plotter (Autocad DXF R14) .DXF file
7 - Make sure the ROBO-Master spline option is unchecked, LWPOLYLINE option
is checked.  I keep the base units in mm to be consistent with OpenSCAD.
8 - import the file in OpenSCAD (e.g.  import ("drawing.dxf");    )

--
View this message in context: http://forum.openscad.org/Rendering-DXFs-from-Inkscape-tp11789p11814.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

I use Inkscape and OpenSCAD together frequently. my steps: 1 - Draw object in Inkscape 2 - Move object to lower left corner of page, align left/right center marker to left page border, align top/bottom center marker with the bottom page border (it may help to turn off the page shadow in Document Properties) 3 - Select Objects you want to export 4 - Convert to Path: Path --> Object to Path (Ctrl+Shift+C) 5 - Flatten Beziers: Extensions --> Modify Path --> Flatten Beziers (adjust the value based on granularity you need; I use 0.3 or 0.1 for most things) 6 - Save as Desktop Cutting Plotter (Autocad DXF R14) .DXF file 7 - Make sure the ROBO-Master spline option is unchecked, LWPOLYLINE option is checked. I keep the base units in mm to be consistent with OpenSCAD. 8 - import the file in OpenSCAD (e.g. import ("drawing.dxf"); ) -- View this message in context: http://forum.openscad.org/Rendering-DXFs-from-Inkscape-tp11789p11814.html Sent from the OpenSCAD mailing list archive at Nabble.com.
M
miloh
Sun, Mar 8, 2015 10:26 PM

re: processing with inkscape

you can 'resize the page to drawing' in Inkscape, which helps with
getting expected output. I inserted an optional step below that
describes how it works in my 0.91pre version that should work for most
all versions:

On Mon, Mar 2, 2015 at 5:52 AM, shadowwynd shadowwynd@gmail.com wrote:

I use Inkscape and OpenSCAD together frequently.

my steps:

1 - Draw object in Inkscape
2 - Move object to lower left corner of page, align left/right center marker
to left page border, align top/bottom center marker with the bottom page
border (it may help to turn off the page shadow in Document Properties)

Resize page to drawing:
in Inkscape, from the File menu, select 'document properties', and go
to the orientation section of the document properties dialog, click
the section pointer at 'resize page to content' to expand, and click
resize page to drawing or selection.

3 - Select Objects you want to export
4 - Convert to Path: Path --> Object to Path (Ctrl+Shift+C)
5 - Flatten Beziers: Extensions --> Modify Path --> Flatten Beziers
(adjust the value based on granularity you need; I use 0.3 or 0.1 for most
things)
6 - Save as Desktop Cutting Plotter (Autocad DXF R14) .DXF file
7 - Make sure the ROBO-Master spline option is unchecked, LWPOLYLINE option
is checked.  I keep the base units in mm to be consistent with OpenSCAD.
8 - import the file in OpenSCAD (e.g.  import ("drawing.dxf");    )

--
View this message in context: http://forum.openscad.org/Rendering-DXFs-from-Inkscape-tp11789p11814.html
Sent from the OpenSCAD mailing list archive at Nabble.com.


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

re: processing with inkscape you can 'resize the page to drawing' in Inkscape, which helps with getting expected output. I inserted an optional step below that describes how it works in my 0.91pre version that should work for most all versions: On Mon, Mar 2, 2015 at 5:52 AM, shadowwynd <shadowwynd@gmail.com> wrote: > I use Inkscape and OpenSCAD together frequently. > > my steps: > > 1 - Draw object in Inkscape > 2 - Move object to lower left corner of page, align left/right center marker > to left page border, align top/bottom center marker with the bottom page > border (it may help to turn off the page shadow in Document Properties) Resize page to drawing: in Inkscape, from the File menu, select 'document properties', and go to the orientation section of the document properties dialog, click the section pointer at 'resize page to content' to expand, and click resize page to drawing or selection. > 3 - Select Objects you want to export > 4 - Convert to Path: Path --> Object to Path (Ctrl+Shift+C) > 5 - Flatten Beziers: Extensions --> Modify Path --> Flatten Beziers > (adjust the value based on granularity you need; I use 0.3 or 0.1 for most > things) > 6 - Save as Desktop Cutting Plotter (Autocad DXF R14) .DXF file > 7 - Make sure the ROBO-Master spline option is unchecked, LWPOLYLINE option > is checked. I keep the base units in mm to be consistent with OpenSCAD. > 8 - import the file in OpenSCAD (e.g. import ("drawing.dxf"); ) > > > > > -- > View this message in context: http://forum.openscad.org/Rendering-DXFs-from-Inkscape-tp11789p11814.html > Sent from the OpenSCAD mailing list archive at Nabble.com. > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org