Topic: DXF to element Issues

Hello. I am using a MacBook with a M! chip. If I use dxftoelmt it loads the dxf file but when I try to convert to element I get an error message stating the the directory is Read Only. I have checked and the directory is Read / Write. I have moved the dxftoelemt file to another directory including the same directory as qelectrotech but I still get the same result.

I have tried to use dxf2elmt but this loads and displays a message cannot find cfg. file. once the interface opens the program freezes.

Any suggestions on how to overcome this?

Re: DXF to element Issues

Hi I'm the current maintainer of dxf2elmt, although I haven't had as much time to work on it as I would like recently.

A couple of notes, dxf2elmt should be preferred over dxftoelmt, it's much more up to date, and handles dxf features that dxftoelmt doesn't.

In regards to the message "cannot find cfg" I'm can't think of anything at the moment that would give that error. dxf2elmt doesn't even have a config file, it has a set of defaults options that can be changed using command line parameters. When launched from QElectrotech it pretty much just uses the defaults.

Do you know what version of dxf2elmt you are using? You should be able to run

dxf2elmt --version

to find out.

The latest release is v0.6.1 and can be found at https://github.com/Vadoola/dxf2elmt/releases, although I only have precompiled version of x86-64 Windows for that release. I guess the other question is where did you get dxf2elmt from? Are you compiling it yourself? Since I don't have an ARM compatible Mac version up in the releases?

I also don't have a Mac of any sort, let alone with an M chip to really test against.  I've been wanting to try and get the Github Actions working properly so it will compile the correct version for different OSs.

If you can let me know what version you are running, and if there are any logs that are being created I can see if I can dig a bit deeper.

Re: DXF to element Issues

Hello and thanks for the reply. This is the version and it seems to be dxftoqet: DXF to QET ELMT converter V3.0 use SQlite. All goes well until I try to save to element file and then I get the error message that the directory is Read-only file system

Re: DXF to element Issues

AndyS wrote:

seems to be dxftoqet: DXF to QET ELMT converter V3.0 use SQlite.

Unfortunately I don't really know anything about dxftoqet, as far as I'm aware it hasn't been updated in years, and I was never involved with it.

If you have or can easily install Rust on your Mac you can probably build dxf2elmt pretty easily, it has only Rust dependencies, so you should be able to clone the repo, or download the source from the last release and run

cargo build --release

to create an executable you can use.

I know Laurent (scorpio810) created some Mac binaries for ARM and x86 of dxf2elmt at one point, and posted them in the forums. You can find the AARCH64 executable you need here https://qelectrotech.org/forum/viewtopi … 911#p21911, but it is an older version of dxf2elmt (I don't recall exactly which version off the top of my head). I think it's missing some features like nested blocks and stuff, but depending on your dxf it might work for you.

I will also see if I can spend some time looking into getting Github actions working again, so we get pre-compiled executable for each release and for various OS's and architectures, but not promises on if I will get that working any time soon.