[Plugin] Dxf_In v2.2 20110517 Dxf2Skp

Re: [Plugin] Dxf_In v2.2 20110517 Dxf2Skp

Postby mysterd429 » Wed Jun 08, 2011 10:52 pm

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.
0

mysterd429 
 

Re: [Plugin] Dxf_In v2.2 20110517 Dxf2Skp

Postby Jim » Wed Jun 08, 2011 10:57 pm

I believe Intrinsic Alchemy is a graphics library/game engine used by SketchUp - it shows up in my debugger whenever I run SketchUp.
0
Hi

Jim 
Global Moderator
 

Re: [Plugin] Dxf_In v2.2 20110517 Dxf2Skp

Postby Marc_Vierboom » Wed Jun 15, 2011 1:29 pm

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?
Screendump.jpg
0

Marc_Vierboom 
 

Re: [Plugin] Dxf_In v2.2 20110517 Dxf2Skp

Postby Bep » Wed Jun 15, 2011 6:12 pm

Marc_Vierboom wrote: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?
Screendump.jpg


Hallo Marc,

Look here
dxf import.jpg
0
"History is written by the winners"
User avatar
Bep 
 

Re: [Plugin] Dxf_In v2.2 20110517 Dxf2Skp

Postby Jim » Wed Oct 19, 2011 9:17 pm

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.
0
Hi

Jim 
Global Moderator
 

Re: [Plugin] Dxf_In v2.2 20110517 Dxf2Skp

Postby Bárbara Lopes » Thu Nov 17, 2011 5:31 pm

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
0

Bárbara Lopes 
 

Re: [Plugin] Dxf_In v2.2 20110517 Dxf2Skp

Postby TIG » Fri Nov 18, 2011 11:13 am

Bárbara Lopes wrote: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") :?
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Dxf_In v2.2 20110517 Dxf2Skp

Postby freeWilly » Mon Dec 05, 2011 5:07 pm

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
0

freeWilly 
 

Re: [Plugin] Dxf_In v2.2 20110517 Dxf2Skp

Postby TIG » Mon Dec 05, 2011 6:50 pm

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...
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Dxf_In v2.2 20110517 Dxf2Skp

Postby freeWilly » Mon Dec 05, 2011 7:17 pm

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.
0

freeWilly 
 

Re: [Plugin] Dxf_In v2.2 20110517 Dxf2Skp

Postby TIG » Tue Dec 06, 2011 12:59 pm

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...
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Dxf_In v2.2 20110517 Dxf2Skp

Postby freeWilly » Tue Dec 06, 2011 3:52 pm

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
0

freeWilly 
 

Re: [Plugin] Dxf_In v2.2 20110517 Dxf2Skp

Postby TIG » Tue Dec 06, 2011 4:53 pm

Strange - as I say the PC version is slow but works eventually...
Are there any MAC users out there who have this working OK ?
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Dxf_In v2.2 20110517 Dxf2Skp

Postby freeWilly » Tue Dec 06, 2011 5:03 pm

is there a kind of a debug mode?
To see when, what, why?
0

freeWilly 
 

Re: [Plugin] Dxf_In v2.2 20110517 Dxf2Skp

Postby TIG » Wed Dec 07, 2011 11:38 am

Running it with the Ruby Console open is the best there is - there's not coded-in debugging that I can see...
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Dxf_In v2.2 20110517 Dxf2Skp

Postby shrubman » Fri Aug 31, 2012 6:23 pm

freeWilly wrote: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.
0

shrubman 
 

Re: [Plugin] Dxf_In v2.2 20110517 Dxf2Skp

Postby Chrisn2011 » Wed Jan 30, 2013 9:09 pm

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 extension

To 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.
0

Chrisn2011 
 

Re: [Plugin] Dxf_In v2.2 20110517 Dxf2Skp

Postby ltorresgdcllc » Tue Feb 12, 2013 3:34 pm

Thank you!!!
0

ltorresgdcllc 
 

Re: [Plugin] Dxf_In v2.2 20110517 Dxf2Skp

Postby ANewBeat » Wed Feb 20, 2013 10:57 pm

shrubman wrote:
freeWilly wrote: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.


Same here: "<Error> or Empty File"
Mac OS X 10.6.8
Sketchup 8.0.16845
0

ANewBeat 
 

Re: [Plugin] Dxf_In v2.2 20110517 Dxf2Skp

Postby Dave R » Thu Feb 21, 2013 11:36 am

Did you read the next post? Maybe it will help since it seems to answer the question.

The best option would be to use the Pro version of SketchUp. :roll:
0
Etaoin Shrdlu


%

(THERE'S NO PLACE LIKE)

G28 X0.0 Y0.0 Z0.0

M30

%
User avatar
Dave R 
Global Moderator
 

Re: [Plugin] Dxf_In v2.2 20110517 Dxf2Skp

Postby ANewBeat » Thu Feb 21, 2013 2:15 pm

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.
0

ANewBeat 
 

Re: [Plugin] Dxf_In v2.2 20110517 Dxf2Skp

Postby ANewBeat » Thu Feb 21, 2013 2:58 pm

Upon further inspection my file did not import correctly. It seams to be having trouble with the curves. I've attached the DXF file, a screenshot of the original artwork in Illustrator CS4
Screen shot 2013-02-21 at 8.43.35 AM.png


and a screenshot of the resulting import into Sketchup 8.
Screen shot 2013-02-21 at 8.44.45 AM.png
0

ANewBeat 
 

Re: [Plugin] Dxf_In v2.2 20110517 Dxf2Skp

Postby Dave R » Thu Feb 21, 2013 3:32 pm

Works flawlessly with SketchUp's native DXF installer.
DXF in.png
0
Etaoin Shrdlu


%

(THERE'S NO PLACE LIKE)

G28 X0.0 Y0.0 Z0.0

M30

%
User avatar
Dave R 
Global Moderator
 

Re: [Plugin] Dxf_In v2.2 20110517 Dxf2Skp

Postby Jim » Thu Feb 21, 2013 6:19 pm

ANewBeat wrote: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.

http://www.opendesign.com/guestfiles/Te ... eConverter
0
Hi

Jim 
Global Moderator
 

Re: [Plugin] Dxf_In v2.2 20110517 Dxf2Skp

Postby ANewBeat » Thu Feb 21, 2013 7:23 pm

Jim wrote: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?
0

ANewBeat 
 

Re: [Plugin] Dxf_In v2.2 20110517 Dxf2Skp

Postby Dave R » Thu Feb 21, 2013 7:29 pm

Sounds like a question for the Illustrator people. Do they have a support forum?
0
Etaoin Shrdlu


%

(THERE'S NO PLACE LIKE)

G28 X0.0 Y0.0 Z0.0

M30

%
User avatar
Dave R 
Global Moderator
 

Re: [Plugin] Dxf_In v2.2 20110517 Dxf2Skp

Postby Jim » Thu Feb 21, 2013 8:05 pm

Dave R wrote:Sounds like a question for the Illustrator people. Do they have a support forum?


The error is from the Dxf_in plugin.

Try FreeDXF: 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.
0
Hi

Jim 
Global Moderator
 

Re: [Plugin] Dxf_In v2.2 20110517 Dxf2Skp

Postby ANewBeat » Thu Feb 21, 2013 8:18 pm

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.
0

ANewBeat 
 

Re: [Plugin] Dxf_In v2.2 20110517 Dxf2Skp

Postby ANewBeat » Thu Feb 21, 2013 8:53 pm

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.
0

ANewBeat 
 

Re: [Plugin] Dxf_In v2.2 20110517 Dxf2Skp

Postby bomastudio » Mon May 19, 2014 6:34 pm

HI, I get with SU2014 the following on SU startup

Code: Select all
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.....
1
User avatar
bomastudio 
PluginStore Author
PluginStore Author
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

PreviousNext


 

Return to Plugins

Who is online

Users browsing this forum: arkijia, gostinetz, panzer201 and 10 guests

Visit our sponsors: