Hello Alexandra!

Many unanswered questions before you can be helped:
Which system are you using?
Which QElectroTech version are you using? (Help -> About QElectroTech -> ‘Version’ tab)
Are there any helpful entries in the log file? (Help -> About QElectroTech -> ‘log’ tab)
What have you done with the file in the meantime? (edited it with an editor or something?)
Can you make the file available for checking?

Kellermorph wrote:

If im doing it, it doesnt change the Number. In this example from 6 to 8.

Streiche doch mal das "-id" aus dem Schriftfeld und schreibe nur "%(folio)" da rein!

253

(193 replies, posted in Import DXF)

Addendum:
In the thread Scripts / QET-Element to SVG you find some posts with comments from Laurent, Joshua and me about texts, fonts and font-sizes in qt / QET. There are also some links to docs for further reading.
https://qelectrotech.org/forum/viewtopic.php?id=2637

8A wrote:

What is the correct way to create a new element from a DXF?

Did you notice the menu-entry just below "Import scaled element"? (see attachment!)
AND: Use the conversion-tool dxf2elmt! The other tool is VERY outdated!
You find the download-link for win64 in this post: https://qelectrotech.org/forum/viewtopi … 520#p20520

8A wrote:

(...) I exported a DXF (...)

What do you want to do?
QET works with own file-formats for elements and schematics!

I think, many of your questions about scale and dxf-import will be answered, if you read in the other thread and follow the links there:
https://qelectrotech.org/forum/viewtopi … 684#p20684

255

(193 replies, posted in Import DXF)

Hello Vadoola!
Salut Laurent !

vadoola wrote:

Another question is if I have a dxf that is "unit less" should I do any scaling at all or just assume it's in pixels. I don't recall which drawing it was ...

It would of course be a great help to see such a unitless file in order to be able to judge how we should deal with it.

But if there are no units, there is nothing you can do but assume pixels as the unit. Perhaps a factor of 10, 100, etc. would make sense if it turns out that the structures would otherwise be too small? You can only estimate the factor if you have seen a few examples...

8A wrote:

(...) but I need to scale a DXF  (...)

As the name QET_ElementScaler might suggest, only QET-Elements can be scaled by that software!
You need to convert your dxf to a QET-Element before using QET_ElementScaler!

Closing a single folio is not supported (yet).
But you can also navigate through the folios using the project-tree by double-clicking on the folio-name.

258

(193 replies, posted in Import DXF)

Hello vadoola!
Salut Laurent !

vadoola wrote:

That calculation is based on trying to map the real world dimensions to pixels based on an A4 Sheet of paper using the standard QET Template.

As I already wrote several times in this forum:
QET is primarily a software to draw schematic diagrams.
QET is no substitute for CAD software like LibreCAD, AutoCAD or so.
The only dimension QET "knows" is px!
These number of px can be set by every user individually for height/width of a folio.
A folio itself has no direct connection to a papersize – it can be printed to any papersize, users have a printer for.

So in my opinion we should NOT use a specific size of paper for the scaling of elements!

As I suggested several times we should use a front-view-scaling where the user can see the real size at first sight or where he/she can calculate the real size by using a simple integer factor:
1 mm <-> 2 px

1 px is also the smallest step size, a QET-Element can be moved in diagram-editor. So then we could "move" the elements by 1 px = 1/2 millimeter in real-life.

We already have a wild mixture of scaling-factors with front-views: Please don't add another!



About the texts / fonts

That wasn't meant as a negative criticism: just a remark that this is the case.
It is clear to me in particular that there is still a lot of work to be done to integrate the texts correctly into the element. You will have "a lot of fun” with the text position, because it is not directly on the baseline of the first letter, but on a bounding box that is specified by qt, but not well described...

A difference to many other software: QET can only handle font-sizes which are integer numbers!

LievenC wrote:

In the new version I found another issue ...

Can't reproduce either:
TitleBlock-Template is removed from directory, Templates-Tree and ComboBox in QET-Settings.

Do you possibly have file-access-problems on your "non-admin"-machine?

On M$ where I don't have admin-rights I only use the "Ready-To-Use" - Version!
I use DoubleCommander to unpack and copy it to a folder in "D" and it works perfectly for some years now!
When upgrading to a new version you first have to delete the elements-folder for the case that some elements are moved from one folder to another AND you have to prevent the config-folder from overwriting.

You are right, Lieven, the ComboBox with the list of ALL templates isn't filled with the company-templates!

Sorry for confusion!

I am already on the search in the sourcecode, where this is going wrong...

But in the meantime you can use the "workaround"!

EDIT:
Found, where it went wrong! (see attachment)
Will create a pull-Request on GitHub!

262

(193 replies, posted in Import DXF)

Hello Vadoola!
Salut Laurent !

That's a great step forward, Vadoola!

It looks very good, but unfortunately I have to say that the dimensions are not yet right. There's a factor of 10/3 in there somewhere with the part I used. The attached part has the dimensions 60 x 210 mm, but the resulting element is 200 x 700 px.

And when I look at the texts that come out of a previously used example (05DI-AD16DIX-10.dxf): There the font is not correct yet and the font height is not set either, so QET uses the default size 9 when opened.
This is how it looks now (formatted by hand!)

        <dynamic_text x="35.12" y="-11.14" z="0" rotation="0" 
            uuid="{51347e64-514a-47dc-8c7f-aa180de58afd}" 
            font="Arial Narrow" 
            Halignment="AlignHCenter" Valignment="AlignVCenter" 
            text_from="UserText" frame="false" text_width="-1" color="#000000">
            <text>\C7;\fArial|b0|i0|;\H0.030335398390889;All Connectors 
are Located 
Under Gullwing 
Covers</text>
        </dynamic_text>

When I look at the texts in the converted element, I think that this would be correct for the text, font and font height:

        <dynamic_text x="35.12" y="-11.14" z="0" rotation="0" 
            uuid="{51347e64-514a-47dc-8c7f-aa180de58afd}" 
            font="Arial,3" 
            Halignment="AlignHCenter" Valignment="AlignVCenter" 
            text_from="UserText" frame="false" text_width="-1" color="#000000">
            <text>All Connectors 
are Located 
Under Gullwing 
Covers</text>
        </dynamic_text>

The font-size of "3" in this example has of course to be set to the correct value: I chose a reasonable value here.

In QET-Settings for new projects you find ALL titleblock-templates from ALL collections to choose from.

In project- or folio-settings you only find templates that are available in the project:
Drag the newly created template from the tree to a folio to add it to the project. Then you can also choose from the dialog, which template to use.

If I understand your problem correct, you have to choose "New template (enter its name)" and then you can edit the filename.
see screenshots

I use latest QET dev-version with Debian/GNU Linux (unstable).

Salut Rigautou !

Welche Anleitung hast Du gelesen, aber nicht verstanden?
Was hast du bereits ausprobiert?
Frage bitte konkret nach, was du nicht verstanden hast!

via Online-Translator:

Quelles sont les instructions que tu as lues mais que tu n'as pas comprises ?
Qu'est-ce que tu as déjà essayé ?
Demande concrètement ce que tu n'as pas compris !

Ich verstehe das so, daß die Datei qet_labels.xml in Dein eigenes Element-Verzeichnis gehört.
Die Forumsuche nach dem Begriff "qet_labels" liefert auch diesen Eintrag:
https://qelectrotech.org/forum/viewtopi … 772#p19772

See this post https://qelectrotech.org/forum/viewtopi … 867#p19867 and entire thread.

Hallo Anatilight,

drei Verbesserungsvorschläge:

  • "blättere" vor dem Erstellen eines Posts durch die vorhanderen Themen: Meist findet man was Passendes zum Thema!

  • benutze die Forum-Suche – auch für die anderssprachigen: Mit "dashed" als Suchbegriff habe ich direkt das Passende gefunden und mit "gestrichelt" gibt es das sogar bebildert!

  • benutze aussagekräftige "Betreff-Zelen" für Deine Fragen: "Dumme Fragen" gibt's hier häufiger!

Nichts für ungut! nomicons/smile

269

(193 replies, posted in Import DXF)

Hello Vadoola!
Salut Laurent !

About the Texts / Fonts:

I don't know, where to find "official" information about fonts in QET, so I noted what I found out about fonts in sources of QET_ElementScaler:
https://github.com/plc-user/QET_Element … nts.h#L301
If no font size is defined in the font-tag it defaults to "9" in QET what often is too big!

So the question is:
Do texts in dxf include a size? I guess so.
So you should add that info to the font-tag in elmt-file, Vadoola.

Hello Sterly,

This is definitely an interesting feature to generate mechanical drawings from the QElectroTech files. This also includes, for example, drilling plans for control cabinet mounting plates.
A few things are still missing for this: The elements would have to provide the necessary information and perhaps this would even be 3D information? In any case, QElectroTech is designed for 2D drawings.

Interesting feature, but most likely not available in QET in the foreseeable future. Unless you know someone who can support the project in this respect!

271

(29 replies, posted in Import DXF)

Kellermorph wrote:

Here is the dwg.

i tried it with https://download.qelectrotech.org/qet/b … .0/win_64/

Nö!
Unter dem Link ist das (inzwischen veraltete) Konvertierungsprogramm zu finden.
Es geht um die dxf-Dateien, die Du konvertieren möchtest!

Du schreibst, dass Fehlermeldungen auftreten, oder eine leere Zeichnung aus der Konvertierung herauskommt, lieferst aber die dxf nicht mit, die uns helfen würden, dir helfen zu können!

272

(29 replies, posted in Import DXF)

Kellermorph wrote:

I tried to import it with my Work Computer (Windows) with dxf2elmt. But i only get an empty Page.

(Spätestens!) jetzt wäre der richtige Moment, Deine dxf-Dateien mal hier zu posten, um dem Kollegen Vadoola die Chance zu geben, dxf2elmt weiter verbessern zu können! Oder einfach nur zu sehen, woran es hapert...
Es sei denn, es gibt rechtliche Bedenken, die zu veröffentlichen...

273

(193 replies, posted in Import DXF)

Hello Vadoola,

start reading here:
https://github.com/plc-user/QET_Element … ts.cpp#L50
it's (almost?) the same as in QET

As input-parameter I use a rectangle that represents the min- and max-values of all graphical elements. This rectangle is a global variable "ElmtMinMax" and is determined during the processing of every part.

274

(29 replies, posted in Import DXF)

Kellermorph wrote:

Ich hatte doch nur gesagt, dass ich nicht wusste, dass dxf2elmt über den Element Editor gestartet wird und ich am versuchen war eine gui wie bei dxftoqet zu starten bekommen. Das hatte ich einfach zuerst geladen bevor ich dxf2elmt gesehen hatte.

Ich wiederhole mich hier ständig ...

dxf2elmt ist ein eigenständiges (!) Kommandozeilen-Programm, für das Dir freundliche Leute die Möglichkeit geschaffen haben, das über einen Menüeintrag in QElectroTech grafisch zu benutzen!

Du kannst es selbstverständlich genau so nutzen, wie Du in Deiner ersten Nachricht geschrieben hast:

Kellermorph wrote:

./dxf2elmt deos600.dxf

Bei korrekter Ausführung liegt dann neben der Ursprungs-DXF eine QET Element-Datei.

275

(29 replies, posted in Import DXF)

Hallo Vadoola,

die Diskussion über Interna von dxf2elmt sollten wir im anderen Thread fortführen, da es hier eher um die Anwendung davon geht:
https://qelectrotech.org/forum/viewtopi … 468#p20468