[Plugin] Dxf_In v2.2 20110517 Dxf2Skp
-
@anewbeat said:
OK, so I added the line=line.chomp+"\n" as described. What does the error message "Database contains Unsupported Entitys: SPLINE" mean? After receiving the message the file continued to import properly.
That means SPLINES are not supported in the plugin, and the arcs in your .dxf are made using splines.
You could covert the file to an older .dxf version using the Teigha converter, and try importing the converted file. Use dxf version R13 or earlier. There will be more cleanup required, but it should convert the splines to a supported entity.
-
@jim said:
Use dxf version R13 or earlier. There will be more cleanup required, but it should convert the splines to a supported entity.
When I export from Illustrator as R13 I get this error message: "*Block U1 contains a unsupported mesh". These are extremely simple paths made up of simple arcs and line segments. Why don't the arcs remain arcs after export?
-
Sounds like a question for the Illustrator people. Do they have a support forum?
-
@dave r said:
Sounds like a question for the Illustrator people. Do they have a support forum?
The error is from the Dxf_in plugin.
Try FreeDXF: http://sketchucation.com/forums/viewtopic.php?t=22199
FreeDXF does a somewhat better import although still not perfect. These dxf importers are written by amateurs and hobbyists. If you need a Pro importer, your best option is to buy SketchUp Pro or get a commercial importer for SketchUp Free.
-
As a work-around, I tried exporting the DXF from a different program (which allows "Save as Arcs" as an option) from my PC and I'm back to the "<Error> or Empty File" message. Ugh.
-
I finally got it to work. I had to export the DXF from FlexiSIGN with "Save as Arcs" checked, then convert to R12 via the converter mentioned above. A little convoluted, but I would typically build these types of shapes in FlexiSIGN anyway. When I simply converted the DXF exported from Illustrator I got a few errors and it segmented the arcs. Whew.
-
HI, I get with SU2014 the following on SU startup
Errore di caricamento del file Dxf_In_v2.2.rb Error; #<SyntaxError; C;/Users/Ale/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/Dxf_In_v2.2.rb;306; formal argument cannot be an instance variable ramFile.each do |@line| #search for entities
^>
but the plugin semms to work properly.....
-
Error loading plugin with SketchUp 2015 as follows
Error Loading File Dxf_In_v2.2.rb
Error: #<SyntaxError: C:/Users/John/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/Dxf_In_v2.2.rb:306: formal argument cannot be an instance variable
ramFile.each do |@line| #search for entities @line by @line^>
I don't know if it is something I have done wrong or there is an issue with SketchUp 2015. As I looked into the issue I discovered that I had several different versions of SketchUp installed. It seems that the SketchUp developers are not smart enough to remove an older version when installing a newer version. Thus I manually uninstalled all early versions I could find and I think I now only have SketchUp 2015 installed.
The next chore was do find where the plugins are located, scanning my system I found the location to be C:\Users\John\AppData\Roaming\SketchUp\SketchUp 2015\SketchUp\Plugins thus I copied the Dxf_In_v2.2.rb file to this location. Now when I start SketchUp 2015 I get the above error for this extension. Any suggestions? I'm attempting to import some AutoCAD dxf files.
-
@jgt1942 said:
It seems that the SketchUp developers are not smart enough to remove an older version when installing a newer version.
Well, you got that wrong.
They intentionally have SketchUp designed so each version installs separately and doesn't touch the older version. Many people go back and forth between versions, especiallwhen they first install a new version. There's comfort in having something to fall back on if needed. there was certainly no need to uninstall earlier versions. They didn't have anything to do with the error message you have from the plugin trying to load.
Which version of SketchUp 2015 do you have?
-
as this plugin doesn't work in v2015, you could import into v8, and then, after saving, open in v2015 [ unless you uninstalled v8 for some misguided reason!!! ]...
or you can change the line that's failing and see what comes next...
this is the failing line...ramFile.each do |@line| #search for entities @line by @line
it's failing because it uses @ where it no longer works...
so, replace that line:306
in the file
C:/Users/John/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/Dxf_In_v2.2.rb
in withramFile.each do |line| #search for entities line by line
save
and try again...
john -
Hi
I am a serious beginner with sketchup, attempting to bring in a .dxf file that have been exported from QGIS. the file is clipped and not big in size (184kb)
I am working on a mac, in sketchup make 2014, I downloaded the Dxf_in 2.2 and get this error when I start up my sketchup (see attached)
Any advice on what may be wrong.
I have tried to just open a .dxf file through File: Import: <select *dwg /*dxf> file type, but I get an import error(see attached).
Any assistance would be greatly appreciated
-
the answer is in the post above yours...
or you could use Jim Foltz's FreeDxf plugin in the Plugin Store...
john
-
Thanks!
I managed to sort out the first error with your comment above...
I have now tried to deal with thesketchUp error <empty file> issue with an earlier post (see insert below):Find the following bit of code in the.rb file
#get all block names, save them along with their location
begin
aFile=File.open(chosen_file, "r")
rescue
result=UI.messagebox "<Error> The DriveName\Path\FileName.dxf may not\nbe standard ASCII characters. If so, place the Dxf file\nin a ASCII named folder before accessing that file.", MB_OK
end
aFile.each_line do |line|
count=count +1
if count==odd_number #strip dxf tags thanks to TIG
odd_number=odd_number + 2
line=line.strip
endlast_line=this_line #save last line data
this_line=lineand insert the line
line=line.chomp+"\n"
after
aFile.each_line do |line|
it should ensure that all the data read in is terminated in a way that ruby scripts accept, and it shouldn't affect the way they run under windows either.But I am still getting the <empty file> error.
Any suggestions on this?
dxf file I am attempting to open
-
I tried opening your file in SU2016 Pro. I didn't get the error message but there was nothing there after the import. The message after import indicates 674 hatches and 1 empty block that were ignored. Maybe you need to try importing a known good file and see how you manage with that. And then go back to the source of this DXF file and see if you can get a good one.
-
Open the dxf file in a cad program.
Explode all elements to get rid of the fill-in, so only the outline lines of the elements remain.
Now save again as dxf.
Import the dxf in sketchup.
Use the plugin "make faces" to fill-in the elements with faces.
Rescale if necessary. -
Thanks for all the responses,
I really appreciate the input!
I did a conversion in my GIS program to eliminate that hatches and have a .dxf file that is now just lines. It opens fine in CAD (using AutoCADLT2011). I tried exploding the lines and still that did not work.
It also opens fine in Illustrator...I still cannot open it in SketchUp, I still get the <error> Empty File.
Attached .dxf file.
I have both the Dxf_in (I get empty file error)
and FreeDXF Importer v0.11.1 installed. (nothing happens / or get the parsing file indicated at the bottom of the screen)Is it possible that having two plugin's is causing an issue?
Possibly a version of the plugin issue?Maybe the way I edited the code in my message above is incorrect?
I Inserted
"line=line.chomp+"\n"
after
aFile.each_line do |line|on a new line
in the dxf_in.rb code.
Thanks!
-
-
Yes,
That's exactly what I expect, just not working on my side.
-
What are you expecting ?
It's a collection of edges inside nested containers.
It you expect them to have faces, then you need to add them...There are several ways to do this...
What is your desired outcome ??If you expect something like this image, then making a giant rectangle ['reversed' in the attached image for clarity] under the imported object, selecting and intersecting it and waiting a few seconds, is all you need to do...
-
I am expecting to be able to open my .dxf file.
I try to import it via Free .dxf or Dxf_in and I have no success. (see my above posts)
Once the file is in sketch up I can figure my way around the face/ vs edges issue. However, at this stage I am really trying to get some assistance as to what may be wrong with my sketchup / plug-ins such that I am unable to open my .dxf file.
Many Thanks,
Advertisement