DXF compatibility (was Unit Conversion & DXF compatibility)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
20 messages Options
Reply | Threaded
Open this post in threaded view
|

DXF compatibility (was Unit Conversion & DXF compatibility)

tux-lab
This post was updated on .
Hi,

When importing LibreCAD dxf file into FreeCAD, the resulting lines are arcs do not resemble the original drawing.  It was just a bunch of random lines.   However, I am able to open FreeCAD dxf with LibreCAD.  

I'm running V1.0.1 on Debian Squeeze.

thanks,

John

ps. Originally, I also asked about if there is a way to convert between metric and english units.    The dxf file exported from FreeCAD are in millimete.   I found answer.  I just scale the entire drawing by whatever conversion factor I need.
Reply | Threaded
Open this post in threaded view
|

Re: DXF compatibility (was Unit Conversion & DXF compatibility)

dxli
lines in LibreCAD end up being arcs in FreeCAD. Is that the bug behavior?

If so, please report a bug to our sourceforge bug tracker. Please attach a dxf file to show this bug.

Thanks!

dxli
Reply | Threaded
Open this post in threaded view
|

Re: DXF compatibility (was Unit Conversion & DXF compatibility)

newbee1
In reply to this post by tux-lab
hello tux-lab,

running last stable FreeCad on WinXP and LibreCAd 1.0.1 aswell,
drawing this:
http://www.2shared.com/file/4cYqZHQC/Profil1.html

in Librecad, save as dxf, open it with FreeCAD, work abs. perfect.
Even operations as upgrade and following extrude will work
with no problem at all.
I will test tonight on my Kubuntu 10.10 , and report tomorrow.
But in the last 4 month i did majorly my 2D Sketch in LibreCAD
and then got them into FreeCAD to make solids, with no prob. at all.
Please provide versions of both programms.


Best regards
newbee1
Reply | Threaded
Open this post in threaded view
|

Re: DXF compatibility (was Unit Conversion & DXF compatibility)

tux-lab
I don't know if the problem i am having is a software bug or an operator error.   Anyway,  attached is a screen of what the dxf looks like under LibreCAD and when imported into FreeCAD.

I did a few tests and I noticed that regular lines and arc show up fine during FreeCAD import.  However, the tangent and trimmed intersections shows up as disjointed when imported into FreeCAD.

I just did a quick test with Inkscape import and that works fine. . . . so maybe the problem is with FreeCAD import?

Attached are,

1)screenshots of the original bottle opener dxf as drawn in LibreCAD and improted dxf under FreeCAD
2)screenshots of tangent and trim intersections as drawn in LibreCAD and as improted into FreeCAD
3)the bottleopener dxf as drawn using LibreCAD





bottle opener dxf file
Reply | Threaded
Open this post in threaded view
|

Re: DXF compatibility (was Unit Conversion & DXF compatibility)

tux-lab
In reply to this post by newbee1
Hello newbee1

How do you import from LibreCAD into FreeCAD for extrusion?    I can import the dxf but I can't turn it into a sketch for extrusion.    The imported entity is listed as an object instead of a sketch.

thanks,

John
Reply | Threaded
Open this post in threaded view
|

Re: DXF compatibility (was Unit Conversion & DXF compatibility)

newbee1
Hy John(tux-lab),

after you imported the drawing into Freecad, you will have to start at one point of
convinience, click one line element, and follow the sequence around as if you follow
a circle. Clockwise or the other way around, does not matter. ONLY important is, that u
click the single line elements,; even the smallest ones; in the sequence as if it is one
non-interupted line. After that u need to click once on the ARROW for upgrade, so will
be assembled as one line entity inside Freecad. Is it done, u will se the appearance of an new Element
in the left side Entity-tree-view. NOW u NEED to click exactly on that entity,
IN THE TREE-View,    
and then on the EXTRUDE-Icon next to the upgrade ARROW in the TOOL-Bar.
Another way could be to do the selection and operation via Python,  but i am far from
knowing how to do that.

If you are interested, i may give it a try, if u have a chnace to upload your dxf
somewhere, and post the LINK. So then i can give you more feedback.

Hope i could help in som way, best wishes,
regards
newbee1

P.S. Almost forgot, u shell select PART- or PART-Design Workbench to get needed
      Icons for upgrade and extrude in the toolbar.
Reply | Threaded
Open this post in threaded view
|

Re: DXF compatibility (was Unit Conversion & DXF compatibility)

newbee1
This post was updated on .
UUPPSS,
sorry John, didn´t see you had included the link for the dxf.
As i load it into my FC version 0.12  5284 it loads perfect as
drawn in LibreCAD. Then i am getting in trouble about the
upgrade and extrude features. So it seems, that you are running
an experimental version of FC, maybe some of the 0.13 Versions ?

Anyway, i think u should post your request into the FreeCAd forum.
Normaly wmaier or yorikvanhavre  have the right answers for you.

And you should use "Complete" Workbench, to have all functions at hand.

regards,
newbee1
Reply | Threaded
Open this post in threaded view
|

Re: DXF compatibility (was Unit Conversion & DXF compatibility)

newbee1
Hello John,

did you get any usefull asssistance at the FreeCAD-Forum?
Reply | Threaded
Open this post in threaded view
|

Re: DXF compatibility (was Unit Conversion & DXF compatibility)

tux-lab
I still don't know if the problem is with FreeCAD or LibreCAD. . .    anyway, I'll look into it again when I tackle the next project.   I'm almost done with the current one.   I used FreeCAD for the 3d design, but the subsequent dimensioning for machining coordinates where all done under LibreCAD.     I had to search for a work around for copying between layer which was something I had to do often.

This bottle opener was made entirely with open source software.


Reply | Threaded
Open this post in threaded view
|

Re: DXF compatibility (was Unit Conversion & DXF compatibility)

dxli
wonderful project!

It helps to submit a dxf file for us to investigate. You don't have to be worried about your data, because you can make some random drawing to show the problem.

I can see there's a great need for combination of FreeCAD and LibreCAD. Hopefully, a new plugin interface of LibreCAD and some help from the FreeCAD community will make it work better.
Reply | Threaded
Open this post in threaded view
|

Re: DXF compatibility (was Unit Conversion & DXF compatibility)

newbee1
Hello John,

the opener looks realy great !
In the meantime i did some testing on my Kubuntu 11.04 myself,
as where i am also using the 0.13-dayly version of Freecad.
Over there i get the same weird stuff, as you stated in the
begining of the thread. But as mentioned earlier,
running both under existing Win***XP, with the mentioned
versions of software, the outcome is absolutely
correct. So in my opinion, there is somthing wrong in the interpreting
of those DXF-Files under ubuntu. This makes me feel, that there troubles
in Library´s in the system, else it should be as mixed in Wind***, as under
ubuntu.

Best regards,
newbee1

p.s.: @dxli: as far as i remeber, in the first thread WITH pictures, i have
                 found a link with the dxf-file. Is it still there ?
Reply | Threaded
Open this post in threaded view
|

Re: DXF compatibility (was Unit Conversion & DXF compatibility)

Rallaz
tux-lab:

Your file https://docs.google.com/open?id=0B1EDmDJJM3_LTUFZX3dUWmVSMnlkd1BZcVV1MVBxZw
are correctly shown in google docs
opening it with LibreCAD 1.0.1 and 2.0.0 alpha (new read library) works
opening with inkscape works
opening with blender 2.6.1 works
opening with AutoCAD works
opening with gvSIG works
FreeCAD not installed, then not tested.

All test are made in openSUSE 11.4 x86_64
Reply | Threaded
Open this post in threaded view
|

Re: DXF compatibility (was Unit Conversion & DXF compatibility)

Rallaz
tux-lab:
I talk with Yorik from FreeCAD and there is no a compatibility issue

In FreeCAD Menu "Tools->Edit parameters" in "Preferences->Mod->Draft"
add a "new integer item" called "precision" & value 12 (p.e.) and WORKS
Reply | Threaded
Open this post in threaded view
|

Re: DXF compatibility (was Unit Conversion & DXF compatibility)

tux-lab
Rallaz wrote
tux-lab:
I talk with Yorik from FreeCAD and there is no a compatibility issue

In FreeCAD Menu "Tools->Edit parameters" in "Preferences->Mod->Draft"
add a "new integer item" called "precision" & value 12 (p.e.) and WORKS
Wow, that did the trick.   I am able to import the dxf file without any problems now.

A big thanks!
Reply | Threaded
Open this post in threaded view
|

Re: DXF compatibility (was Unit Conversion & DXF compatibility)

tux-lab
I completed the first batch of bottle openers.    I am still working on documenting the process, but if any of the LibreCAD developers, or anyone you think contributed to LibreCAD and would like a bottle opener, or anyone who replied to this thread, email me and I'll mail you one.   Or drop by for a visit If you are in the Los Angeles area.  The size is relatively small, ~ 4" x .5" x .1", machined from 304ss, then tumbled and burnished to break the sharp corners, then electrochemically etched.

The bottle opener was drawn with FreeCAD because there are some arc to arc tangential relationships that I didn't know how to accomplish with LibreCAD.  However, LibreCAD was used to layout the machining tool path and find the end points for writing g-code.    I had to convert the units from inch to millimeter for drawing with FreeCAD then used LibreCAD to convert the FreeCAD dxf export back to inch.  It worked quite well.

The price is Free as in Freedom.    While I can't buy everyone a beer and this is not exactly the best bottle opener I've used, it does get the job done and it's made with open source software in a relatively free country.

As a disclaimer, The general shape of the bottle opener and the open source aspect won't change, but this is an evolving project and the cavity may be removed or modified to reduce the machining time which is currently way too long.

Thanks again to LibreCAD and other open source communities that made this bottle opener project possible.  

thanks,

John
project.tuxlab@gmail.com

Reply | Threaded
Open this post in threaded view
|

Re: DXF compatibility (was Unit Conversion & DXF compatibility)

gabriel
congratulations john
Soy Yo


On Tue, Apr 17, 2012 at 7:11 PM, tux-lab [via LibreCAD] <[hidden email]> wrote:
I completed the first batch of bottle openers.    I am still working on documenting the process, but if any of the LibreCAD developers, or anyone you think contributed to LibreCAD and would like a bottle opener, or anyone who replied to this thread, email me and I'll mail you one.   Or drop by for a visit If you are in the Los Angeles area.  The size is relatively small, ~ 4" x .5" x .1", machined from 304ss, then tumbled and burnished to break the sharp corners, then electrochemically etched.

The bottle opener was drawn with FreeCAD because there are some arc to arc tangential relationships that I didn't know how to accomplish with LibreCAD.  However, LibreCAD was used to layout the machining tool path and find the end points for writing g-code.    I had to convert the units from inch to millimeter for drawing with FreeCAD then used LibreCAD to convert the FreeCAD dxf export back to inch.  It worked quite well.

The price is Free as in Freedom.    While I can't buy everyone a beer and this is not exactly the best bottle opener I've used, it does get the job done and it's made with open source software in a relatively free country.

As a disclaimer, The general shape of the bottle opener and the open source aspect won't change, but this is an evolving project and the cavity may be removed or modified to reduce the machining time which is currently way too long.

Thanks again to LibreCAD and other open source communities that made this bottle opener project possible.  

thanks,

John
[hidden email]




If you reply to this email, your message will be added to the discussion below:
http://forum.librecad.org/DXF-compatibility-was-Unit-Conversion-DXF-compatibility-tp5587846p5647912.html
To start a new topic under LibreCAD, email [hidden email]
To unsubscribe from LibreCAD, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: DXF compatibility (was Unit Conversion & DXF compatibility)

Rallaz
Great work!
I'm glad to see that LibreCAD it is useful and gives encouragement to continue to improve the program

I do like to have one but a shipment to Spain will cost more than beer.
is better take the beer to my health :-D
Reply | Threaded
Open this post in threaded view
|

Re: DXF compatibility (was Unit Conversion & DXF compatibility)

oroszegy
In reply to this post by tux-lab
same problems ecoutered
after I imported the drawing *.dxf made with librecad,  into Freecad
the profile has no continuity as in librecad
flOv4.JPG
flOv4x.JPG
Reply | Threaded
Open this post in threaded view
|

Re: DXF compatibility (was Unit Conversion & DXF compatibility)

Rallaz
This is a problem of FreeCAD, no of LibreCAD.

In FreeCAD Menu "Tools->Edit parameters" in "Preferences->Mod->Draft"
add a "new integer item" called "precision" & value 12 (p.e.) and WORKS
Reply | Threaded
Open this post in threaded view
|

Re: DXF compatibility (was Unit Conversion & DXF compatibility)

rhlee
The precision parameter fix worked for my .dxf file as well.

Thanks Rallaz