Are SU's exported DXFs different somehow ?
-
looking for a little insight on a longstanding problem.
ill back fill with details as nessecery but basically it goes like this; i do custom metal work and one off assemblies. im trying to get a new workflow in place by going from concept to SU to torchmate cad to my cnc plasma. as it stands the dxf output from SU is somehow faulty, or at least thats how it appears. all ive been able to narrow it down to is what one app thinks vs. another. its a puzzle i cant resolve.
for example take a simple 3 inch circle with a 1 inch hole in the center. (2d, no thickness)
SU shows it as what it's intended.
then exported as a dxf, tmcad shows it as a dotted outter line with a solid circle where the hole was in SU. the only thing correct bit of it is the scale matches the scale it was created at in SU. on rare occasions it can be "repaired" by using the connect path feature in tmcad, but its more a thing of luck at this point.
that same dxf imported into adobe illustrator shows up as more of a screen shot. the scale is all wrong and its in perspective (or however it appeared when i exported it). it also shows it as an outter line with a 1" circle rather than the hole. what ive noticed in ai is that it thinks the single shape is actually a collection of separate lines which are not connected, therefore they do not make a face. you can zoom into a single point and they appear connected, yet if you select that single point, you can perform a join function as though they were two separate points. i experimented on a small simple model and you can in fact glue it back together a point at a time such that ai understands its a face and it can then be exported to tmcad which also understands its a face with a hole in it and then on to the cnc cutter as usual.
so - why the difference in what constitutes a "face" or a continuous line in SU vs. the other apps and is there a fix for this ? i really want to fit SU into my process but if i cant get parts out of it its not of much use.
many thanks in advance
-
Hi Inkster, hi folks.
For 2D export, try using Parallel projection and an orthogonal view like Top, for example, if your plate is lying on an horizontal plane. The options in the dialog box will allow you quite a lot of control, including a scaling operation if required.
Try with perspective instead and observe what the Options are in the Export dialog box. You will see that they are quite different than those without perpective. With perspective on, even with an orthogonal view, SU is exporting an image of what is on the screen and the dimensions will be irrelevant even if the format is DXF.
Alternatively, even for a flat object, you can export as a 3D model. However, you will not be able to specify an export scale.
Just ideas.
-
Put even more simply... 2d DXFs make everything out of 'lines' including the segmented arcs/circles.
3d DXFs make 'real' CAD arcs/circles where segmentation is ignored... -
@tig said:
Put even more simply... 2d DXFs make everything out of 'lines' including the segmented arcs/circles.
3d DXFs make 'real' CAD arcs/circles where segmentation is ignored...thank you both and yes,understood. i may have misspoke when i said it was 2D. i was referring to the fact that the model exported was only in two axis (no Z). its what works best in tmcad to create tool path data. anyhow, it was exported as a 3d DXF, thus the scale was correct, etc.
below is an example. on the left is a 1/4" thick bracket. the middle and right side are what i export (thats what i meant by 2D)
this is a screen shot of what happens in tmcad. it dosent see the face and it thinks the hole is a solid. fwiw, it appears the same when imported into illustrator which is why i think the SU output is suspect.
-
I seldom export to 3D DWG from SU, but I tested by trying to create a similar part to yours, exported it and opened it in AutoCad 2011. To me the result was quite as expected: The edges became a circle and a loop of lines and arcs, and the face became a polyface mesh with a hole in the middle. No weirdness to be seen. So I am suspecting your CAD. Is the result the same even if you only have the edges to export? I am just wondering if your CAD is able to correctly interpret the 3D face geometry, or if the face geometry is partly covering the lines. Does your CAD have a 3D view where you could verify what is actually happening?
Just thoughts
Anssi
-
@anssi said:
<snip> No weirdness to be seen. So I am suspecting your CAD. Is the result the same even if you only have the edges to export? I am just wondering if your CAD is able to correctly interpret the 3D face geometry, or if the face geometry is partly covering the lines. Does your CAD have a 3D view where you could verify what is actually happening?
Just thoughts
Anssi
good thoughts Anssi.
good to know that autocad sees the model fine, maybe it is tmcad as you suggest.
yes i have done lines only and it seems happiest with that although its still not correct.
tmcad doesnt have a 3d viewer. it always shows the machine bed in a projection style format. once imported, your part shows as a single peice where you can then create multiples and edit as needed before outputting the tool path data.
i also stated talking to tmcad support in parrallel - well see what happens.
-
still limping along with this issue, but one interesting tid bit has come to light.
in working with the tech at torchmate, he has found that with the dxf created in su there is a tiny bit of text in the file way way off to the lower left. the key point is; i didnt draw it - su put it there BUT - i cant see it in su (or any other app) yet the apps know its there and its grouped or connected somehow which explains why any path type functions dont work; because its including this bit of text info as part of the model and i cant find it so i can delete it. the tm guru has tools the average human does not so he's able to see it - delete it - and do a connect path function and wala, all is well. i suspect if the text junk wasnt there in the first place you wouldnt need to do a fix like "connect path".
so what is this little bit of text junk and why is it being generated ?
-
I believe that SketchUp's Dxf translator is based on ODA's code. Fact is only Acad's dxf translator is correct. Most application translators are based on that application. The attached image is SketchUp's translation of a dxf file. The following image is an Acad viewers image of the same file. The SketchUp translation adds thickness to a ployline (the lower curve). The Acad viewer adds thickness, width, and bulge to the polyline.
-
Honoluludesktop,
What viewer are you using? I cannot duplicate what you see. I use AutoCad 2011. No thickness or width added to polylines or arcs. Face elements become polyface objects, while edges are correctly translated to corresponding ACAD entities. A cylinder has a circle both at the bottom and top.
Anssi
-
Autodesk Volo View. The subject DXF is a v2000 file. What was the source of your DXF that includes lines, arcs, and polylines with thickness, width, and bulge? Typically, polylines do not contain those characteristic. Attached is the Autodesk v2011 DXF reference excerpt for polyline, and vertex (as polylines include vertexes).
-
Honoluludesktop,
What I did was draw a freehand object in SU, pushpulled it, and exported to ACAD 2010 with the SUPro exporter. The 3D polylines exported do not have any width, bulge or thickness attached either to the polyline itself or the vertices (checked with the entsel and nentsel autolisp commands). Group code 39 is missing altogether - as it says, it's optional. I wonder if the exports for different ACAD versions differ, or if VoloView is adding fantasy of its own. VoloView is itself a rather old application-I would recommend the latest TrueView version: It's free, it works with the 2010 format, and it can convert DWG files to older and newer versions, down to version 10 or 12 DXF, I think.
Anssi
-
Acad drawing elements are unlike other Cad applications. In Acad, a line can be a simple 3d line, or rectangle with thickness, and extrusion direction (vector). A acad line with a thickness of 0.0 is a line, with a thickness of 1 inch, it is a rectangle with a height of 1 inch. You can not make a line with thickness in SketchUp. The SketchUp importer changes a line with thickness into a face. In SketchUp, when you model a set of connected edges in the x,y plane(say a polyline), then you loft the edges in the z direction, Sketchup will change the connected line into connected faces, and edges. SketchUp's DXF exporter will not translate this model into a polyline with thickness. The following is a portion of an ASCII DXF with some of my notes prefaced with #. A DXF listing always starts with a group code then followed by the data. This sequence is repeated throughout. Thickness, and bulge are as the tables above indicates. Some of the group codes are documented under "common group codes for entities".
.
.
0 #Acad group code precedes every piece of data
POLYLINE #data is entity Name
5 #Acad group code for handle
29 #handle
8 #Acad group code for layer name
T-2DPLINE-3 #layer name
62 #etc.
5 #etc.
66
1
10 #Acad group code for x
0.0 #x
20 #Acad group code for y
0.0 #y
30 #Acad group code for z
0.0 #z
39 #Acad group code for thickness
2.4332129974000671 #thickness
40
2.0
0
VERTEX #first vertex in polyline
5
34
8
T-2DPLINE-3
62
5
10
-1.3768750602197291
20
-3.437321703110606
30
0.0
0
VERTEX #second vertex in ployline
5
35
8
T-2DPLINE-3
62
5
10
-0.8415682007917144
20
3.2296819097655769
30
0.0
42 #Acad group code for bulge
-0.9902342116099923 #bulge data
0
.
.
I do not know what AutoCad drawing elements require entity thickness, width, and bulge. At one time Acad dimension line arrow heads used a lwpolyline with width, but I do not know if Acad 2011 continues to do so.My copy of Volo View is good up to Acad 2000. Thanks for the info on TrueView. Had it on my system at one time, but didn't like, and removed it.
Advertisement