Bonjour ,
le symbole renvoi entrant en folio 2 est de type simple, ce n'est donc pas un élément de type renvoi..
You are not logged in. Please login or register.
QElectroTech → Posts by scorpio810
Bonjour ,
le symbole renvoi entrant en folio 2 est de type simple, ce n'est donc pas un élément de type renvoi..
Without your help on the dxf-rs source code and polygon.rs change I wouldn't have got far,
so you do the honours to make the few changes in your branch.
Thanks you Carl.
I've noticed that many more DXF files are now being converted,
whereas previously they would generate an error and can't be converted....
macOS INTEL X86_64 binary
Windows 64 binary.
Thanks Carl, dxf2elmt compile it's now ok for me too, and correct at the same time issue
https://github.com/ixmilia/dxf-rs/issues/46
and
https://github.com/Vadoola/dxf2elmt/issues/19
Linux debian sid 64 dxf2elmt
https://github.com/scorpio810/dxf2elmt.git
Make the File Executable
chmod +x dxf2elmt
Edit: I tried to go to last git main branch but dxf2elmt code can't compile after patched cargo.toml and use cargo update to update cargo.lock...
diff --git a/Cargo.toml b/Cargo.toml
index 2d78bdc..9b8bc2e 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -17,7 +17,7 @@ lto = true
opt-level = 3
[dependencies]
-dxf = "0.5.0"
+dxf = { git = "https://github.com/ixmilia/dxf-rs.git" }
simple-xml-builder = "1.1.0"
bspline = "1.1.0"
uuid = { version = "1.10.0", features = ["serde", "v4"] }
~/new_dxf2elmt_vadoola_fork$ cargo build --release
Compiling dxf2elmt v0.4.0 (/home/laurent/new_dxf2elmt_vadoola_fork)
warning: unused import: `dxf::objects::Object`
--> src/qelmt/mod.rs:1:5
|
1 | use dxf::objects::Object;
| ^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
warning: unused import: `text`
--> src/qelmt/dynamictext.rs:1:13
|
1 | use super::{text, two_dec};
| ^^^^
error[E0599]: no method named `get_is_closed` found for reference `&dxf::entities::Polyline` in the current scope
--> src/qelmt/polygon.rs:60:26
|
60 | closed: poly.get_is_closed(),
| ^^^^^^^^^^^^^
|
help: there is a method `set_is_closed` with a similar name, but with different arguments
--> /home/laurent/new_dxf2elmt_vadoola_fork/target/release/build/dxf-a92690d5c3960b91/out/generated/entities.rs:1726:5
|
1726 | pub fn set_is_closed(&mut self, val: bool) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0599]: no method named `get_is_closed` found for reference `&dxf::entities::LwPolyline` in the current scope
--> src/qelmt/polygon.rs:85:26
|
85 | closed: poly.get_is_closed(),
| ^^^^^^^^^^^^^
|
help: there is a method `set_is_closed` with a similar name, but with different arguments
--> /home/laurent/new_dxf2elmt_vadoola_fork/target/release/build/dxf-a92690d5c3960b91/out/generated/entities.rs:1388:5
|
1388 | pub fn set_is_closed(&mut self, val: bool) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0599]: no method named `get_is_closed` found for reference `&dxf::entities::Spline` in the current scope
--> src/qelmt/polygon.rs:144:28
|
144 | closed: spline.get_is_closed(),
| ^^^^^^^^^^^^^
|
help: there is a method `set_is_closed` with a similar name, but with different arguments
--> /home/laurent/new_dxf2elmt_vadoola_fork/target/release/build/dxf-a92690d5c3960b91/out/generated/entities.rs:2107:5
|
2107 | pub fn set_is_closed(&mut self, val: bool) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
For more information about this error, try `rustc --explain E0599`.
warning: `dxf2elmt` (bin "dxf2elmt") generated 2 warnings
error: could not compile `dxf2elmt` (bin "dxf2elmt") due to 3 previous errors; 2 warnings emitted
@vadoola: FYI https://qelectrotech.org/forum/viewtopi … 496#p20496
https://github.com/ixmilia/dxf-rs/issues/46
You use last dxf-rs old tag or master git?
Edit you used the V 0.5.0
https://github.com/qelectrotech/new_dxf … o.toml#L20
Why not use space to center text, no need to use avanced text editor and HTML?
Bonjour,
il y a ce tres vieux tuto de Nuri qui date de 2016 et qui ne doit plus fonctionner mais peut-être que ça te donneras des idées de workarounds, d'ailleurs c'est pour cette fonction que le mode gris sombre existe dans l’éditeur de schéma pouvoir ajouter des composants dessinés en blanc qui ne seront visible que sur ce mode, et donc invisible a l'impression du projet afin d'enrichir la nomenclature.
Je me rappelle qu'il en avait parlé sur ce forum, de la à retrouver le lien...
https://download.qelectrotech.org/qet/n … dition.pdf
Cordialement,
Laurent
No need to edit element in element editor to add element informations dynamic texts.
Clic on your transformer in propertie of selection in tab information on fucntion field enter your text.
Now go to tab text, add text (1) selectect information of element (2), and select function (3)
In the XML of the elmt file produced by dxf2elmt, I was able to easily separate the drawing data from the text data in order to create two QET symbols so that I could try to merge them manually from the editor.
It is not easy to adjust the text fonts on the drawing, which is why in a symbol of this type with a lot of text and terminals, it is preferable to draw it from the editor from scratch.
Error: Failed to load deos600...
Make sure the file is a valid .dxf file.
Caused by:
an unexpected code '90' was encountered at line/offset 11
/media/backup6/download$ cat -b deos600.dxf
1 0
2 SECTION
3 2
4 HEADER
5 9
6 $ACADVER
7 1
8 AC1032
9 9
10 $ACADMAINTVER
11 90
12 55
13 9
14 $DWGCODEPAGE
15 3
16 ANSI_1252
17 9
18 $LASTSAVEDBY
19 1
20 Thomas16
21 9
22 $REQUIREDVERSIONS
10 $ACADMAINTVER
11 90
See:
https://github.com/ixmilia/dxf-rs/issues/46
https://github.com/ixmilia/dxf-rs/issues/27
https://ezdxf.mozman.at/release-v0-10-1.html
But if I open with libreCad and save the DXF in ‘drawing Exchange 2007’ format (*.dxf)... Vadoola dxf2elmt works but ... the font size was too big, it's a good start.
Edit: no need to open with LibreCAD just remove these lines (10 to 13):
10 $ACADMAINTVER
11 90
12 55
13 9
As plc-user says, if you can submit these dxf elements, we may be able to test with Vaddola whether these symbols can help QET and also electrical equipment manufacturers and also QET users. If not no problem, we provide an editor, not perefect ...
Electrical equipment manufacturers sometimes ask me by e-mail how to add their electrical products to the QET collection...
The problem is that they don't have the time or the staff to provide QElectroTech with a specific elmt file, the only thing they can share internally is their DWG/DXF most of the cases in 3D, ....which is useless and impractical with simple drawing software...
Hi Luca,
thanks for the link and the workaround.
Regards,
Laurent
@Kellermorph:
Have you used DWG/DXF element https://www.wscad.com/fr/wscaduniverse/ and converted with new dxf2elmt or created from scrath?
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.
QElectroTech → Posts by scorpio810
Powered by PunBB, supported by Informer Technologies, Inc.
Generated in 0.108 seconds (21% PHP - 79% DB) with 5 queries