Wings 3D Development Forum
dxf plugin - Printable Version

+- Wings 3D Development Forum (https://www.wings3d.com/forum)
+-- Forum: Wings 3D (https://www.wings3d.com/forum/forumdisplay.php?fid=1)
+--- Forum: Design & Development (https://www.wings3d.com/forum/forumdisplay.php?fid=6)
+--- Thread: dxf plugin (/showthread.php?tid=3044)

Pages: 1 2


dxf plugin - GRUMP - 11-12-2021

I am sure this has been asked before but I couldn't anything current.
Has anyone been able to import from 2D cad in either dxf or dwg format? If so how?
I have many old 2D cad drawings in fact all of my work was carried out in librecad before discovering the joys of Wings3D, it would be a great addition for me to be able to import directly then add nodes as required.
I am sure I can't be the only person to request this?


RE: dxf plugin - oort - 11-13-2021

Grump,

Wings3D can import SVG and (PS, EPS). If LibreCad cannot export those formats you may need to use Inkscape as a tool to convert DXF to SVG.

Here is a link to the Inkscape program. I have used Inkscape in the past and it works well. It is also free. Inkscape website

oort


RE: dxf plugin - GRUMP - 11-13-2021

Thank you for the reply. I have Inkscape and have tried it many times.

Unfortunately with very little success as postscript and none as svg.

There seems to be a problem with ghostscript which Inkscape uses in the conversion process and one they have no intention of fixing from what I have read.

I just wondered if anyone had written a direct plugin using perhaps a python script or something that worked in Wings3D rather than 3rd party tools.

It seems developers of many utilities are not progressing from python 2 to 3 and the list of non available tools in the Debian sid repository is getting longer
This is my latest apt update luckily I am using a live system so cannot be written over and will restore on next boot. The downside of my system is it boots ram and quickly fills when number crunching:


Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
ghostscript pstoedit breeze-cursor-theme breeze-icon-theme erlang-cl erlang-esdl fonts noto-core
fonts-noto-hinted fonts-noto-ui-core kde-style-breeze kpackagetool5
kwin-style-breeze lib3ds-1-3 libblosc1 libboost-chrono1.74.0
libboost-filesystem1.74.0 libboost-iostreams1.74.0 libboost-locale1.74.0
libboost-log1.74.0 libboost-regex1.74.0 libboost-thread1.74.0 libglew2.1
libgs9 libgs9-common libijs-0.35 libjbig2dec0 libkdecorations2-5v5
libkdecorations2private7 libkf5auth5 libkf5declarative-data
libkf5kcmutils-data libkf5package-data libkf5package5 libkf5style5
liblog4cplus-2.0.5 libnlopt0 libopenctm1 libopenvdb7.1 libpaper1 libqhull8.0
libqt5opengl5 libqt5qmlmodels5 libqt5quick5 libqt5quickwidgets5
libsdl-ttf2.0-0 libxss-dev tcl8.6-dev tk8.6-dev x11proto-scrnsaver-dev
0 upgraded, 0 newly installed, 47 to remove and 13 not upgraded.
After this operation, 151 MB disk space will be freed.


RE: dxf plugin - GRUMP - 11-14-2021

Using the Inkscape Appimage 1.1.1 I cannot import SVG into Wings3D 2.2.7
In order to confirm the Appimage is not the fault I have installed Inkscape 1.0.2 with the same results.
Inkscape only uses Autotrace and or Potrace which I have installed standalone on my system along with Cannytrace and they all work just fine and dandy and create good SVG conversions the fault is not with the trace tools but must lie with the plugin itself.
I ge only this error message with no crash dump file created.
   

The results of my fairly extensive tests can be downloaded from here.
https://drive.google.com/drive/folders/1C3V63pBdwswyOCsTjz29Hjh9yhTgQomY?usp=sharing

Which only brings me back to my original question is there a DXF plugin for Wings3D?


RE: dxf plugin - micheus - 11-14-2021

No.

But, you can use an online free service for that.
Like https://anyconv.com/dxf-to-obj-converter/


RE: dxf plugin - oort - 11-14-2021

Grump,

It has been a while since I played with importing SVG and PS files. I have used Gimp in the past as well. I found the following old thread that has some background info.

SVG plugin discussion

I was able to import your file named result.eps but only the letters WIN came in correctly. Getting a .ps or .svg to work can be tricky since the file formats seem to vary depending on the program used to create them. Sad

oort


RE: dxf plugin - micheus - 11-14-2021

Quote:Getting a .ps or .svg to work can be tricky since the file formats seem to vary depending on the program used to create them
Indeed. I worked together to tkbd a couple of times fixing issues he tried to track. You can see a sneak peek of the difficulty to make the EPS/PS plugin to work better in this thread: http://www.wings3d.com/forum/showthread.php?tid=2279&pid=12493#pid12493

So, I suggest you to really try one of those online converters we see around over the internet. Smile


RE: dxf plugin - GRUMP - 11-14-2021

Thanks guys, I have my methods of creating what I want from DXF files and prefer to stay away from PS, EPS, PDF, etc. as they don't reproduce the way I want.

SVG is unreliable as a reproduction but good if drawn as vector initially.

I was hoping for something that worked out of the box as a direct import, my python skills are rusty to say the least and Erlang non existent so writing something is a no no for me but hey ho, onward and upwards.


RE: dxf plugin - GRUMP - 11-17-2021

I consider myself too old to think about learning a new language but I did red through this.
http://scorpius.github.io/tut-wings-shell.htm
I downloaded rebar 3 and that was enough to convince me it's not that important to me.
During my research I came across this and wondered if it could be of use to a programmer https://github.com/skvamme/ex11/blob/master/doc/dxf2erl.md
https://sourceforge.net/projects/medicalmobility/
I then went off on a tangent and also download Qcad which I have been playing with and have to admit I am enjoying using over Librecad.
I also notice that development is still current on the Wings3d git which is encouraging, maybe the plugins might start to work soon if the authors can do some updating on their work?


RE: dxf plugin - micheus - 11-18-2021

That dfx2erl maybe can be used as reference to start a plugin importer.
I saw it is handling 2D coordinates only. Also, that Erlang format is not something used by Wings3D.

At this moment I don't have the enough free time to try code it. But, we can think about it any time further.