Hello,

Creator of the conversion program here. dxf2elmt does not currently support the entities in that the .dxf file, as mentioned by another commenter. Support for this will hopefully be added soon.

-Antonio

2

(56 replies, posted in Import)

scorpio810 wrote:

If you have the possibility to use dynamic text instead of static text, users would be able to modify the texts of converted DXF to elmt directly in the diagram without having to modify them in the element editor.
You will make users happy. nomicons/wink

if possible and not too your free time consuming, otherwise forget it.

https://download.qelectrotech.org/qet/forum_img_2/text_static_vs_dynamic.png

Thanks again for your great work antonioaja. ;-)

Thanks for the feedback, and glad I can help. I'll look into adding dynamic text some time soon, as well as getting the hotspot x/y working so a resave isn't necessary. Again, thanks!

3

(56 replies, posted in Import)

Joshua wrote:

Is it possible to add an argument to your program for instead of write in a .elmt file, return the xml (string) in the stdout ?
If yes, I can use your program trought qelectrotech to import a dxf directly inside the element editor ? You will make a lot of happy user nomicons/smile

Hello,

Version 0.3.0 is available on my github. You can use the argument "-v" to return the xml string instead of creating a .elmt file.

4

(56 replies, posted in Import)

Joshua wrote:

Is it possible to add an argument to your program for instead of write in a .elmt file, return the xml (string) in the stdout ?
If yes, I can use your program trought qelectrotech to import a dxf directly inside the element editor ? You will make a lot of happy user nomicons/smile

It should be possible. I'll try to add this feature in the next few days. nomicons/smile

5

(56 replies, posted in Import)

Joshua wrote:

Hello antonioaja, thanks for your work nomicons/grin
They work with binary and ascii dxf file or only ascii ? I check the dxf-rs documentation but I see nothing about this.

The program works with both binary and ascii.

6

(56 replies, posted in Import)

antonioaja wrote:
scorpio810 wrote:

Maybe a little bug?

lol... Yes, that does seem to be a bug. Probably has to do with how I'm ordering the polygon points. Thanks for showing me.

This bug is now fixed. I never set 'closed="false"' on the polygon, so it defaulted to "true". The changes are in the main branch. Will upload a new version tonight.

7

(56 replies, posted in Import)

scorpio810 wrote:

Maybe a little bug?

lol... Yes, that does seem to be a bug. Probably has to do with how I'm ordering the polygon points. Thanks for showing me.

8

(56 replies, posted in Import)

scorpio810 wrote:

I don't know rust and how to cross-compile it for Windows I'use MXE for Windows builds.
Hmm

rustup isn't Debian packaged yet...

I have executables for windows and mac on the github page. I'll add a linux binary later today.

I also noticed issued with the text font I used. I'll change this as well.

9

(56 replies, posted in Import)

scorpio810 wrote:

Hello antonioaja,

you are welcome. ;-)

laurent@debian:/media/backup6/download/dxf2elmt$ cargo build
error: failed to parse manifest at `/media/backup6/download/dxf2elmt/Cargo.toml`
 
Caused by:
  feature `strip` is required
 
  The package requires the Cargo feature called `strip`, but that feature is not stabilized in this version of Cargo (1.56.0).
  Consider adding `cargo-features = ["strip"]` to the top of Cargo.toml (above the [package] table) to tell Cargo you are opting in to use this unstable feature.

Thanks for the feedback... Your issue seems to be with a different version of cargo.... I used cargo 1.62.0. I'll update my docs to reflect this.

scorpio810 wrote:

WoW ^^ very impressive, thanks.

Loxone\ Products\ CAD_20200514.dxf  is a big DXF ~ 23,0 Mio (24149756)

Glad it worked for you! Thanks for the feedback.

10

(56 replies, posted in Import)

Hello,

I was quite frustrated with the current conversion tool's sluggish conversion rate as well as its tendency to crash. So, I created, in my opinion, a better conversion tool using rust. It's a simple CLI program where you give the executable a .dxf file and it spits out a .elmt. Most entities are implemented. Check it out on my github: antonioaja/dxf2elmt

The program is over 1000x faster than the current solution. Example: a .dxf file that took close to 2 minutes to convert can now be done in 50ms. Let me know of any features you want added or any issues you may have.

Thanks.