[Plugin] Dxf_In v2.2 20110517 Dxf2Skp

Re: [Plugin] Dxf_In v1.6

Postby honoluludesktop » Thu Oct 14, 2010 4:22 pm

Oops...wrong conversion values for metric scales. Corrected with v1.6. In addition to minor adjustments, "check for upgrade" is a selection from the Option menu. "Yes" to this will take you to the top of this topic, and clear the options returning SU to its previous condition.
0
User avatar
honoluludesktop 
In Remembrance
 

Re: [Plugin] Dxf_In v1.9

Postby honoluludesktop » Sat Oct 16, 2010 11:31 am

V1.9 includes improved user interface, and support for faces by layers and materials. The default material colors are based on Acad's color chart of 256 colors. Unlikely to be used, but included is support for colors by SU's color name chart of 140 colors, and the current model's colors. Btw, I had to manually reverse the faces on the right side, near wing of the model.

temp19.jpg
0
User avatar
honoluludesktop 
In Remembrance
 

Re: [Plugin] Dxf_In v1.9

Postby ideas_arte » Tue Oct 19, 2010 7:53 am

:berserk: :berserk: :berserk:

Thank you very much!!!!
0

ideas_arte 
 

Re: [Plugin] Dxf_In v1.10

Postby honoluludesktop » Tue Oct 19, 2010 6:32 pm

V1.10 places a rescaled dxf model on the mouse pointer.

Temp90.jpg

The import file name is in the upper left. Check update take you to the top of this topic's page, and import units include metric as well as imperial scales. Import origins are placed on SU's origin, or subject to the mouse pointer. The default import is for closed polylines to faces, however this may be turned off. Dxf colors by Acad number is also the default, SU names, SU's model materials, or none may be selected.

I think all the interface issues have been addressed. I do not intend to add other entities (perhaps only as requested).
0
User avatar
honoluludesktop 
In Remembrance
 

Re: [Plugin] Dxf_In v1.14

Postby honoluludesktop » Thu Oct 21, 2010 9:19 pm

V 1.14 includes minor interface refinements, and the "help option" to save current option selections. Below is a example of an imported 3d polymesh whose definition name is created from the name of the file.dxf.
0
User avatar
honoluludesktop 
In Remembrance
 

Re: [Plugin] Dxf_In v1.14

Postby jbertke » Fri Oct 29, 2010 7:24 pm

Honoluludesktop,
How do I get a copy of your DXF importer plugin? It looks like just the thing I need.
Thanks,
Jim B
0

jbertke 
 

Re: [Plugin] Dxf_In v1.14

Postby honoluludesktop » Sun Oct 31, 2010 12:27 am

It's here at the top of this topic.
0
User avatar
honoluludesktop 
In Remembrance
 

polymesh

Postby gonedata » Tue Nov 02, 2010 3:52 pm

honoluludesktop

great work!

imported 3d polymesh from construction software(agtek)generated dxf

the terrain looks perfect...
0

gonedata 
 

Re: [Plugin] Dxf_In v1.14

Postby lovebugjunkie » Thu Nov 04, 2010 5:49 pm

Thank you for this plugin, very useful.
0

lovebugjunkie 
 

Re: [Plugin] Dxf_In v1.14 092410 v1.15 French version

Postby honoluludesktop » Tue Nov 23, 2010 10:42 pm

Added Dxf_In v1.15 french translation thanks to D. Bur.

LES ENTITES DXF SUPPORTEES SONT:

1. Polylignes comme arêtes connectées.
2. Polyligne's (fermées) comme faces sélectionnées par l'utilisateur.
3. LWPolylignes comme arêtes connectées.
5. Lignes comme arêtes.
6. Cercles comme contour d'arêtes.
7. Arcs comme contour d'arêtes.
8. 3dFaces comme faces.
9. Blocs comme groupes ou composants.
10. Maillage Polyligne comme arêtes.
11. Maillage comme faces sélectionnées.
0
User avatar
honoluludesktop 
In Remembrance
 

Re: [Plugin] Dxf_In v1.16 092410 v1.15 French version

Postby honoluludesktop » Tue Dec 21, 2010 3:33 pm

Minor update including facing circles when user option to face polylines is selected (v15), and streamlining the readability of the code (v16).
0
User avatar
honoluludesktop 
In Remembrance
 

Re: [Plugin] Dxf_In v1.16 092410 v1.16

Postby HHF » Wed Dec 22, 2010 9:33 pm

Hello Honoluludesktop...First THANK YOU..for this great plug-in..
my DXF when imported to SKU8 comes flat i.e. the Z height comes at zero..yet when I imported to the 7.1 version comes with the right heights..?
Thanks in advance for your input..
0

HHF 
 

Re: [Plugin] Dxf_In v1.16 092410 v1.15 French version

Postby honoluludesktop » Thu Dec 23, 2010 10:19 am

Can you post the dxf here? The only Dxf_In entities that default to z=0 are LWPolylines.
0
User avatar
honoluludesktop 
In Remembrance
 

Re: [Plugin] Dxf_In v1.16 092410 v1.15 French version

Postby honoluludesktop » Thu Dec 23, 2010 11:15 am

Hmmmmm..... The dxf reference has a LWPolyline code "elevation" that I had not previously taken into account. Try the attached Dxf_In, and let me know if it works or not. Don't forget to post your dxf file.
0
User avatar
honoluludesktop 
In Remembrance
 

Re: [Plugin] Dxf_In v1.16 092410 v1.15 French version

Postby HHF » Thu Dec 23, 2010 10:25 pm

I tried v1.17..it did not work either..I am also attaching the DXF ..look forward for your comments...Thanks,
0
Last edited by HHF on Sat Dec 25, 2010 10:43 pm, edited 1 time in total.

HHF 
 

Re: [Plugin] Dxf_In v1.16 092410 v1.15 French version

Postby honoluludesktop » Fri Dec 24, 2010 11:56 am

HHF, Give this a try:

Ruby Removed, download from here.

Temp00.png

This works with the dxf you supplied. If you come across other dxf files with entities that fail translation, please post them here. Read the application's help, there are some entities that are outside my ability to convert.

I hate Dxf, it provides several ways to do the same thing, resulting in increasing the difficulty for 3d party applications to comply. My code is resonably organized, resulting in the attached fix.
0
Last edited by honoluludesktop on Tue Jan 11, 2011 2:51 pm, edited 4 times in total.
User avatar
honoluludesktop 
In Remembrance
 

Re: [Plugin] Dxf_In v1.18 092410 v1.15 French version

Postby HHF » Fri Dec 24, 2010 11:27 pm

Aloha!..it worked ! ..however I tried a more complex file and it did not come out right (picture #2) I exploded every line before converting to DXF and may have missed something in the midst... I am attaching the the new DXF for your review..
Thank you again for all your input..Happy Holidays..
0
Last edited by HHF on Mon Dec 27, 2010 9:00 pm, edited 3 times in total.

HHF 
 

Re: [Plugin] Dxf_In v1.18 092410 v1.15 French version

Postby honoluludesktop » Sat Dec 25, 2010 2:02 am

HHF, This is the file as translated by an Acad Viewer. The viewer is v2000. I also read the dxf file, and couldn't find the kind of information used to update Dxf_In_v1.18 as part of the new file's entities. Perhaps you shouldn't explode the drawing, and just export it to Dxf as is. Which version of Acad did you use to make the dxf?
Temp00.png
0
User avatar
honoluludesktop 
In Remembrance
 

Re: [Plugin] Dxf_In v1.18 092410 v1.15 French version

Postby HHF » Sat Dec 25, 2010 8:48 pm

Hello Honoluludesktop..
Not exploding the file was good advice ...it came out nice, ..to answer your question the prefered sofware is Datacad (to me it is more powerful than Autocad..sorry guys!!). It can export any file to DWG and DXF format latest versions..in this instance DXF was saved to version 2002
Thanks again for this wonderful Plug-In it gave me a lot of possiblities...please enjoy your holidays!!
0

HHF 
 

Re: [Plugin] Dxf_In v1.18 092410 v1.15 French version

Postby wireb » Tue Dec 28, 2010 11:29 pm

First off thanks for the import utility!

Been trying to import a dxf from stock drive products of a timing pulley. Unfortunately only 1 line in the drawing makes it. Did not get any errors or unsupported entities so not exactly sure what happened...

Can you take a look at it?

(image of the part and dxf attached.)
0

wireb 
 

Re: [Plugin] Dxf_In v1.18 092410 v1.15 French version

Postby honoluludesktop » Wed Dec 29, 2010 12:35 pm

Hi wireb, I do not see the image or file. Btw, what version of Dxf_In did you use?
0
User avatar
honoluludesktop 
In Remembrance
 

Re: [Plugin] Dxf_In v1.18 092410 v1.15 French version

Postby wireb » Wed Dec 29, 2010 3:34 pm

Version 1.18 and not sure why I cannot attach anything.

Here is a link to the cad download page for the part I am trying to import.
http://catalog.catalogds.com/catalog/sh ... -78SF03716
i chose the "DXF file (.dxf)" option.
I also verified I can open the file in a dxf viewer so 99% sure the copy I have is good.

Thanks again for taking a look. It's a simple part so can draw from scratch if I need to. But use quite a few parts from them so would be nice if I could get them to import so I have a base to draw from.
0

wireb 
 

Re: [Plugin] Dxf_In v1.18 092410 v1.15 French version

Postby honoluludesktop » Thu Dec 30, 2010 1:47 am

wireb, The dxf is a database with 2d entities created by pro/engineer as ACAD Dxf version 14.

999
Pro/ENGINEER 2005030 by Parametric Technology Corporation
.
.
$ACADVER
1
AC1014

In the attached portion regarding a LINE from the Dxf file, note the sequence of tags 10, 20, 11, 21. These are probably coordinates from the start of the line x,y to its end x,y. Dxf_In supports and Acad Dxf v14 requires for LINE, 10, 20, 30, 11, 21, 31 (start at x,y,z to end at x,y,z).

0
LINE
5
212
100
AcDbEntity
8
DEFAULT_2
100
AcDbLine
62
8
6
HIDDEN
10
11.9420742236
20
13.5330979028
11
11.9201184463
21
13.4944728974
0

I guess the reader you used overlooks this. One Acad viewer I tried rejects the file, and another non-acad viewer produced the attached 3d view of the file. Is it correct?
Temp00.png

Notice how the model is floating above x=0,y=0,z=0 origin? Is that also correct? If there is any possibility for Dxf_In to accommodate this file, I need to know what it should look like. Finally, your Dxf includes the entity SPLINE, that Sketchup doesn't support. Dxf_In would have to change it into a polyline (a line segment made up of many stright lines) to import it. Is this OK?

Btw, I think the reason you can not upload files is that as a new user, you are being temporarily blocked from uploading just in case you are a spam. Ask admin to turn on your privileges.
0
User avatar
honoluludesktop 
In Remembrance
 

Re: [Plugin] Dxf_In v1.18 092410 v1.15 French version

Postby wireb » Thu Dec 30, 2010 3:33 am

Yep that looks like the part (cog belt pulley (only 2 teeth are shown)

Segmented lines are fine by me. I can go in and touch them up manually while I am turning the 2d drawing back into a 3d part.

I think the z axis is undefined since this is a 2d print. You can lay it out at z=0 (or any value for that mater) The print is going to get cut down to just that center part (big circle) then pushed / pulled back into the 3d part. So will be moved around quite a bit.

Thanks much for taking a look at this!!
0

wireb 
 

Re: [Plugin] Dxf_In v1.18 092410 v1.15 French version

Postby honoluludesktop » Thu Dec 30, 2010 2:07 pm

wirdb, It would take more time then I currently have to modify Dxf_In to include 2d entities no longer supported by Acad. However I will pm you a beta version of Dxf_In_2d for 2d lines, polylines (untested), arcs, and circles. This plugin will not translate those entities into 3d, even if the information is in the file. I will not implement Splines at this time. I hope that it saves you some time in your work. Except for minor fixes, I will not be able to support this plugin.
Temp00.png

Addenda:
dxf_In_v1.18c.rb
0
Last edited by honoluludesktop on Tue Jan 11, 2011 2:55 pm, edited 2 times in total.
User avatar
honoluludesktop 
In Remembrance
 

Re: [Plugin] Dxf_In v1.18 092410 v1.15 French version

Postby wireb » Thu Dec 30, 2010 11:05 pm

Yep got it and it works great. Made one change so the menu item comes up as import 2D DXF so I can have both loaded at once.

Looks like the spline were only used in the lettering and the isso view of the part and for some reason the set screw hole (no idea why that one is). The flat parts all imported with no issues other than the dotted hidden lines came in solid which is a non issue for what I am going to use it for.

after a little pushing and pulling (and manually adding the set screw hole back)



Thanks again for the help!
0

wireb 
 

Re: [Plugin] Dxf_In v1.18 092410 v1.15 French version

Postby jorat1346 » Mon Jan 10, 2011 11:56 pm

Little fix:
line 58 should be changed to
Code: Select all
ext_name = name_parts[name_parts.length-1].upcase
0

jorat1346 
 

Re: [Plugin] Dxf_In v1.18 092410 v1.15 French version

Postby dsct » Tue Jan 11, 2011 1:56 am

Honoluludesktop,

I just found your plugin and it is what I've been looking for. I appreciate your sharing it with other users. I generate surfaces in my own program and write out a dxf file using 3dface entities. The old version of SU free read them nicely allowing me to view them in 3D. I downloaded your plugin but it isn't working for me yet. It shows on the menu under file and brings up the browser. However, I get a message "<Error> or Empty File" which I see comes from the plugin. Is there a SU setting that I'm missing or something that I may not be doing correctly?

I've attached a small sample file of the type I'm generating.

Thanks for any help,
dsct
0

dsct 
 

Re: [Plugin] Dxf_In v1.18 092410 v1.15 French version

Postby honoluludesktop » Tue Jan 11, 2011 2:12 am

ttrraa trata, thanks.

dsct, I am looking at the file.
0
User avatar
honoluludesktop 
In Remembrance
 

Re: [Plugin] Dxf_In v1.18 092410 v1.15 French version

Postby honoluludesktop » Tue Jan 11, 2011 6:05 am

dsct, TestFile.dxf contains 5 3DFACEs. The file doesn't follow the Acad specification and among other things, contains no Dxf header, no indentations for the entity codes, and 3DFACE is written "3dface" in lowercase. It will not open in a AutoCad viewer.
Temp01.png

I believe that SU uses ODA's code for reading dxf. This translator, unlike AutoCad's translator contains workarounds for many non conforming entity codes.

SUv7/ODA translates TestFile with 10 faces, scale's entities in feet, and locates the model on the ground plane.
Temp04.png

Attached is a variant of Dxf_In that will read 3DFACEs in lower case. It translates TestFile.dxf with 5 faces, default scale in inches (may be changed in the options menu), and a elevated z axis.
dxf_In_v1.18b.rb
Temp03.png
I do not know which import is more correct.

Unlike the ODA, I am not incline to correct all non conforming entity codes. Because Dxf_In is a SU plugin, these corrections will slow down the program, and be less compatible with future Autocad dxf releases. Having said that, I have made changes to Dxf_In to correct some non conforming entity codes.

I will do further testing, and post any findings here. Where did you get the Dxf from? Hope that the Dxf_In variant helps you.
0
User avatar
honoluludesktop 
In Remembrance
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

PreviousNext


 

Return to Plugins

Who is online

Users browsing this forum: thwys25 and 7 guests

Visit our sponsors: