Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
DXF/DWG Import from Illustrator Not Working
donald_6
Member Posts: 3 ✭
Hi Folks,
I'm trying to use Adobe Illustrator (CC v19.1.0) to export either a DWG or a DXF to import into Onshape, but I'm getting the same error each time. Onshape says "Some entities could not be converted properly".
I've tried exporting as both DWG and DXF, in each of the formats Illustrator provides:
If I export from Inkscape (which seems to use the R14 variant of DXF), I can get it to work in Onshape, though the Inkscape exports seem to need cleaning up as well.
I've tried exporting some basic text converted to paths, as well as just a drawing of a single ellipse. Nothing from Illustrator imports.
Does anybody have thoughts on what I should try next? Is export from Illustrator working for anybody? Could it be an import bug?
Thanks,
Donald
PS I know Illustrator isn't CAD software, but it's the best drawing tool I've got for now.
I'm trying to use Adobe Illustrator (CC v19.1.0) to export either a DWG or a DXF to import into Onshape, but I'm getting the same error each time. Onshape says "Some entities could not be converted properly".
I've tried exporting as both DWG and DXF, in each of the formats Illustrator provides:
- R13/LT95
- R14/LT98/LT97
- 2000/LT2000
- 2004/2005/2006
- 2007/2008/2009
- 2010/2011/2012
If I export from Inkscape (which seems to use the R14 variant of DXF), I can get it to work in Onshape, though the Inkscape exports seem to need cleaning up as well.
I've tried exporting some basic text converted to paths, as well as just a drawing of a single ellipse. Nothing from Illustrator imports.
Does anybody have thoughts on what I should try next? Is export from Illustrator working for anybody? Could it be an import bug?
Thanks,
Donald
PS I know Illustrator isn't CAD software, but it's the best drawing tool I've got for now.
Tagged:
1
Best Answer
-
jakeramsley Member, Moderator, Onshape Employees, Developers, csevp Posts: 661The curves in these .dxf files are made as discontinuous splines, which we don't handle currently. I've added your post to the improvement request.Jake RamsleyDirector of Quality Engineering & Release Manager onshape.com10
Answers
Are any of these dxf/dwg files ones that you are willing to share? It's hard to make any conclusions without inspecting them.
The file called "text outline.dxf" was exported using Adobe Illustrator's "R14/LT98/LT97" export option. The file called "circle.dxf" was exported using the "2010/2011/2012" export option.
The forum evidently doesn't allow .dxf upload, so I've compressed the two files into one ZIP.
Interestingly, the "text outline" file will partially import, but only the straight lines. It would appear that curves of any type don't work at all, but straight line import works decently in the "R14" export.
For those of you who may have the same issue as me, what you need to do in Illustrator is use the Object»Path»Simplify menu item, and then check the "Straight Lines" option. You may need to use the "Object»Paths»Add Anchor Points" menu item a few times before simplifying to straight lines gives you enough detail.
It's not going to give you perfect editable curves, but it might give you something you can use...
I'm new to OnShape, and am trying to figure out how to use this software with my 3D printer. It looks like I have the same issue that donald_6 has - I would like to import dxf/dwg files from Illustrator, but am unable to.
It sounds like this has been added to the improvement request - is there any way that I can track these sorts of things? Is there someplace that I can watch for improvements to Onshape, and wait for this feature to be improved?
Thanks all for your help, and sorry if this question has an obvious answer :-)
Did you try
If you want to be notified when/if the IR is actioned, you could raise a ticket under "Feedback" from the Onshape CAD zone, asking to be added to the improvement request, and quoting the URL of this thread
Thank you very much for your help! I just raised a ticket as you described, so hopefully I will be added to that improvement request.
Also, I did briefly try your method of Object --> Path --> Simplify, but that option in Illustrator was not available to me (it was grayed out). I had imported a .pdf file into Illustrator, and was able to convert it to a vector object using the "Image Trace" feature. The "Image Trace" was successful, but I was unable to Simplify the Path. I'll have to track down that AI issue today on the Illustrator forums - unless you happen to know what my problem is? :-)
Thanks again!
Never mind, I think I figured it out! I'm trying to figure out both AI and OnShape at the same time, and there's a little bit of a learning curve
I was able to get your workaround to work, and it looks like it should be sufficient for me at this point.
Thanks!
Actually I can't claim any credit: I was simply copy/pasting donald_6 's workaround from further up the page
For those of you who may have the same issue as me, what you need to do in Illustrator is use the Object»Path»Simplify menu item, and then check the "Straight Lines" option. You may need to use the "Object»Paths»Add Anchor Points" menu item a few times before simplifying to straight lines gives you enough detail.
Lars
Twitter: @onshapetricks & @babart1977
I think the DXF import feature should be renamed — if it only works for a very specific use case, it would save us all some frustration and work to know that it most likely will not work.
I'd be willing to bet Adobe Illustrator's DXF standards-adherence up with anything else short of Autodesk themselves -- and it's very, very solid knowledge to me that unless you convert a vector graphic using "only straight lines" before export, it fails on the Onshape side of the world. You fail on dealing with DXF arcs specifically.
But let's assume that what you're saying is true, despite the DXF output of both Illustrator and Inkscape working with naive, straightforward arc-described shapes working just fine with other software. Isn't one of the biggest selling points of OS "it just works?" Right now, it pointedly doesn't "just work" for importing DXFs created externally. Even if we accept for the sake of argument that they create somewhat flaky output, isn't it in the interests of OS to accept that and work rather than just fail with a vastly uninformative error? I'd think it would be.
This rather egregious pain along with the inability to import SVG is my biggest pain right now. Ironically, I end up using Fusion 360 to import my vectors (as SVG for extra irony), creating an extruded solid, then exporting from there as a Parasolid to get things even reasonably neatly into OS.
As a drawing transfer capability, DXF import as a drawing works just fine. With regard to importing into a sketch, the issue as stated above is related to discontinuous or closed splines in the DXF file which are not supported by some of the software components we license. The fix is not easy, but we're working on it.
In the meantime, the solution is to convert the splines into polylines. You can do this by opening the DXF file in DraftSight or AutoCAD and re-exporting as DXF R12, or upload the .ai file to https://cloudconvert.com/ and download as DXF.
You also need to consider when importing artwork with "a couple of thousand" points that the sketch environment is a 2D constraint solver and is not intended for sketches of that magnitude due to the sheer number of simultaneous equations that need to be solved.
Hope this helps,
Neil.
The state of the DXF specification is a bloody mess and I'm generally impressed that anyone can get it to do anything much, in general. Between the issues of ownership, the multiple reference builds, and painful parsing architecture, if it weren't just the center of inertia for absolute tonnes of CAD software on the desktop which barely update often enough to keep interoperability with themselves on new hardware, no sane person would get near it.
Which really goes to the heart of the conflict when it comes to OS, no? If the promise of online, rapid-updating CAD in the Cloud is your thing, you can step away from being tied to painful legacy systems and adopt more effective solutions. If polyline DXF suffices to support the folks migrating out of the morass of traditional CAD systems, that's fine. But OS needs to support something better, not just accept the bad solution as good enough. A better, more flexible, clearer vector asset format would be a solid step there. SVG is probably the widest-accessable and used vector format out there right now, but supporting Illustrator files or even PDF-as-vector files would be a tonne better than DXF. Better architectures, better libraries, more efficient, and more intuitive creation
Believe me, I don't want to work with sketches of a couple thousand points, but polylines require that for any outline with a significant degree of compound curves -- and if they weren't complex outlines in the first place, we probably would have redrawn them with in-sketch tools in the first place. Give me the ability to import splines along with the ability to "solidify" a sketch to tell the constraint solver "no, there's nothing more to do here; only resolve constraints from other entities to these entities, never from these to other entities" and I think you'll find that the number of control points necessary to describe even convoluted forms and their resultant impact on calculation will be cut back a lot.
Honestly, OS is currently the most comfortable tool to do parametric modeling in I've found. FeatureScript basically lets you turn interested community members with the most motivation into free devs, and that never hurts. But actually buying into the "in the cloud, we can do things different and better" has to go along with taking on the desktop CAD traditions that get in the way, too. Only having DXF as a sketch-import format is one of those ties that really need to be cut.
Hey, at least I'm not asking about sheet metal.
Twitter: @onshapetricks & @babart1977
Sorry i'm late to the party. During the creation of an 8020 Profile generator and AISC Steel Profile generator, I faced the 'dxf' problem. I ended up creating some routines that import DXFs and import them into Onshape in a reliable, 'works every time' way ( IE, i had to clean them up, and import them so that they can produce sketches without dealing with the OS sketch solver and the need to manually import the DXF into the sketch.
As a result, I was able to import thousands of DXFs ( including some pretty complex ones for 8020 profiles) and get them all closed and tidy. I'd love to re-purpose those tools and make them more helpful, if I can....
Almost a year later, and dave_cowden's comment isn't commented on? He alludes to having a 'fix' that 'works every time', would like to be helpful, and no-one answers? I have come in search also of a way to import sketch curves (from Corel) for use in OS. Am I missing something?
I tried an import, and was greeted with a VIEW button which opened into a black unintuitive workspace with no arcs in my vector conversion, and a link to purchase the right to use it for $250/year? OUCH!
Could someone please let me know if there has been progress on this, please?
Twitter: @onshapetricks & @babart1977
Import it into a sketch. That tool that you opened it with is the Graebert Kudo viewer
IR for AS/NZS 1100
Once in DraftSight if you use the Explode command that sometimes breaks up the polyline so it will import into Onshape.
This works gentlemen... but I exported a logo in DXF, R11 from Corel 2018, imported into https://cloudconvert.com/ and saved as DWG and it worked beautifully.
i'm trying to import Zeiss Calypso scanning points. Calypso creates a DXF file. I get the "Some entities could not be converted properly" when i try to add dxf file in to sketch. DXF file contains single points.
looking for help.