76

(12 replies, posted in Videos howto)

77

(96 replies, posted in Scripts)

Add a Scroll Back To Top Button.

#!/bin/bash
 
# to be able to process blanks in file names - remember original state:
OFS=$IFS
# set new:
IFS="
"

 
BaseDir="qelectrotech-elements"
 
for d in `find $BaseDir -type d | sort`; do
  echo "processing directory $d"
  # html-Header:
  echo '<!doctype html>
  <html>
<head>
<link href="/qet/to-top.css" rel='
stylesheet' type='text/css'>' > $d/index.html
  echo '<script type="text/javascript" src="https://code.jquery.com/jquery-3.3.1.min.js"></script>'  >> $d/index.html
  echo '<script src="/qet/to-top.js"></script>'  >> $d/index.html
  echo '<li><a href="../index.html">&larr;  Parent Directory </a></li><br><li><button class="spectrum-Button spectrum-Button--sizeM spectrum-Button--cta svelte-1gv5n3y cd17fc8d794774a44aa5bbe652ad93894-dom" onclick="history.back()">Back return</button></li>'  >> $d/index.html
  # Unterverzeichnisse auflisten:
  for sd in `find $d -maxdepth 1 -type d | sort`; do
    if [[ "$d" == "$sd" ]] ; then
      continue
    fi
    echo "sub-dir: $sd"
    echo "<a href=\"`basename $sd`/index.html\">`basename $sd`</a><br>" >> $d/index.html
  done
  # SVG-Dateien auflisten:
  for f in  `find $d -maxdepth 1 -name "*.svg" | sort` ; do
    echo "file: `basename $f`"
    svgdatei=`basename $f`
    elmtdatei="${svgdatei%.svg}.elmt"
    echo "<a href=\"$elmtdatei\" download>${svgdatei%.svg}<br> <img src=\"$svgdatei\" /></a><br><br>" >> $d/index.html
  done
  # html-Footer:
  #echo "<li><a href="../index.html">&larr;  Parent Directory </a></li><br><a href="#" class="btn btn-default">Back to top ↑</a>" >> $d/index.html
  echo '<div id="scrollUp">
<a href="#top"><img src="/qet/to_top.png"/></a>
</div></body></html>'
>> $d/index.html
  echo ""
done
 
# blanks in filenames - back to original:
IFS=$OFS
# DONE!

If you have a website that has large pages, it may be useful to display a button to return to the top of the page.
It is a good idea to place the button at the bottom right.
The goal is that it is displayed once 200 pixels of page go down.

78

(1 replies, posted in Documentation)

Bonjour,

/**
 * Inside this namespace you will fin all information used in QElectrotech for
 * element, conductor and diagram.
 * Each information have 3 values :
 * #1 the info key = the key of an information as a QString used in the code (example : label)
 * #2 the info key to variable = the key in form of a variable.
 * This is used by the user to replace a variable by the string of this variable (example : %{label})
 * #3 the info key translated to the current local (example label in dutch = Betriebsmittelkennzeichen)
 */
namespace QETInformation
{
    /** Default information related to element **/
    static QString ELMT_LABEL                        = "label";
    static QString ELMT_FORMULA                      = "formula";
    static QString ELMT_COMMENT                      = "comment";
    static QString ELMT_FUNCTION                     = "function";
    static QString ELMT_AUX1                         = "auxiliary1";
    static QString ELMT_AUX2                         = "auxiliary2";
    static QString ELMT_DESCRIPTION                  = "description";
    static QString ELMT_DESIGNATION                  = "designation";
    static QString ELMT_MANUFACTURER                 = "manufacturer";
    static QString ELMT_MANUFACTURER_REF             = "manufacturer_reference";
    static QString ELMT_MACHINE_MANUFACTURER_REF     = "machine_manufacturer_reference";
    static QString ELMT_SUPPLIER                     = "supplier";
    static QString ELMT_QUANTITY                     = "quantity";
    static QString ELMT_UNITY                        = "unity";
    static QString ELMT_PLANT                        = "plant";
    static QString ELMT_LOCATION                     = "location";

    /** Default information related to conductor **/
    static QString COND_FUNCTION             = "function";
    static QString COND_TENSION_PROTOCOL     = "tension_protocol";
    static QString COND_COLOR                = "conductor_color";
    static QString COND_SECTION              = "conductor_section";
    static QString COND_FORMULA              = "formula";
    static QString COND_TEXT                 = "text";

    /** Default information related to diagram **/
    static QString DIA_AUTHOR             = "author";
    static QString DIA_DATE               = "date";
    static QString DIA_DISPLAY_FOLIO      = "display_folio";
    static QString DIA_FILENAME           = "filename";
    static QString DIA_FOLIO              = "folio";
    static QString DIA_INDEX_REV          = "indexrev";
    static QString DIA_LOCMACH            = "locmach";
    static QString DIA_PLANT              = "plant";
    static QString DIA_POS                = "pos";
    static QString DIA_TITLE              = "title";
    static QString DIA_FOLIO_ID           = "folio-id";
    static QString DIA_PREVIOUS_FOLIO_NUM = "previous-folio-num";
    static QString DIA_NEXT_FOLIO_NUM     = "next-folio-num";

    /** Default information related to project **/
    static QString PROJECT_FOLIO_TOTAL     = "folio-total";
    static QString PROJECT_TITLE           = "projecttitle";
    static QString PROJECT_PATH            = "projectpath";
    static QString PROJECT_FILE_NAME       = "projectfilename";
    static QString PROJECT_SAVE_DATE       = "saveddate";
    static QString PROJECT_SAVE_DATE_EU    = "saveddate-eu";
    static QString PROJECT_SAVE_DATE_US    = "saveddate-us";
    static QString PROJECT_SAVE_TIME       = "savedtime";
    static QString PROJECT_SAVED_FILE_NAME = "savedfilename";
    static QString PROJECT_SAVED_FILE_PATH = "savedfilepath";


    /** Default information related to QElectroTech **/
    static QString QET_VERSION = "version";

https://github.com/qelectrotech/qelectr … mation.cpp
https://github.com/qelectrotech/qelectr … ormation.h

Hello,

maybe try to remove singlrApplication code;
https://github.com/qelectrotech/qelectr … 3766d74e00

FYI, terminal block generated by qet-tb-generator as these informations.
https://download.qelectrotech.org/qet/forum_img_2/terminalblock_informations.png

For the moment, it's not worth putting all the terminals in the nomenclature. A trick would be to create a visible or invisible label-style element to define the header of group of terminals, its location, etc.
Elements have Ort(+) noch Anlage (=) , terminals not, yet!

Beste Grüße
Laurent

In a future Ort(+) noch Anlage (=)  will added, see Joshua vidéo:

Hallo Fabian,

With sqlitebrowser open element_nomemeclature_view table and try to create a sql command  to fitlter by terminal label like "X01" by example and add loc and location values. When it's work, copy the sql request in nomenclature command in QET.

Example BOM howto;
https://qelectrotech.org/forum/viewtopi … 256#p16256

https://qelectrotech.org/forum/viewtopic.php?id=2657

https://qelectrotech.org/forum/viewtopic.php?id=2659
https://qelectrotech.org/forum/viewtopic.php?id=2658

84

(222 replies, posted in News)

This morning I updated my Windows 10 to last updates on my old laptop, after many reboots, I have idea to check last 0.100-devel QET version, wow !!!
Elements collection finished to be loaded in 1.23 seconds

You could confirm it?

Édition    Windows 10 Professionnel
Version    22H2
Installé le    10/03/2021
Build du système d’exploitation    19045.3930
Expérience    Windows Feature Experience Pack 1000.19053.1000.0
12:50:33.534 Info: "QElectroTech V 0.100.0-dev" 
12:50:33.535 Info: "Compilation : GCC 11.4.0" 
12:50:33.535 Info: "Built with Qt 5.15.11 - x86_64 - Date : Dec 21 2023 : 15:57:17" 
12:50:33.535 Info: "Run with Qt 5.15.11 using 8 thread(s)" 
12:50:33.536 Info: "CPU : NAME                                      \r\r\nINTEL(R) CORE(TM) I7-8550U CPU @ 1.80GHZ  \r\r\n\r\r\n" 
12:50:33.536 Info: "RAM Total : 16 GB" 
12:50:33.536 Info: "RAM Available : 11 GB" 
12:50:33.537 Info: "GPU : VideoProcessor                \r\r\nIntel(R) UHD Graphics Family  \r\r\n\r\r\n" 
12:50:33.537 Info: "GPU RAM : RAM Total : AdapterRAM  \r\r\n1073741824  \r\r\n\r\r\n B" 
12:50:33.538 Info: "OS : winnt  - x86_64 - Version : Windows 10 Version 2009 - Kernel : 10.0.19045" 
12:50:33.538 Info: *** Qt screens *** 
12:50:33.538 Info: "( 1 : 3840 x 2160 )" 
12:50:33.539 Info: DISK : C:/   
12:50:33.540 Info: FileSystemType: "NTFS" 
12:50:33.540 Info: SizeTotal: 66 GB 
12:50:33.541 Info: AvailableSize: 9 GB 
12:50:33.542 Info: DISK : D:/   
12:50:33.542 Info: FileSystemType: "NTFS" 
12:50:33.543 Info: SizeTotal: 20 GB 
12:50:33.543 Info: AvailableSize: 0 GB 
12:50:33.545 Info: DISK USED: C:/   
12:50:33.545 Info: FileSystemType: "NTFS" 
12:50:33.546 Info: SizeTotal: 66 GB 
12:50:33.547 Info: AvailableSize: 9 GB 
12:50:34.706 Info: Elements collection finished to be loaded in 1.23 seconds 

85

(7 replies, posted in Videos howto)

Siemens Logo is in QET collection -> https://download.qelectrotech.org/qet/e … index.html
https://download.qelectrotech.org/qet/elements/10_electric/20_manufacturers_articles/siemens/01_PLC_controllers/logo/siemenslogo230rce.svg

Hi,
see https://qelectrotech.org/forum/viewtopic.php?id=1946

Hello Flix,

thanks for compliments. nomicons/wink

Yes on https://download.qelectrotech.org/qet/schemas_pdf/ You see many schemes drawn by many authors and a little by me with QET software.

Best regards,
Laurent

A BOM page must not contain any schemes..
https://qelectrotech.org/forum/viewtopi … 256#p16256

90

(96 replies, posted in Scripts)

Just for record:

#!/bin/bash
 
# to be able to process blanks in file names - remember original state:
OFS=$IFS
# set new:
IFS="
"

 
BaseDir="qelectrotech-elements"
 
for d in `find $BaseDir -type d | sort`; do
  echo "processing directory $d"
  # html-Header:
  echo "<html><body>" > $d/index.html
  echo '<li><a href="../index.html">&larr;  Parent Directory </a></li><br><li><button class="spectrum-Button spectrum-Button--sizeM spectrum-Button--cta svelte-1gv5n3y cd17fc8d794774a44aa5bbe652ad93894-dom" onclick="history.back()">Back return</button></li>'  >> $d/index.html
  # Unterverzeichnisse auflisten:
  for sd in `find $d -maxdepth 1 -type d | sort`; do
    if [[ "$d" == "$sd" ]] ; then
      continue
    fi
    echo "sub-dir: $sd"
    echo "<a href=\"`basename $sd`/index.html\">`basename $sd`</a><br>" >> $d/index.html
  done
  # SVG-Dateien auflisten:
  for f in  `find $d -maxdepth 1 -name "*.svg" | sort` ; do
    echo "file: `basename $f`"
    svgdatei=`basename $f`
    elmtdatei="${svgdatei%.svg}.elmt"
    echo "<a href=\"$elmtdatei\" download>${svgdatei%.svg}<br> <img src=\"$svgdatei\" /></a><br><br>" >> $d/index.html
  done
  # html-Footer:
  echo "<li><a href="../index.html">&larr;  Parent Directory </a></li><br><a href="#" class="btn btn-default">Back to top ↑</a>" >> $d/index.html
  echo "</body></html>" >> $d/index.html
  echo ""
done
 
# blanks in filenames - back to original:
IFS=$OFS
# DONE!

91

(56 replies, posted in Import)

Smurfeous wrote:

I have tried installing the windows executable. I unzip the file, run the program, click "install anyway" to the windows security message. When I try importing a DXF into the Element Editor it still says "Third party software required". The installation folder is empty.


QElectroTech V 0.90+c7891bc4cb0a58100c957a06d79751d3

https://qelectrotech.org/forum/viewtopi … 112#p17112

achim wrote:

Hi Joel

C:\Users\"user"\Application Data\qet\binary
I think you have to create the folder by yourself

Achim

Voir peut-etre ici: https://qelectrotech.org/forum/viewtopi … 256#p16256

https://qelectrotech.org/forum/viewtopi … 344#p19344

Bonjour,

non! on ne peux pas inverser les lignes( lettres)/colonnes(chiffres) des folios, c'est codé en dur dans le code, ça ne gène en rien un électricien qui sait lire un schéma:

https://forum-photovoltaique.fr/viewtop … e7dfa9c383
https://forum.gce-electronics.com/t/qel … px/3962/85

Control + mouse permet un déplacement fin
de même
ALT + moving keys permet aussi un déplacement aussi fin, voir plus. Suivant le réglage de la grille dans la page contrôle.

Bonjour,

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

Hello Tiz,
change element in collection police size, you need to change for these elements akso the UUID/
Put these element in other directory:
see my script bash linux
https://download.qelectrotech.org/qet/s … en_uuid.sh

After you re drad and dropt thise eleement un menu appair chose owervrite all elements placed by the news.

Other workatound it 's to edit XML .qet file.Please backup your projects before try.

97

(36 replies, posted in Bar Fourre-tout)

Ou dans la collection-contrib
https://github.com/qelectrotech/qelectr … nt-contrib


https://download.qelectrotech.org/qet/e … index.html

Cordialement,
Laurent

98

(36 replies, posted in Bar Fourre-tout)

Bonjour dans la collection officielle:
https://download.qelectrotech.org/qet/e … index.html

99

(56 replies, posted in Import)

Hello Hamish,

thank you for your support.

I think your MAC is an Intel processor so x86_64, now Apple is releasing an Apple silicon chip "M1, M2, M3" it's like your smartphone an ARM64 chip so the code compiled on X86_64 doesn't work directly but emulated with roseta 2 the code can work more slowly with sometimes bugs, on the other hand the code compiled on arm64 environment can't work on an intel processor...


So use https://download.qelectrotech.org/qet/b … .0/osx_64/ on Intel Mac.

Best regards
Laurent

100

(128 replies, posted in Bar Fourre-tout)

Nice tip, thanks.