Hi Luca,
I 'm thinking is maybe a wayland or Qt problem.
https://qelectrotech.org/bugtracker/view.php?id=305
Laurent
You are not logged in. Please login or register.
QElectroTech → Posts by scorpio810
Hi Luca,
I 'm thinking is maybe a wayland or Qt problem.
https://qelectrotech.org/bugtracker/view.php?id=305
Laurent
Hi
Ich habe auch versucht im Terminal ./dxf2elmt deos600.dxf einzugeben aber bekam den Fehler Error: UnexpectedCode(90, 11).
You can share here this file: deos600.dxf?
@Kellermorph:
Linux 64 new dxf2elmt binary
https://qelectrotech.org/forum/viewtopi … 380#p20380
Why?
1 Download last 0.100-dev
2 If you OS is Windows get the new dxf2elmt binary archive, and extract it on QET binary folder like this vidéo:
https://qelectrotech.org/forum/viewtopi … 381#p20381
3 open your element editor in GUI and chose import an dxf..
C:\Users\"user"\Application Data\qet\binary
It 's the same procedure :
1- click button "Download" to get tarball, download your OS version.
2- cick button "Installion folder"
3- paste in this folder your exe (unzip if Windows not extract it automatically)
4- click button "ok" to finish installNow you can open menu file again and click to "import DXF" to launch new DXF import tool.
Enjoy!
The folder "Application Data" is for backward compatibility,the real folder is now at a different place.
The fastest way to get to the folder is to enter "%APPDATA%" in explorer.
Else you can manually browse to C:\Users\{Your User Name}\AppData\Roaming
Si c'est le même élément voir la solution proposée ici:
https://qelectrotech.org/forum/viewtopic.php?id=1932
Par contre pour que tu puisse conserver les conducteurs, l'élément doit avoir le même nombre de bornes, et c'elle ci doivent se trouver exactement à la même position. Si ces conditions ne sont pas respecté les "ancien" éléments disparaîtront.
Pour résumer tu peut modifier l'aspect graphique mais ne pas toucher au bornes.
Fait une copie de ton fichier .qet avant de faire la manipulation au cas ou quelque chose tourne mal.
Did you use the Forum-Search before posting here?
Regards Laurent
Hello Vadoola!
Hallo plc-user!
Uniformise MessageBox, add the same type of box popup like plc-user added for QET_ElementScaler, when dxf2elmt can't convert DXF files.
Add QObjet for translate box message.
I may not be using QET for the kind of wiring diagramming for which it was originally conceived, but I appreciate it - and all the work that goes into developing it - because I enjoy its ability to generate aesthetically pleasing output, even if a few workarounds are still required to achieve that; thanks for everything you've been working on for the QET project.
Thanks for your compliments hairy_kiwi.
I saw you used old version, on last 0.100-dev you have also an company collection to put your elements.
Thanks you for your commit
Hallo plc-user
great
I have this patch, show the real error but also an empty widget when convert is ok... humm what do you think?
--- sources/dxf/dxftoelmt.cpp
+++ sources/dxf/dxftoelmt.cpp
@@ -23,6 +23,8 @@
#include <QMessageBox>
#include <QDir>
#include <QDebug>
+#include <QTextBrowser>
+#include <QProcess>
/**
* @brief dxftoElmt
@@ -39,28 +41,31 @@ QByteArray dxfToElmt(const QString &file_path)
return QByteArray();
}
- QProcess process_;
+ auto process = new QProcess;
+ auto view = new QTextBrowser;
+
+
+ QObject::connect(process, &QProcess::readyReadStandardError, [process,view]() {
+ auto output=process->readAllStandardError().data();
+ view->append(output);
+ });
+
const QString program{dxf2ElmtBinaryPath()};
const QStringList arguments{file_path, QStringLiteral("-v")};
- process_.start(program, arguments);
- // qInfo()<<"\n Start converting DXF file..........\n"<< file_path;
- //qInfo()<< process_.readAllStandardError().data(); //Print standard error to log file
+ process->start(program, arguments);
- if (process_.waitForFinished())
- {
- bool dxf2elmterr = process_.readAllStandardError().isEmpty();
- QString message=QObject::tr(
- "Error: Make sure the file is a valid .dxf file");
-
- if (!dxf2elmterr){
- QMessageBox::warning(nullptr,
- QObject::tr("Error: to convert this dxf file."),
- message);
- }
+ process->setProcessChannelMode(QProcess::MergedChannels);
+
+ process->waitForStarted();
+ qDebug() << process->error();
+ view->show();
- const auto byte_array{process_.readAll()};
- process_.close();
+
+ if (process->waitForFinished())
+ {
+ const auto byte_array{process->readAll()};
+ process->close();
return byte_array;
}
else
Hello Vadoola!
Hallo plc-user!
Now the program return a messageBox to inform users if dxf2elmt can't convert DXF files, but I loose QInfo() information about the errors in logs files... which is a bit of a shame, unless you do run dxf2elmt in a CLI terminal to read the convertion error!
if someone can help?
--- sources/dxf/dxftoelmt.cpp
+++ sources/dxf/dxftoelmt.cpp
@@ -22,7 +22,6 @@
#include <QProcess>
#include <QMessageBox>
#include <QDir>
-#include <iostream>
#include <QDebug>
/**
@@ -45,11 +44,20 @@ QByteArray dxfToElmt(const QString &file_path)
const QStringList arguments{file_path, QStringLiteral("-v")};
process_.start(program, arguments);
+ // qInfo()<<"\n Start converting DXF file..........\n"<< file_path;
+ // qInfo()<< process_.readAllStandardError(); //Print standard error to log file
if (process_.waitForFinished())
{
- qInfo()<<"\n Start converting DXF file..........\n"<< file_path;
- qInfo()<< process_.readAllStandardError().data(); //Print standard error to log file
+ bool dxf2elmterr = process_.readAllStandardError().isEmpty();
+ QString message=QObject::tr(
+ "Error: Make sure the file is a valid .dxf file");
+
+ if (!dxf2elmterr){
+ QMessageBox::warning(nullptr,
+ QObject::tr("Error: to convert this dxf file."),
+ message);
+ }
const auto byte_array{process_.readAll()};
process_.close();
FYI, these elements isn't used in electric diagram on France!
Yes, you can lock the text colour for newly created conductors in the project properties, but bear in mind that if you connect another connector to it that has another wire of a different colour you'll have to make a choice!
Laurent
Hallo plc-user
FYI, the joedavenportjd25 message contained a hidden URL, so I deleted the spammer..
Hello Vadoola!
Hallo plc-user!
dxftoelmt: add Print standard error and filepath name to the log files when launching program on QET element editor.
users shouldn't wait an hour in front of his element editor screen, but just look at the QET logs a minute later if nothing happens...
macOS Apple silicon arm64 binary
QElectroTech → Posts by scorpio810
Powered by PunBB, supported by Informer Technologies, Inc.
Generated in 0.157 seconds (20% PHP - 80% DB) with 5 queries