[Plugin] Dxf_In v2.2 20110517 Dxf2Skp
-
-
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,
-
You wording is still unclear.
You attached a SKP.
You spoke of 'importing' the DXF.
This looked like you has imported - it's in your SKP.
It was all lines, with no faces.
Since you did not provide the DXF we'll never know if that had any faces in it.
However, adding faces to planar edges is simple enough in SketchUp...You then talk about 'opening' the DXF.
A DXF opens in a CAD program.
What are you using ?
SketchUp can only 'import' non-SKP files...You need to get a free CAD program to open DXFs - there are several...
Use a Google search...This thread covers an old plugin Dxf_in [it's 5 years ago!]
FreeDXF by Jim is much newer and works well with ASCII DXFs.
http://sketchucation.com/pluginstore?pln=freedfx
Why aren't you posting in its thread?
http://sketchucation.com/forums/viewtopic.php?p=186621#p186621
Have you looked at the PluginStore ?
http://sketchucation.com/plugin/838-freedfx -
Appologies for the wording... That was un-intentional. I didnt realise people would get confused. If you refer to the full thread you will see that I am struggling to import into SKP. (I can succesfully open my .dxf in both CAD and vector programs such as Adobe Illustrator)
I provided my .dxf file in an earlier post. It looks as though the user Jim could import the file successfully into sketch-up. Hence my post saying that is what I was expecting.
I didn't attach the SKP file that the user Jim.I am unable to import my dxf (see attached again) into SKP Make 2014, working on a Mac. I was trying to resolve this issue by trying first Dxf_In and then the Free Dxf plug-in.
I get the error (see attached text below) in my ruby consol, when I try and import my .dxf file using Free Dxf.
Error: #<Errno::ENOENT: No such file or directory - /volumes/projects/x training/buildinglines_saveas.dxf>
/Users/abbijoustra/Library/Application Support/SketchUp 2014/SketchUp/Plugins/jf-FreeDXF/dxf2ruby.rb:54:ininitialize' /Users/abbijoustra/Library/Application Support/SketchUp 2014/SketchUp/Plugins/jf-FreeDXF/dxf2ruby.rb:54:in
open'
/Users/abbijoustra/Library/Application Support/SketchUp 2014/SketchUp/Plugins/jf-FreeDXF/dxf2ruby.rb:54:inparse' /Users/abbijoustra/Library/Application Support/SketchUp 2014/SketchUp/Plugins/jf-FreeDXF/freedxf.rb:252:in
import'
/Users/abbijoustra/Library/Application Support/SketchUp 2014/SketchUp/Plugins/jf-FreeDXF/freedxf.rb:219:indo_import' /Users/abbijoustra/Library/Application Support/SketchUp 2014/SketchUp/Plugins/jf-FreeDXF/freedxf.rb:112:in
block in do_options'
/Users/abbijoustra/Library/Application Support/SketchUp 2014/SketchUp/Plugins/jf-FreeDXF/SKUI/events.rb:82:incall' /Users/abbijoustra/Library/Application Support/SketchUp 2014/SketchUp/Plugins/jf-FreeDXF/SKUI/events.rb:82:in
block in trigger_event'
/Users/abbijoustra/Library/Application Support/SketchUp 2014/SketchUp/Plugins/jf-FreeDXF/SKUI/events.rb:78:ineach' /Users/abbijoustra/Library/Application Support/SketchUp 2014/SketchUp/Plugins/jf-FreeDXF/SKUI/events.rb:78:in
trigger_event'
/Users/abbijoustra/Library/Application Support/SketchUp 2014/SketchUp/Plugins/jf-FreeDXF/SKUI/window.rb:357:inevent_control_callback' /Users/abbijoustra/Library/Application Support/SketchUp 2014/SketchUp/Plugins/jf-FreeDXF/SKUI/window.rb:311:in
callback_handler'
/Users/abbijoustra/Library/Application Support/SketchUp 2014/SketchUp/Plugins/jf-FreeDXF/SKUI/window.rb:269:inblock in add_callback' -e:1:in
call'Whereas with the Dxf_in I recieved and error <empty file> in SKP.
This is the first time I am engaging with any time of forum such as this so I appologise if I have post in an incorrect thread....!
I appreciate your input TIG - I am just trying to figure this issue out with whatever assistance I can get.Many Thanks
-
@charly2008 said:
Hi honoluludesktop,
I wanted to try it once but I can't find it in the Plugins menu!
Charly
Hello
In which folder did you copy the sketch? -
I'm trying to use this plugin in SketchUp Make 17.2.2555 and I see this when SkecthUp starts:
Error Loading File Dxf_In_v2.2.rb
Error: #<SyntaxError: C:/Users/bitzb/AppData/Roaming/SketchUp/SketchUp 2017/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^>
Is there anyway to fix this?
-
It's a very old, no longer supported script.
But, for personal use you could try an edit.
Open the RB file referred to in the error message[s].
Finddo|@line|
block.
Immediately BEFORE that:
@line=nil
Now remove the@
from its start, so it is then justdo|line|
...
Then add a new line immediately AFTER that:
@line=line
This way the instance variable@line
is set up outside of the block, for use in other methods, but it is not used directly as the iterator of the block, and now it is simply referenced to it - using a @ is no longer allowed in newer Ruby versions... -
In case it's useful to anyone else, here's the modifications per TIG's instructions above. I've bumped the version from 2.2 to 2.3. Thanks TIG
-
Thanks, masterlaws! I followed the modification using "vi" on my Mac and didn't see the updated version until after I had it working.
Advertisement