Hi,
see

https://qelectrotech.org/forum/viewtopi … 905#p15905
https://qelectrotech.org/forum/viewtopi … 906#p15906

1,852

(30 replies, posted in Elements)

@Joshua:

+/**
+ * @brief Element::linkTypeToString
+ * \deprecated use instead ElementData::typeToString
+ * \todo remove this function
+ * @return

Maybe this issue will be caused by

m_insert_elements_query.bindValue(":type", elmt->linkTypeToString());

If I comment is work ... and db see correct element_type... thumbnail instead simple ..

https://download.qelectrotech.org/qet/forum_img_2/BOM4_bug.png
https://download.qelectrotech.org/qet/forum_img_2/BOM5_bug.png

1,853

(30 replies, posted in Elements)

Joshua wrote:

Add the new element type : thumbnail
This type must be used for element who goal is to display a
thumbnail/front view of an element, notably used for cabinet contents
view and placement.
https://git.tuxfamily.org/qet/qet.git/c … f4ed73a9ed

I added the type "thumbnail" (vignette in french) you can use it now.
Presently we can do nothing more with thumbnail type than simple type, but the element is marked as thumbnail and ready for future.

@Joshua:
I tried to add thumbnail checkbox for exclude these items in BOM with no result, I saw with database export these items type is always Simple..
We need to create Element::Thumbnail
To be continued..

https://download.qelectrotech.org/qet/forum_img_2/BOM1.png
https://download.qelectrotech.org/qet/forum_img_2/BOM2.png
https://download.qelectrotech.org/qet/forum_img_2/BOM3.png

1,854

(30 replies, posted in Elements)

https://git.tuxfamily.org/qet/qet.git/c … f2196cdbc6

1,855

(3 replies, posted in EN : Help, suggestions, discussions, ...)

Hi,

btw use "%id" instead  "%id/%total" in your titleblock's pages, otherwise you will see Xref like this "(folio_label/total_ off_folios)-(line number)- (column_number) etc.

So, is easy with ctrl +f in and then folio section to change "%id/%total" by "%id" in all project's.

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

Je ne reproduit pas ton bug.

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

1,857

(3 replies, posted in EN : Help, suggestions, discussions, ...)

Hi Jeffrey,
like this?



Regards,
Laurent

1,858

(30 replies, posted in Elements)

This will take a lot of time.... Also I need to add a new element type "thumbnail".

I was also thinking about  thumbnails because I don't want them to appear in the BOM pages ... like terminal I want to uncheck them.

I hadn't really tested this little utility yet, but recently I had to get back to drawing at work for a new electrical project ...
and this great tool has made it much easier to work with thumbnails not always at the right scale factor.

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

Very easy to use:
example

laurent@debian:~/.qet$ ./QET_ElementScaler elements/nx300320190520.elmt 10
laurent@debian:~/.qet$ ./QET_ElementScaler elements/nx300320190520.elmt 0.5
laurent@debian:~/.qet$ ./QET_ElementScaler elements/nx300320190520.elmt 5


laurent@debian:~/.qet/elements$ ls -al | grep nx
-rw-r--r-- 1 laurent laurent   691553  1 juin   2021 nx300320190520.elmt
-rw-r--r-- 1 laurent laurent   673021  9 mai   21:21 nx300320190520.SCALED.elmt

Just reload collection by right click, drag and drop new scaled.elmt.

Great tool, thanks plc-user.

BTW, I added description and link to plc-user Github for download this nice tool on QET download main page.

1,860

(3 replies, posted in EN : Help, suggestions, discussions, ...)

Hi Gravino,

in project setting or in general config enable use folio number/label instead of their position ...

https://download.qelectrotech.org/qet/m … oject.html

Use %F instead %f in formula for crossreference, reports, etc.
https://download.qelectrotech.org/qet/m … tings.html
https://download.qelectrotech.org/qet/m … tings.html


Best regards,
Laurent

1,861

(224 replies, posted in News)

For Debian unstable and Ubuntu 22.04 users who use my PPA or Debian repositories apt-key is deprecated.
apt-key deprecation warning when updating system; see:
https://syslog.me/2022/01/10/apt-key-is … -now-what/


“Deprecated” usually means that a certain functionality will be eventually removed from the system. In this case, Ubuntu users will be hit already in 2022 with the release of 22.10 in October as the command will be available last in the next LTS (22.04) to be released in April. Debian users will have more time, as the command won’t available in the next major release of Debian (supposedly Debian 12, that may be a couple of years away). This is written in clear letters in the man page:


Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details

sudo apt-key export 1D4FB6C1 | sudo gpg --dearmour -o /usr/share/keyrings/qelectrotech.gpg
echo "deb [signed-by=/usr/share/keyrings/qelectrotech.gpg] http://debian.qelectrotech.org/qet/debian/ unstable main" | sudo tee /etc/apt/sources.list.d/qelectrotech.list

Now remove in /etc/apt/sources.list :

deb http://debian.qelectrotech.org/qet/debian/ unstable main

And old key:

sudo apt-key del 1D4FB6C1

https://qelectrotech.org/wiki_new/doc/i … or_details

1,862

(224 replies, posted in News)

Prenons l'exemple X:125, il est question de la borne 125 du bornier X, maintenant il faudra juste nommer la borne 125, car le reste étant le nom du bornier auquel la borne est rattachée.

Sur le schéma l'identifiant du bornier lié à la borne doit être impérativement affiché.

Bien que le but final d’un gestionnaire de bornier soit l’affichage de ceux-ci sur les folios, la partie la plus importante (et de loin) est celle que je viens de décrire. Le plan de borne sur le folio n’est lui qu’un « simple » dessin, c’est pourquoi vos retours seront très importants.

Ce serait bien qu'il soit dynamique comme les tableaux et pas qu'un simple dessin .... le plan de bornier.

L'inconvénient avec le plug-in qet_tb_generator c'est que si tu déplaces, ajoutes, supprimes des folios ou modifies les noms des conducteurs, tu dois le régénérer supprimer l'ancien et reposer le nouveau plan de bornier.

Hello Fabio,

I think no!  Eplan P8 is closed source program, we can't saw their format to export .qet to us..
Maybe you can export all diagrams to DXF and import them in your Eplan P8 project...

Report of folio definition:

type="embed://import/10_electric/10_allpole/100_folio_referencing/01coming_arrow.elmt
or
type="embed://import/10_electric/10_allpole/100_folio_referencing/02going_arrow.elmt



<elements>
            <element x="170" z="10" uuid="{c9cd8b6a-ff35-4758-9573-e4df02f44ca7}" type="embed://import/10_electric/10_allpole/100_folio_referencing/01coming_arrow.elmt" orientation="0" freezeLabel="false" prefix="" y="110">
                <terminals>
                    <terminal x="9" id="0" orientation="1" y="0"/>
                </terminals>
                <inputs/>
                <dynamic_texts>
                    <dynamic_elmt_text x="-44" Halignment="AlignLeft" text_width="-1" font="Sans Serif,9,-1,5,50,0,0,0,0,0" uuid="{d054d7c1-8c1e-4871-aeef-72783166d3ef}" rotation="0" frame="false" keep_visual_rotation="true" text_from="ElementInfo" Valignment="AlignTop" y="-11.5">
                        <text></text>
                        <info_name>label</info_name>
                    </dynamic_elmt_text>
                </dynamic_texts>
                <texts_groups/>
            </element>

Is easy to change font size, like "Sans Serif,9,-1,5,50,0,0,0,0,0 to "Sans Serif,19,-1,5,50,0,0,0,0,0

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

Now report folio text is size 19.
https://download.qelectrotech.org/qet/forum_img_2/kate_conductor_report_size2.png

https://qelectrotech.org/forum/viewtopi … 7261#p7261
http://qxmledit.org/
https://qxmledit.org/tutorials.html

Also I want to change the label textsize of all Conductors!

https://download.qelectrotech.org/qet/forum_img_2/kate_conductor_num_size.png
Nox change text for conductos for 11px than 7 px..
https://download.qelectrotech.org/qet/forum_img_2/kate_conductor_num_size2.png

1,867

(224 replies, posted in News)

J'ai installé la version QET 0.9-dev (version installer) la semaine dernière sur la nouvelle workstation (DELL Precision I7 ) d'un collègue en Win 11 pro au boulot, ça fonctionne très bien.
https://www.dell.com/fr-fr/shop/station … 60mtwer_vp
Si tu as pris la ReadyToUse il faut cliquer sur le fichier "Lancer QET.bat " pour lancer QET.

1,868

(224 replies, posted in News)

Le filtre pour la position n 'est pas bonne en fonction du Label, il manque aussi de récupérer le numéro de fil lié à la borne..automatiquement.

https://download.qelectrotech.org/qet/forum_img_2/bornier_dev.png
https://download.qelectrotech.org/qet/f … er_dev.png

Le double click dans le champ de la xref d'une borne est une bonne idée, car il vient pointer la vue sur le schéma précisément sur cette borne.

Le calcul est très long même sur une grosse machine, une progressBar indiquerait l'avancement du calcul pour l'utilisateur.

Hi,

open your project.qet file with a good text editor and change font size for selected texts, like kate on Linux.

Salut Robert,

en principe non, mais ici sur ma Debian j'y arrive, je lance QET sur mon premier écran puis je lance une AppImage pour avoir une autre instance de QET sur l'autre écran.

J'avais au départ pensé que passer sur des fenêtres pour les projets au lieu des onglets réglerait le problème, en fait non!
Si tu est sur Windows, tu peux essayer avec la version installer et ensuite en lançant la version ReadytoUse

Deux 27 P screens one is an UHD other is  QHD

Screen capture on my setup with 2 scrrens:
*** Qt screens ***
( 1 : 3840 x 2160 )
( 2 : 1920 x 1080 )
https://download.qelectrotech.org/qet/forum_img_2/2_instance_in_same%20time_workaround.png

Morganol wrote:

Sorry for late reply.
No, my simple idea is not to export it using another program, and maybe not making changes in QET either.

The simple idea is that by making QET printing links so they visually looks like links, then i guess it is relatively simple to create a small separate program that parse the pdf and rewrites the links so they actually work like links.

Example: if i in xref and folio referencing settings fields put %F@%f%l%c,
then i will for folio "Pump", page 2, coordinate C7 get:  Pump@2C7

If i enter such formatting in my example drawing from my post https://qelectrotech.org/forum/viewtopi … 5577#p5577 , it looks like the following screen-shot, and it also displays like that when opening the exported pdf.

Now if we had a small program that can process that pdf and make the links coma alive it would be great.  the only thin i want it to do is find the number between the @ and a following alphabetical character and make a link of that to the page of that number.

OK the above is simplified, to make it work reliably we probably need a more reliable trigger than a one character "@"....

But we do not want a long trigger string to be shown at link in normal shema in QET nor printing to printer from QET.Having no idea how QET works, i can just say maybe it can temporarily automatically append "LINKME@" plus page number to every xref and folio ref formula just when printing to pdf.

The external program then scans for "LINKME@" and read the page number after it to create the link target, and remove "LINKME@" and the number from the visual part.

That will be compatible with any form of ref formula the user have chosen.
Except, user can nowhere write "LINKME@" but that is very little chance...

Maybe the external program, could even be an integrated part of QET, run automatically directly after initial file is exported, or even streamed so the first version of pdf never is externally written out.




Add Internal link with QET advanced text editor like <a href="#page=10"> work weel but you need only to open this PDF document with Google Chrome,
example with invisible text for link #page=10 on page 100 to go to page 10

<html><head/><body><p><a href="#page=10"><span style=" font-family:'Sans Serif'; font-size:9pt; text-decoration: underline; color:transparent;">10</span></a></p></body></html>

A possible hack is to use python library to open an PDF file generated by QET ..  https://pythonguides.com/pdffilewriter-python-examples/

https://stackoverflow.com/questions/633 … ink-to-pdf

https://stackoverflow.com/questions/287 … nks-in-pdf

Link annotations in PDF documents are associated with a geometric region of a page rather than a particular object in a content stream. For this reason, link annotations alone are not useful for users with visual impairments, or to applications that must determine which content can be activated to invoke a hypertext link.

Tagged PDF /Link elements use PDF's logical structure to establish the association between content items and link annotations, providing functionality comparable to HTML hypertext links.

In HTML, the following example produces text containing a hypertext link:

Here is some text <a href="https://www.w3.org/WAI/"> with a link </a> inside.
In PDF the page must be painted first and then a link annotation placed over the area where the object action will occur.

The following code fragment shows PDF equivalent to the HTML above; it uses link text displayed in blue and underlined. A second code fragment follows, indicating the associated logical structure hierarchy. This is typically accomplished by an authoring tool.

 /P <</MCID 0>>                                                %Marked Content Sequence 0 (paragraph)
  BDC                                                          %Begin marked content sequence
   BT                                                          %Begin text object
    /F1 11.04 Tf                                               %set text font and size
    1 0 0 1 72.024 709.54 Tm                                   %set text matrix
    0 g                                                        %set non stroking color to black
    0 G                                                        %set stroke color to black
   [(H)3(ere )-4(is s)10(o)5(m)-4(e)9( t)-3(e)9(xt)-3( )] TJ   %Show text preceding the link" Here is some text"
   ET                                                          %end text object
  EMC                                                          %end marked content sequence
 
 /Span <</MCID 1>>                                             %Marked Content Sequence 1 (underlined link text)
  BDC                                                          %Begin marked content sequence
   BT                                                          %Begin text object
    1 0 0 1 152.42 709.54 Tm                                   %set text matrix
    0 0 1 rg                                                   %set non-stroking color to blue
    0 0 1 RG                                                   %set stroke color to blue
    [(with a )-2(li)3(n)14(k)] TJ                              %Show link text " with a link"
   ET                                                          %end text object
    0 0 1 rg                                                   %set stroke color to blue
    152.42 707.62 45.984 0.72 re                               %rectangle operator - target area for the link
    f*                                                         %fill the path using the even-odd rule
  EMC                                                          %end marked content sequence
 
 /P <</MCID 2>>                                                %Marked Content Sequence 2 (paragraph)
  BDC                                                          %Begin marked content sequence
   BT                                                          %begin text object
    1 0 0 1 198.41 709.54 Tm                                   %set text matrix                                            
    0 g                                                        %set non stroking color to black
    0 G                                                        %set stroke color to black
    [( )] TJ                                                   %empty text string showing white space
   ET                                                          %end text object
   BT                                                          %begin text object
    1 0 0 1 200.93 709.54 Tm                                   %set text matrix
    [(in)5(sid)5(e.)] TJ                                       %show text following the link "inside."
   ET                                                          %end text
   BT                                                          %begin text object
    1 0 0 1 229.97 709.54 Tm                                   %set text matrix
    [( )] TJ                                                   %empty text string showing white space
   ET                                                          %end text object
  EMC                                                          %end marked content sequence 
  
The following code fragment is an excerpt from the logical structure that establishes the association between the content items and the link annotation:

 11 0 obj                                              %Object ID 11, generation   0, obj keyword
  <</K[1                                               %immediate child of the structure tree root
   <<
    /Obj 26 0 R                                        %reference to Object 26
    /Type/OBJR                                         %this object describes an indirect object reference
   >>]
    /P 12 0 R
    /Pg 17 0 R
    /S/Link
  >>
 endobj
 
 26 0 obj                                              %object ID 26 which is referenced by the OBJR in Object 11
  <</A 31 0 R
   /BS
   <</S/S
     /Type/Border
     /W 0
   >>
   /Border[0 0 0]                                      %a colorless border
   /H/I
   /Rect[150.128 694.558 200.551 720.0]                %the boundaries defining target area where link annotation is active
   /StructParent 1
   /Type/Annot                                         %Structure element is an annotation
   /Subtype/Link
  >>                                                   %It is a link annotation                                                 
 endobj     
 31 0 obj                                              %Object 31, gen 0, obj
  <</S/URI                                             %Object type is URI action
    /URI(https://www.w3.org/WAI)                        %The Uniform resource identifier to resolve
  >>   
 endobj

Hi vilatech,

for now you can't.

But I think now a workaround is possible : qet_en.qm is translation binary English for UI.

Copy this file and rename it by example to country you want like qet_nl.qm and of course delete old file or backup it to other directory.
Launch QET and select now Nederlands flags, restart QET.


https://qelectrotech.org/wiki_new/doc/d … mande_tree

Hi,
maybe you could help to translate, is easy, see:
https://qelectrotech.org/wiki_new/doc/translation

https://doc.qt.io/qt-5/linguist-translators.html

Because word chain's to translate are in French in the code you need:
https://doc.qt.io/qt-5/linguist-transla … ltaneously

Thanks for your feedback.

1,875

(224 replies, posted in News)

I'm thinking of buying a certificate to sign Windows and maybe for macOS packages.?... and using osslsigncode to sign Windows packages, what do you think?
It would cost about ~ 130€ with shipping for the first year for certicate and an USB key encrypted, then 25€/year to renew the certificate.
We can afford to pay for it now thanks to your Paypal donations, but before I go ahead I'd like your opinion, for those who have tested it?
As you know, under Windows and macOS the installation of QET is painful with workarounds for mac and warning messages from Windows during installation.

https://shop.certum.eu/open-source-code-signing.html
https://github.com/mtrojnar/osslsigncode
https://www.msz.it/a-cheap-code-signing … lkthrough/

EDIT:


Open Source Code Signing Certificate

We issue Open Source Code Signing certificates only to natural persons.

We would like to inform you that since March 13, 2017, the option of telephone verification for Open Source Code Signing certificates is not available.
Verification based on documents

Copies of the following documents must be provided to Certum for verification purposes:

confirmation of identity at the Registration Point or at the Identity Confirmation Point (details: https://certum.store/certum-reseller-points-map, sample statement can be downloaded here (link: https://files.certum.eu/documents/repsi … ntity.pdf) or
notarized proof of identity or for quicker issuance
a copy of the identity document of the person requesting the certificate (identity card, passport, driver’s license, permanent residence card).
ATTENTION! The copy should be a complete reproduction of the document (i.e. include all of its pages).

The identity can also be confirmed on the basis of a valid qualified certificate issued for the Subscriber by Certum.
and

a utilities (gas, electricity, water, telephone, etc.) bill issued to the subscriber,
the website address of the ongoing Open Source project.
The project must be publicly available and indicate clearly the subscriber’s relationship with the project. If Certum is unable to identify the project based on publicly available information, the certification application will be rejected.
All collected documents should be sent to Certum using one of the following methods:

by e-mail as a password-protected file to the address: ccp@certum.pl (recommended form),
please contact the Certum technical support helpline in order to determine how to transfer the password
by fax to: +48 91 4257 422
by post to:
Asseco Data Systems S.A.
ul. Bajeczna 13
71-838 Szczecin
NOTE
1. Open Source Code Signing certificates cannot contain domain names and IP addresses.
2. The person requesting the certificate must also be the certificate subscriber.
3. We issue Open Source Code Signing certificates only to natural persons.
4. When a certificate is issued, the phrase “Open Source Developer” is automatically added in the “CN” (Common Name) field, while the Organization field only contains “Open Source Developer”.

NOTE!
Validity of the documents being the basis for verification of certification applications:

For new certificate requests and for renewed certificates, documents and information from public registers cannot be older than 13 months,
Authorization documents, whether they are timely or not – remain valid for 13 months from the date of issue,
Identity documents must be up-to-date (valid) on the day the certificate is issued.

Identity documents delivered to Certum should be e-mailed in the form of a password-protected file, please contact the Certum technical support helpline in order to determine how to transfer the password

https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSIXQVMNPoSboN9TqhLEKjQSAgjXyIARmXe4nCQ4FFBPAyNu2I1MR0pfo38aCSF0aHeHuo&amp;usqp=CAU
Well, WTF ...... !  nomicons/wassat