Inserting a line feed in a block attribute

Use this forum to ask questions about how to do things in QCAD.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
luggw1
Active Member
Posts: 31
Joined: Sat Oct 13, 2012 10:32 pm

Inserting a line feed in a block attribute

Post by luggw1 » Mon Sep 11, 2023 3:32 am

I'm using one of the ANSI drawing formats provided by one of the other folks on this forum (whose name I can't remember at the moment). It includes block attributes to assist in filling out the title block. Is there a way to insert a line feed (carriage return) in a block attribute so you can get more than one line in the Title, for example?

I'm using QCAD v3.28.1 Pro on Linux Mint.

Thanks
Bill Lugg

CVH
Premier Member
Posts: 4958
Joined: Wed Sep 27, 2017 4:17 pm

Re: Inserting a line feed in a block attribute

Post by CVH » Mon Sep 11, 2023 6:27 am

Hi,

It seems that QCAD only supports simple text as block attributes per GUI.
There is no simple property and "\P" is not handled as newline.
block attributes have a (column) width property but that is not functional as simple text.

The simple property can be set/cleared with scripting.
When cleared one can use an attribute text on several lines with "\P" as newline or a column width.
Then the simple property is still not listed in the Property Editor for a block attribute.
Also remark that there is no Text Editor widget displayed for block attributes.

The file is not saved and reloaded with formatted attribute text thus a tweaking script is no solution.
Perhaps a feature request is in order here because multi-line attributes are supported by other applications.

One can select only the attribute (See App.Prefs. ... Graphics View ... Behaviour) and explode (XP) it to a text entity.

Regards,
CVH

User avatar
Husky
Moderator/Drawing Help/Testing
Posts: 5054
Joined: Wed May 11, 2011 9:25 am
Location: USA

Re: Inserting a line feed in a block attribute

Post by Husky » Tue Sep 12, 2023 3:28 am

luggw1 wrote:
Mon Sep 11, 2023 3:32 am
Is there a way to insert a line feed (carriage return) in a block attribute so you can get more than one line in the Title, for example?
Yes and no. My workaround is to use 1 or 2 additional block attributes what builts then an e.g 2 or 3 line Title.
Work smart, not hard: QCad Pro
QcadPro, QcadCam, Win11/64, 64GB RAM, 10-Core, SSD
If a thread is considered as "solved" pls. change the title of the 1. post to "[solved] Title..."

Post Reply

Return to “QCAD 'How Do I' Questions”