Select by Entity Type

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Select by Entity Type

jby601
I have a drawing with lots of text spread over it and I wish to change the font size of all of it without having to change each text entity individually.
Reply | Threaded
Open this post in threaded view
|

Re: Select by Entity Type

dxli
I remember there's a "Select by Layer"

jby601 wrote
I have a drawing with lots of text spread over it and I wish to change the font size of all of it without having to change each text entity individually.
Reply | Threaded
Open this post in threaded view
|

Re: Select by Entity Type

jby601
How do I access this "Select by Layer"?
Reply | Threaded
Open this post in threaded view
|

Re: Select by Entity Type

ravas
Select → (De-)Select layer

Then, in the drawing area, click on one object that is in the layer, and all others will be selected.
Reply | Threaded
Open this post in threaded view
|

Re: Select by Entity Type

jby601
OK, thank you @ravas, that's part of the problem solved. But my original problem remains. If I have multiple text entities, can I change the font size on all of them simultaneously?
Reply | Threaded
Open this post in threaded view
|

Re: Select by Entity Type

Rallaz
Hi jby601,

in short: NO

In large: YES.
Write a plugin based in sameprop to change the  font size (height) of texts and mtext is veri easy.

Well, attached
matchtext.zip

But are source code, you need to compile for your system.

And attached in binary for OpenSuse 13.1 & Qt 5.4.1
libmatchtext.zip

Cheers,
Rallaz
Reply | Threaded
Open this post in threaded view
|

Re: Select by Entity Type

jby601
Rallaz, thank you. I am a five year user of Linux, but have never had the courage to get into coding in the C languages (I grew up with Pascal), but your kind example has fired me with enthusiasm to improve the programs that I admire.
Reply | Threaded
Open this post in threaded view
|

Re: Select by Entity Type

Rallaz
Howto compile the attached plugin source code in linux:

Ubuntu:
1. Install devel tools & dependencies
sudo apt-get install g++ gcc make libqt4-dev qt4-qmake qt4-dev-tools
2. Install latest Librecad package
https://launchpad.net/~librecad-dev/+archive/ubuntu/librecad-daily/+packages
3. Development headers for LibreCAD plugins are not installed, download it from github
and save it in (p.e.) ~/devel/lc-devel
https://github.com/LibreCAD/LibreCAD/raw/master/librecad/src/plugins/document_interface.h
https://github.com/LibreCAD/LibreCAD/raw/master/librecad/src/plugins/qc_plugininterface.h
4. Dowload an unpack the plugin source code (p.e.) ~/devel/lc-devel/matchtext
5. Edit "matchtext.pro" and change line 18
INCLUDEPATH    += ../../librecad/src/plugins  => INCLUDEPATH    += ~/devel/lc-devel
delete line 15 include(../../common.pri) =>
6. cd to plugin source code directory
cd ~/devel/lc-devel/matchtext
7. build
qmake & make

If all are ok you have a file called libmatchtext.so in ~/devel/lc-devel/unix/resources/plugins/
8. move or copy the file to ~/.librecad/plugins/  (note the point, is mandatory)
9. start LibreCAD and work.

For OpenSuse and Fedora:
The diferences are:
1. development packages are libqt4-devel instead of libqt4-dev
2. install latest LibreCAD from http://download.opensuse.org/repositories/home:/Rallaz/
3. Install librecad-devel  from http://download.opensuse.org/repositories/home:/Rallaz/
5. Only delete line 15
6-9 all are equal

Note, in Fedora can be "qmake" or "qmake-qt4"

Cheers,
Rallaz