[Plugin] Dxf_In v2.2 20110517 Dxf2Skp
-
Thanks for the reply, hdt. After several tries of using the 2.0 plugin with the "<Error> or empty file", I am now getting a crash on startup. It looks like it's crashing pretty badly. I opened the Mac "Console" application, which dumps out error messages, and I saw this awful mess about classes being defined in multiple places and a bunch of malloc errors. I can send this to you by PM if you'd like, but none of it seems ruby-related.
I'm running MacOS 10.6 for what it's worth. Thanks again!
-
mysterd429, It may be a Ruby related problem. First of all, make sure that you do not have multiple copies of Dxf_In installed. SketchUp loads all of the plugins at once. If a plugin "method" has the same name as another plugin's, the system may fail. If the problem is not multiple copies, pm the error message, and I will ask for help.
-
mysterd429, Thanks for the error message, I have posted in the "Developers" section to see if anyone understands it. Dxf_In uses the Pc Registry (the MAC's 'plist') to store user preferences. One of our resident geniuses has suggested this area may be the problem.
The application, Intrinsic Alchemy is identified in the first line of the error message, is it running whenever you experience a SketchUp failure?
If you are interested, the discussion of the problem is here. There may be a easy way to restore your system without reinstalling SketchUp. Do you have access to the MAC's version of a PC's 'regedit', a editor for the MAC's 'plist'?
A MAC user suggested that the 'plist' message minor, and that:
"if someone else with 10.6 could run console starts with and without your plugin and compare those results, it will show if it's yours..."
His post is here. If you can, do this before the following. Please pm the results to me.Check your pm for a version of Dxf_In with a new section/key for the MAC's 'plist'. Test it without running Intrinsic Alchemy. If OK, try running it along with Intrinsic Alchemy. Don't forget to remove all versions of Dxf_In before installing it. I Googled the error message
CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary.
, and apparently it is associated with MACs. -
I think that the crash is not related to your plugin. See my post in the other thread. I've submitted a bug report to Google.
-
I believe Intrinsic Alchemy is a graphics library/game engine used by SketchUp - it shows up in my debugger whenever I run SketchUp.
-
LS,
I have installed (and working) the Sketchup 8 Dutch version. I have pasted the plugin ( Dxf_In_v2.2.rb ) to the directory: C:\Program Files\Google\Google SketchUp 8\Plugins
Unfortunately I have no additonal dxf or dwg import line in my pull down menu File - Import (not even in the bottom of the list)Any idea what's up?
-
@marc_vierboom said:
LS,
I have installed (and working) the Sketchup 8 Dutch version. I have pasted the plugin ( Dxf_In_v2.2.rb ) to the directory: C:\Program Files\Google\Google SketchUp 8\Plugins
Unfortunately I have no additonal dxf or dwg import line in my pull down menu File - Import (not even in the bottom of the list)Any idea what's up?
[attachment=1:3bngwx91]<!-- ia1 -->Screendump.jpg<!-- ia1 -->[/attachment:3bngwx91]Hallo Marc,
Look here [attachment=0:3bngwx91]<!-- ia0 -->dxf import.jpg<!-- ia0 -->[/attachment:3bngwx91]
-
The file has Mac line endings - DxfIn (as well as my own .dxf importer) is not handling them correctly.
You'll need to convert them file to use Unix or DOS line endings in the meantime.
-
Hi, I placed the plugin into the SketchUp Plugins folder, but it does not show on the file menu. I closed and re-opened my sketch up and nothing appeared yet. Please, can anybody help me? Tnks
-
@bárbara lopes said:
Hi, I placed the plugin into the SketchUp Plugins folder, but it does not show on the file menu. I closed and re-opened my sketch up and nothing appeared yet. Please, can anybody help me? Tnks
Are you looking in the correct menu ?UI.menu("File").add_item("Import DXF")
-
I installed the plugin on my Mac.
I see it in the file menu, and can start an import.
But after a certain time it aborts an I get an error window "<error> or empty File".
I have tried different DXF-Files.What do I do wrong?
Rolf
-
Can you post one of the files so some other users can test and report back, it's almost impossible to say from your info so far...
-
I took the file posted on page one of this thread (ALBA.zip), because I wanted to be sure that it's not a problem of my data.
It starts to count up in the status line until 5 and aborts then. -
I'm on PC.
I've just [re]tried Alba.dxf.
Used 'centimeters' as the units - did you ?
It works; but did take a while to complete ['whiting-out' in the process... BUT still processing away nevertheless] AND also it does appear ~66.6m from the origin [but's that's where it is stupidly located in the DXF!].
Comparing the result from the equivalent Pro DXF import... it is missing a few of small lines around a lip and it takes 100x longer! BUT it works and the result is readily usable/fixupable... -
yes, I tried various options (including centimeter). And it run for quite a while, but with all tries it finally aborted.
I have SketchUp 8.0.11751 for Mac (Intel).Rolf
-
Strange - as I say the PC version is slow but works eventually...
Are there any MAC users out there who have this working OK ? -
is there a kind of a debug mode?
To see when, what, why? -
Running it with the Ruby Console open is the best there is - there's not coded-in debugging that I can see...
-
@freewilly said:
I installed the plugin on my Mac.
I see it in the file menu, and can start an import.
But after a certain time it aborts an I get an error window "<error> or empty File".
I have tried different DXF-Files.What do I do wrong?
Rolf
I'm having the same problem. No matter what I do to prepare the file in illustrator, the import dxf dialog in sketchup gives me that error window and quits the import.
-
This may be too late for you but I had used earlier versions of this on an iMac and found that there were sometimes problems which seem to relate to how the file is saved, some operating systems use carriage return -linefeed to denote the end of a line others just used one. I made a mod which allowed it to work on the iMac (see my post of Thu Feb 17, 2011 12:29 am), it may be worth trying it on the new version
I edited the files using Textedit on the mac, just be careful that it doesn't add a .txt extensionTo help I have listed the suggested change 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 end last_line=this_line #save last line data this_line=line
and 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.
Advertisement