Topic: Scale entire map of elements

Hey,
I was wondering if it's possible to scale an entire folder of elements at once.
I'm aware of the QET element-scaler from plc-user on github, but i'm not able to get this to work. (Guess i'm not smart enough nomicons/smile.
Any other easier options to handle this?
Thx in advance

Re: Scale entire map of elements

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

1 get binary https://github.com/plc-user/QET_Element … /0.4beta10
2 get zip tarball https://github.com/plc-user/QET_Element … master.zip
3 extract tarball
4 put binary in the extacted folder
5 edit scale.sh or scale.cmd dependy of your OS
6 run scale.sh/cmd in a terminal



Hint:
Get familiar with the command line before using this software. General support for using the command line for the various systems cannot be provided here.

usage:
QET_ElementScaler [options] <file>
(as used in Batch-File "scale.cmd" and shell-script "scale.sh")

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Scale entire map of elements

Maybe "we" should update the information on QET-Website:
QET_ElementScaler is available in version 0.5.0beta19 already...
https://github.com/plc-user/QET_ElementScaler/releases
What do you think, Laurent? nomicons/wink

Nicken83 wrote:

(...) but i'm not able to get this to work.

What exactly is the problem with calling of the program?
What lies where (program and elements) and what have you tried?

Fragen zu QET gehören in dieses Forum und werden nicht per PM beantwortet! – Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

Re: Scale entire map of elements

Salut Laurent !

plc-user wrote:

Maybe "we" should update the information on QET-Website:
QET_ElementScaler is available in version 0.5.0beta19 already...
https://github.com/plc-user/QET_ElementScaler/releases
What do you think, Laurent? nomicons/wink

Now, that QET_ElementScaler can be used from Element-Editor ...

The versions available from QET-Homepage seem to be very old, too.
We don't want to unnecessarily confuse users with old junk, do we?  nomicons/angel
Maybe you can upgrade the versions there too, Laurent? 
https://download.qelectrotech.org/qet/b … entScaler/

Thanks in advance!
  plc-user

Fragen zu QET gehören in dieses Forum und werden nicht per PM beantwortet! – Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

Re: Scale entire map of elements

Does it work for macOS ( intel or arm )?

QElectroTech V 0.100.0-dev - iMac macOS Monterey 12.6.3 - MacMini macOS Ventura

Re: Scale entire map of elements

Hallo plc-user,

done and rename w64/w32 exe name see why https://github.com/qelectrotech/qelectr … r.cpp#L122

nomicons/wink

Regards,
Laurent

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

7 (edited by plc-user 2024-08-20 17:33:18)

Re: Scale entire map of elements

Salut Laurent !

Thank you for the quick reaction!  nomicons/smile

I guess it should be enough to have a w64-version on QET-Website:
QET is only available for w64 so there is no need for w32, when it is called by QET.

The w32-Build is mainly meant for educational- and standalone-use.
... and for promotion of the great project "ReactOS" (no, I'm not involved there)

rvamerongen wrote:

Does it work for macOS ( intel or arm )?

I guess it should work.
But as always with free software:
No guarantee!  nomicons/wink

EDIT:

Can you compile and run QET_ElementScaler on your macOS-Systems from commandline?
Then it should also work in combination with QET.

Best regards
  plc-user

Fragen zu QET gehören in dieses Forum und werden nicht per PM beantwortet! – Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

Re: Scale entire map of elements

rvamerongen wrote:

Does it work for macOS ( intel or arm )?

Yes it tried it when I build intel OSX bundle and provide by the same the x86_64 osx binary, not time today to build osx arm64 builds.

On macOS the problem with the dialog box to open elmt to resize does not display hidden files like the .qet/ directory by default, Yes I know a workaround exists but I forgot...

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Scale entire map of elements

Done for osx arm64 QET build and QET_ElementScaler arm64 OSX binary, tried it run ok.

https://download.qelectrotech.org/qet/b … entScaler/

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Scale entire map of elements

Personally, here's how I do it with the little time I've spent on it:
I click on the element I want to convert, then I enter to the element editor, I press crtl + a and delete all parts, because at the moment the external plugin only opens an elm file, not the element in focus in the editor, otherwise we'll have two elements on top of each other.

Then I import an element to resize/flip mirror with file dialog, I look for where it is in the qet user folders and I choose my options. If I'm not happy, I just do an undo or click on the refresh icon. And re try it...

After off course you can use it on the terminal for batch lot see the QET_elementScaler readme file and use convert scripts and adapt these.

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Scale entire map of elements

Salut Laurent !

You can of course create a totally new element without needing to delete anything...
Just read the illustrated quick-guide I wrote: See attachment!

Post's attachments

Attachment icon quick-guide.zip 461.1 kb, 35 downloads since 2024-08-20 

Fragen zu QET gehören in dieses Forum und werden nicht per PM beantwortet! – Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

Re: Scale entire map of elements

Hallo plc-user,

thanks for quick-guide.

I prefer to do as explained above, it's much quicker, I think nomicons/wink

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Scale entire map of elements

FYI I compile QET_elementScaler under windows 10 VM based on C.Gilles DigiKam bundle VCPKG  https://invent.kde.org/graphics/digikam … type=heads
Work fine.
ps: I've tried other Windows compilations than the usual MXE cross-compilation, so here it's not static but in shared mode with *dll files.

https://download.qelectrotech.org/qet/b … Scaler.zip

~/win_share/QET_elementScaler$ tree
.
├── libgcc_s_seh-1.dll
├── libstdc++-6.dll
├── libwinpthread-1.dll
└── QET_ElementScaler.exe

1 directory, 4 files

https://www.virustotal.com/gui/file/9d1 … ?nocache=1



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

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Scale entire map of elements

scorpio810 wrote:

Done for osx arm64 QET build and QET_ElementScaler arm64 OSX binary, tried it run ok.

https://download.qelectrotech.org/qet/b … entScaler/

Thats fast, thank you.

Also for the video's, I will view them.
And thanks to you, PLC-User

QElectroTech V 0.100.0-dev - iMac macOS Monterey 12.6.3 - MacMini macOS Ventura