dxf

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

dxf

mondo
Most of my cad has been in 2.5d, for 3 axis milling. Basically drawing
various sections through an object, exporting as dxf into the gcode
generator, and selecting paths to profile/pocket. I was hoping to change
this method by programmatically extruding the shapes within openscad and
exporting as stl to the gcode generator. However, i do not know what
version, if any, of dxf format that openscad can import.Whatever I try,
it fails, often on quite basic dxf parameters. Also, if I wish to send
the scad file to another user, then they need to put the original
imported dxf file in the same location. Does anyone know of a piece of
software that can, say, import a dxf file and produce a list of xy
coordinates, that could be readily embedded in the scad file as a
polygon, say. Also, would it be possible to import that list, instead of
embedding it in the scad code.


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

Re: dxf

nophead
Yes there is an OpenSCAD plugin for InkScape that will convert an outline in InkScape to an OpenSCAD polygon.

Not sure which is latest version but there is some info here: https://www.thingiverse.com/thing:25036


On Sun, 26 Jul 2020 at 21:54, Ray West <[hidden email]> wrote:
Most of my cad has been in 2.5d, for 3 axis milling. Basically drawing
various sections through an object, exporting as dxf into the gcode
generator, and selecting paths to profile/pocket. I was hoping to change
this method by programmatically extruding the shapes within openscad and
exporting as stl to the gcode generator. However, i do not know what
version, if any, of dxf format that openscad can import.Whatever I try,
it fails, often on quite basic dxf parameters. Also, if I wish to send
the scad file to another user, then they need to put the original
imported dxf file in the same location. Does anyone know of a piece of
software that can, say, import a dxf file and produce a list of xy
coordinates, that could be readily embedded in the scad file as a
polygon, say. Also, would it be possible to import that list, instead of
embedding it in the scad code.


_______________________________________________
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: dxf

OpenSCAD mailing list-2
In reply to this post by mondo
Am I understanding your situation correctly?
1 You want to import the dxf outline as a polygon.
2. Extrude the polygon to create a 3D object .
3. Export the 3D object in a format that can be read by gcode generator.
4. Send the OpenSCAD file to another user for them to enhance or use.

You seem to be having trouble at step one but have not given any information about
a.) how it fails (error messages, bad 2D shape, scaling issue???)
b.) the contents of the simplest dxf file that you have tried
c.) the source of the dxf file.

This might help get to the bottom of your issue.

Ron


On 2020-07-26 4:53 p.m., Ray West wrote:
Most of my cad has been in 2.5d, for 3 axis milling. Basically drawing various sections through an object, exporting as dxf into the gcode generator, and selecting paths to profile/pocket. I was hoping to change this method by programmatically extruding the shapes within openscad and exporting as stl to the gcode generator. However, i do not know what version, if any, of dxf format that openscad can import.Whatever I try, it fails, often on quite basic dxf parameters. Also, if I wish to send the scad file to another user, then they need to put the original imported dxf file in the same location. Does anyone know of a piece of software that can, say, import a dxf file and produce a list of xy coordinates, that could be readily embedded in the scad file as a polygon, say. Also, would it be possible to import that list, instead of embedding it in the scad code.


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

-- 
Ron Wheeler
Artifact Software
438-345-3369
[hidden email]

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

Re: dxf

mondo

Hi Ron,

Thanks for your reply.

There are many different versions of dxf files. I've tried a few, without getting very far. What version does opnscad expect? No point in me playing with R12, if openscad expects 2013, say. It seems that openscad works better with tinkercad. Tinkercad will accept my dxf files, but I do not really want to get into yet another file conversion situation. Perhaps tinkercad states what version it exports dxf files, I'll download a later version than the 2013 one.. The online dxf/svg file convertors seem to work OK, but again, that is another unneeded step.

The four steps you've picked out is more or less my proposed work flow. I have not kept the failed dxf files, but could easily generate more.  They were quite simple test outlines, straight line polygons, no curves or splines (from going through the forum, I realised they would be unlikely to be successful).

Best wishes,


Ray

On 26/07/2020 22:16, Ron Wheeler via Discuss wrote:
Am I understanding your situation correctly?
1 You want to import the dxf outline as a polygon.
2. Extrude the polygon to create a 3D object .
3. Export the 3D object in a format that can be read by gcode generator.
4. Send the OpenSCAD file to another user for them to enhance or use.

You seem to be having trouble at step one but have not given any information about
a.) how it fails (error messages, bad 2D shape, scaling issue???)
b.) the contents of the simplest dxf file that you have tried
c.) the source of the dxf file.

This might help get to the bottom of your issue.

Ron


On 2020-07-26 4:53 p.m., Ray West wrote:
Most of my cad has been in 2.5d, for 3 axis milling. Basically drawing various sections through an object, exporting as dxf into the gcode generator, and selecting paths to profile/pocket. I was hoping to change this method by programmatically extruding the shapes within openscad and exporting as stl to the gcode generator. However, i do not know what version, if any, of dxf format that openscad can import.Whatever I try, it fails, often on quite basic dxf parameters. Also, if I wish to send the scad file to another user, then they need to put the original imported dxf file in the same location. Does anyone know of a piece of software that can, say, import a dxf file and produce a list of xy coordinates, that could be readily embedded in the scad file as a polygon, say. Also, would it be possible to import that list, instead of embedding it in the scad code.


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

-- 
Ron Wheeler
Artifact Software
438-345-3369
[hidden email]

_______________________________________________
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: dxf

mondo

Not sure why I'm going on about tinker cad - I meant inkscape. it accepts r13 dxf, but outputs in r13. Yet to test.

On 26/07/2020 23:23, Ray West wrote:

Hi Ron,

Thanks for your reply.

There are many different versions of dxf files. I've tried a few, without getting very far. What version does opnscad expect? No point in me playing with R12, if openscad expects 2013, say. It seems that openscad works better with tinkercad. Tinkercad will accept my dxf files, but I do not really want to get into yet another file conversion situation. Perhaps tinkercad states what version it exports dxf files, I'll download a later version than the 2013 one.. The online dxf/svg file convertors seem to work OK, but again, that is another unneeded step.

The four steps you've picked out is more or less my proposed work flow. I have not kept the failed dxf files, but could easily generate more.  They were quite simple test outlines, straight line polygons, no curves or splines (from going through the forum, I realised they would be unlikely to be successful).

Best wishes,


Ray

On 26/07/2020 22:16, Ron Wheeler via Discuss wrote:
Am I understanding your situation correctly?
1 You want to import the dxf outline as a polygon.
2. Extrude the polygon to create a 3D object .
3. Export the 3D object in a format that can be read by gcode generator.
4. Send the OpenSCAD file to another user for them to enhance or use.

You seem to be having trouble at step one but have not given any information about
a.) how it fails (error messages, bad 2D shape, scaling issue???)
b.) the contents of the simplest dxf file that you have tried
c.) the source of the dxf file.

This might help get to the bottom of your issue.

Ron


On 2020-07-26 4:53 p.m., Ray West wrote:
Most of my cad has been in 2.5d, for 3 axis milling. Basically drawing various sections through an object, exporting as dxf into the gcode generator, and selecting paths to profile/pocket. I was hoping to change this method by programmatically extruding the shapes within openscad and exporting as stl to the gcode generator. However, i do not know what version, if any, of dxf format that openscad can import.Whatever I try, it fails, often on quite basic dxf parameters. Also, if I wish to send the scad file to another user, then they need to put the original imported dxf file in the same location. Does anyone know of a piece of software that can, say, import a dxf file and produce a list of xy coordinates, that could be readily embedded in the scad file as a polygon, say. Also, would it be possible to import that list, instead of embedding it in the scad code.


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

-- 
Ron Wheeler
Artifact Software
438-345-3369
[hidden email]

_______________________________________________
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

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

Re: dxf

OpenSCAD mailing list-2
I am not an expert in OpenSCAD and have never played with dxf but am good at understanding how to test software.
[hidden email] is an expert and if you respond to his questions and give him as much detail about your test results as you can, you have a pretty good chance of getting the best possible result.

Whether that will be good enough for your needs is still an open question but you have the attention of one of the best OpenSCAD experts and, in addition, may get some good alternatives from others in the forum who are using CAD, CNC and 3D printing in their businesses.

Describe in detail the simplest test that you have run and the messages that you got from openSCAD and describe what you expected visually (as a 3D model) and what you got from OpenSCAD.
If you can list the content of the DXF file that you are importing, I am sure that it will be helpful.

Ron

On 2020-07-26 7:41 p.m., Ray West wrote:

Not sure why I'm going on about tinker cad - I meant inkscape. it accepts r13 dxf, but outputs in r13. Yet to test.

On 26/07/2020 23:23, Ray West wrote:

Hi Ron,

Thanks for your reply.

There are many different versions of dxf files. I've tried a few, without getting very far. What version does opnscad expect? No point in me playing with R12, if openscad expects 2013, say. It seems that openscad works better with tinkercad. Tinkercad will accept my dxf files, but I do not really want to get into yet another file conversion situation. Perhaps tinkercad states what version it exports dxf files, I'll download a later version than the 2013 one.. The online dxf/svg file convertors seem to work OK, but again, that is another unneeded step.

The four steps you've picked out is more or less my proposed work flow. I have not kept the failed dxf files, but could easily generate more.  They were quite simple test outlines, straight line polygons, no curves or splines (from going through the forum, I realised they would be unlikely to be successful).

Best wishes,


Ray

On 26/07/2020 22:16, Ron Wheeler via Discuss wrote:
Am I understanding your situation correctly?
1 You want to import the dxf outline as a polygon.
2. Extrude the polygon to create a 3D object .
3. Export the 3D object in a format that can be read by gcode generator.
4. Send the OpenSCAD file to another user for them to enhance or use.

You seem to be having trouble at step one but have not given any information about
a.) how it fails (error messages, bad 2D shape, scaling issue???)
b.) the contents of the simplest dxf file that you have tried
c.) the source of the dxf file.

This might help get to the bottom of your issue.

Ron


On 2020-07-26 4:53 p.m., Ray West wrote:
Most of my cad has been in 2.5d, for 3 axis milling. Basically drawing various sections through an object, exporting as dxf into the gcode generator, and selecting paths to profile/pocket. I was hoping to change this method by programmatically extruding the shapes within openscad and exporting as stl to the gcode generator. However, i do not know what version, if any, of dxf format that openscad can import.Whatever I try, it fails, often on quite basic dxf parameters. Also, if I wish to send the scad file to another user, then they need to put the original imported dxf file in the same location. Does anyone know of a piece of software that can, say, import a dxf file and produce a list of xy coordinates, that could be readily embedded in the scad file as a polygon, say. Also, would it be possible to import that list, instead of embedding it in the scad code.


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

-- 
Ron Wheeler
Artifact Software
438-345-3369
[hidden email]

_______________________________________________
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

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

-- 
Ron Wheeler
Artifact Software
438-345-3369
[hidden email]

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

Re: dxf

Whosawhatsis
In reply to this post by mondo
It's not really a matter of the version. OpenSCAD only supports a subset of the DXF language. There are some types of entities defined in the DXF format that it makes no attempt to interpret. I'm not sure of the entire list of unsupported features, but POLYLINE is a very common one that doesn't work in OpenSCAD. I have files that also use the SOLID, VERTEX and SEQEND entities, which also cause OpenSCAD to throw warnings saying they're not supported. Depending on what program generated the DXF, it may use POLYINE for everything, or it may not use it at all (though most things that can export a DXF will use it for at least some types of features). The trick is to get yourself a DXF file that defines the shape you want without using any of the unsupported entities. I've had some luck opening one in a program that supports the format, then saving a new DXF (or converting to some other format, then back to DXF), but nothing terribly repeatable.

On July 26, 2020 at 15:24:36, Ray West ([hidden email]) wrote:

Hi Ron,

Thanks for your reply.

There are many different versions of dxf files. I've tried a few, without getting very far. What version does opnscad expect? No point in me playing with R12, if openscad expects 2013, say. It seems that openscad works better with tinkercad. Tinkercad will accept my dxf files, but I do not really want to get into yet another file conversion situation. Perhaps tinkercad states what version it exports dxf files, I'll download a later version than the 2013 one.. The online dxf/svg file convertors seem to work OK, but again, that is another unneeded step.

The four steps you've picked out is more or less my proposed work flow. I have not kept the failed dxf files, but could easily generate more.  They were quite simple test outlines, straight line polygons, no curves or splines (from going through the forum, I realised they would be unlikely to be successful).

Best wishes,


Ray

On 26/07/2020 22:16, Ron Wheeler via Discuss wrote:
Am I understanding your situation correctly?
1 You want to import the dxf outline as a polygon.
2. Extrude the polygon to create a 3D object .
3. Export the 3D object in a format that can be read by gcode generator.
4. Send the OpenSCAD file to another user for them to enhance or use.

You seem to be having trouble at step one but have not given any information about
a.) how it fails (error messages, bad 2D shape, scaling issue???)
b.) the contents of the simplest dxf file that you have tried
c.) the source of the dxf file.

This might help get to the bottom of your issue.

Ron


On 2020-07-26 4:53 p.m., Ray West wrote:
Most of my cad has been in 2.5d, for 3 axis milling. Basically drawing various sections through an object, exporting as dxf into the gcode generator, and selecting paths to profile/pocket. I was hoping to change this method by programmatically extruding the shapes within openscad and exporting as stl to the gcode generator. However, i do not know what version, if any, of dxf format that openscad can import.Whatever I try, it fails, often on quite basic dxf parameters. Also, if I wish to send the scad file to another user, then they need to put the original imported dxf file in the same location. Does anyone know of a piece of software that can, say, import a dxf file and produce a list of xy coordinates, that could be readily embedded in the scad file as a polygon, say. Also, would it be possible to import that list, instead of embedding it in the scad code.


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

--  
Ron Wheeler
Artifact Software
438-345-3369
[hidden email]

_______________________________________________
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

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

Re: dxf

mondo

Thanks, that was what I was finding. Openscad is not alone in not playing nicely with dxf files. I can save an stl file from my cad software (designcad, now owned by imsi), formerly known as prodesign, been around as long as autocad) but even though it is 2d, a plane, it is treated as a 3d file by openscad, and afaik therefore can not be extruded.

Is the dxf file handling being worked on, or is it on the backburner, so to speak? My view, fwiw, is that at the moment, for my simpler shapes, It is more reliable for me to draw them on graph paper, and manually encode the coordinates into polygons. It can be useful to be able to reference individual points, make minor adjustments, without having to open the original program that produced the dxf file.


On 27/07/2020 01:37, Whosawhatsis wrote:
It's not really a matter of the version. OpenSCAD only supports a subset of the DXF language. There are some types of entities defined in the DXF format that it makes no attempt to interpret. I'm not sure of the entire list of unsupported features, but POLYLINE is a very common one that doesn't work in OpenSCAD. I have files that also use the SOLID, VERTEX and SEQEND entities, which also cause OpenSCAD to throw warnings saying they're not supported. Depending on what program generated the DXF, it may use POLYINE for everything, or it may not use it at all (though most things that can export a DXF will use it for at least some types of features). The trick is to get yourself a DXF file that defines the shape you want without using any of the unsupported entities. I've had some luck opening one in a program that supports the format, then saving a new DXF (or converting to some other format, then back to DXF), but nothing terribly repeatable.

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

Re: dxf

OpenSCAD mailing list-2
You can never go wrong with a manual approach but it might be a lot of work if the polygon is really complex.

It is just manual work with no thinking once you know where the vertices are.

https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Using_the_2D_Subsystem#polygon describes how to define a polygon in OpenSCAD.
If you enter all the vertices, you are all set to get rid of the DXF problem and start as a native OpenSCAC object that can be extruded and modified to your hearts desire.

Ron


On 2020-07-26 9:33 p.m., Ray West wrote:

Thanks, that was what I was finding. Openscad is not alone in not playing nicely with dxf files. I can save an stl file from my cad software (designcad, now owned by imsi), formerly known as prodesign, been around as long as autocad) but even though it is 2d, a plane, it is treated as a 3d file by openscad, and afaik therefore can not be extruded.

Is the dxf file handling being worked on, or is it on the backburner, so to speak? My view, fwiw, is that at the moment, for my simpler shapes, It is more reliable for me to draw them on graph paper, and manually encode the coordinates into polygons. It can be useful to be able to reference individual points, make minor adjustments, without having to open the original program that produced the dxf file.


On 27/07/2020 01:37, Whosawhatsis wrote:
It's not really a matter of the version. OpenSCAD only supports a subset of the DXF language. There are some types of entities defined in the DXF format that it makes no attempt to interpret. I'm not sure of the entire list of unsupported features, but POLYLINE is a very common one that doesn't work in OpenSCAD. I have files that also use the SOLID, VERTEX and SEQEND entities, which also cause OpenSCAD to throw warnings saying they're not supported. Depending on what program generated the DXF, it may use POLYINE for everything, or it may not use it at all (though most things that can export a DXF will use it for at least some types of features). The trick is to get yourself a DXF file that defines the shape you want without using any of the unsupported entities. I've had some luck opening one in a program that supports the format, then saving a new DXF (or converting to some other format, then back to DXF), but nothing terribly repeatable.

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

-- 
Ron Wheeler
Artifact Software
438-345-3369
[hidden email]

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

Re: dxf

MichaelAtOz
Administrator
In reply to this post by mondo
mondo wrote
> I can save an stl file from my cad
> software (designcad, now owned by imsi), formerly known as prodesign,
> been around as long as autocad) but even though it is 2d, a plane, it is
> treated as a 3d file by openscad, and afaik therefore can not be extruded.

You can use projection() to get it to 2D.
https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/3D_to_2D_Projection




-----
Admin - email* me if you need anything,  or if I've done something stupid...

* click on my MichaelAtOz label, there is a link to email me.

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

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

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
OpenSCAD Admin - email* me if you need anything, or if I've done something stupid...
* on the Forum, click on my MichaelAtOz label, there is a link to email me.

Unless specifically shown otherwise above, my contribution is in the Public Domain;
to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work.
Obviously inclusion of works of previous authors is not included in the above.
Reply | Threaded
Open this post in threaded view
|

Re: dxf

cacb
In reply to this post by mondo
On 2020-07-26 22:53, Ray West wrote:
> Does
> anyone know of a piece of software that can, say, import a dxf file
> and produce a list of xy coordinates, that could be readily embedded
> in the scad file as a polygon, say. Also, would it be possible to
> import that list, instead of embedding it in the scad code.

I have written a piece of software called 'dxfread' that is going to be
included with the next release of AngelCAD (soon). Right now, dxfread is
a stand alone console application that takes a dxf file and produces
either an OpenSCAD .scad file or an AngelCAD .as file. There is also an
option to produce a text '.p2d' file with a list of xy coordinates.

Once converted to .scad or .as the files are self-contained, there is no
longer a need for the original dxf. Instead of creating one or more
really complex polygons with inner holes, the geometry of the dxf file
is expressed as a set of 2d boolean operations using only basic polygons
without holes as input.

I have tested this on a fair amount of dxf files, and it seems to work
in many cases, including with POLYLINE, LWPOLYLINE and many other dxf
data types. As you say elsewhere, dxf files come in many variants so for
sure there are cases that don't work that well (DXF is really a poor
format but it has been widely used and millions of dxf files exist
already). I guess R12 is generally the safest bet.

Can you provide one of your typical dxf files? I can try it and see if
it works, then show the various output formats produced, including
OpenSCAD .scad file.

Regards
Carsten Arnholm

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

Re: dxf

rew
In reply to this post by mondo
On Sun, Jul 26, 2020 at 11:23:49PM +0100, Ray West wrote:
> Hi Ron,
>
> Thanks for your reply.
>
> There are many different versions of dxf files. I've tried a few,
> without getting very far. What version does opnscad expect? No point
> in me playing with R12, if openscad expects 2013, say.

DXF is the Drawing eXchange Format. This means that it should be largely
program/version independent. Sure, newer versions might support or add
new features, but in principle things should always be compatible.

With say "Microsoft Word", every new version from microsoft would
introduce a completely new file format with little to no compatiblity.

That's the exact opposite of what DXF is meant to do: be compatible
across as many programs and versions as possible.

        Roger.

--
** [hidden email] ** https://www.BitWizard.nl/ ** +31-15-2049110 **
**    Delftechpark 11 2628 XJ  Delft, The Netherlands.  KVK: 27239233    **
The plan was simple, like my brother-in-law Phil. But unlike
Phil, this plan just might work.

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

Re: dxf

tp3
There's a branch with new DXF import code based on the BRL-CAD
importer. This was created by last years GSoC project but
not completely finished. If you share some example, we could
try if the new importer would work better in this case.

ciao,
  Torsten.

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

Re: dxf

cbernhardt
In reply to this post by mondo
I use an older version of AutoCAD (R14) and I have found that OpenSCAD will
accept DXF files with AutoCAD entities Line, Arc, Polyline, Circle, Ellipse,
and Polygon (actually a Polyline).  If the Polyline has arc segments they
must be eploded (broken into line and arc segments) to import into OpenSCAD
correctly.  AutoCAD 3DFACEs ( like a 3D triangle in an STL file ) will not
import and AutoCAD SPLINE entities will not import.

<http://forum.openscad.org/file/t1309/acad_entities.jpg>



--
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: dxf

cacb
On 28.07.2020 17:57, cbernhardt wrote:
> I use an older version of AutoCAD (R14) and I have found that OpenSCAD will
> accept DXF files with AutoCAD entities Line, Arc, Polyline, Circle, Ellipse,
> and Polygon (actually a Polyline).  If the Polyline has arc segments they
> must be eploded (broken into line and arc segments) to import into OpenSCAD
> correctly.  AutoCAD 3DFACEs ( like a 3D triangle in an STL file ) will not
> import and AutoCAD SPLINE entities will not import.

I guess that depends on which version of OpenSCAD you use. Also note
that there are 2 very different polyline types in DXF

POLYLINE
https://www.autodesk.com/techpubs/autocad/acad2000/dxf/polyline_dxf_06.htm

LWPOLYLINE
https://www.autodesk.com/techpubs/autocad/acad2000/dxf/lwpolyline_dxf_06.htm


For the interested, I just released an updated version of AngelCAD with
dxfread included, it can generate OpenSCAD source files from DXF
https://github.com/arnholm/angelcad/releases/tag/v1.4-00

Regards
Carsten Arnholm

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

Re: dxf

cbernhardt
cacb wrote
> For the interested, I just released an updated version of AngelCAD with
> dxfread included, it can generate OpenSCAD source files from DXF
> https://github.com/arnholm/angelcad/releases/tag/v1.4-00
>
> Regards
> Carsten Arnholm
>
> OpenSCAD mailing list

> Discuss@.openscad

> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

Does your dxfread read AutoCAD splines?



--
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: dxf

cacb
On 2020-07-28 20:49, cbernhardt wrote:
>
> Does your dxfread read AutoCAD splines?
>

I am sorry, it does not. It supports ARC, CIRCLE, ELLIPSE, INSERT, LINE,
LWPOLYLINE, POLYLINE with bulges (If my memory serves me right).

Regards
Carsten Arnholm

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

Re: dxf

tp3
In reply to this post by cbernhardt
On 28.07.20 20:49, cbernhardt wrote:
> Does your dxfread read AutoCAD splines?

If you have sample files, I would be interested to try them
with the new DXF reading code for OpenSCAD. Ideally with a
screenshot how it's supposed to look like.

The code supports basic splines, but that entity has some
extra options which are not very clear in the documentation.

ciao,
  Torsten.


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

Re: dxf

cbernhardt
tp3 wrote

> On 28.07.20 20:49, cbernhardt wrote:
>> Does your dxfread read AutoCAD splines?
>
> If you have sample files, I would be interested to try them
> with the new DXF reading code for OpenSCAD. Ideally with a
> screenshot how it's supposed to look like.
>
> The code supports basic splines, but that entity has some
> extra options which are not very clear in the documentation.
> ciao,
>   Torsten.

Here is a ZIP file with spline.dxf, spline.jpg, and spline.txt with
coordinates and explanation.
http://www.carols62.com/spline.zip <http://www.carols62.com/spline.zip>  





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

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

Re: dxf

tp3
On 29.07.20 00:43, cbernhardt wrote:
> Here is a ZIP file with spline.dxf, spline.jpg, and spline.txt with
> coordinates and explanation.

Thanks, that might help clarifying some details. It's currently
trying but not quite getting the correct result for this file.

So far the only test was a simple spline created in LibreCAD
and that looked ok.

ciao,
  Torsten.

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

Screenshot from 2020-07-29 00-54-27.png (124K) Download Attachment
-- Torsten
12