Archicad C++ API
About Archicad add-on development using the C++ API.

[SOLVED] New line in dimension note

ReignBough
Enthusiast
I found out that the note in dimension can now be a multi-line. But when I tried using "\n" it was shown as the replacement character "▯" but it is correctly displayed in the settings dialog. When I tried using paragraph marker, "¶", it is shown as it is.

EDIT: (2016 Feb 02)
What I did was:

for new line:
sprintf((*memo.dimElems).note.content, "<MeasuredValue>\n%d EQ PANELS", panelCnt);
for paragraph marker:
sprintf((*memo.dimElems).note.content, "<MeasuredValue>¶%d EQ PANELS", panelCnt);

zzz.png
~ReignBough~
ARCHICAD 26 INT (from AC18)
Windows 11 Pro, AMD Ryzen 7, 3.20GHz, 32.0GB RAM, 64-bit OS
6 REPLIES 6
Laszlo Nagy
Community Admin
Community Admin
I don't think that either one is correct.
You should not see any such character.
The text following such a character should simply be placed into a new line.

This might have something to do with your Archicad version and Windows version not working together well.
Try upgrading to the latest hotfix and see if this problem persists.
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac28
ReignBough
Enthusiast
Can anyone move this post on Developer forum, please? I post it on a wrong forum. Thanks.
~ReignBough~
ARCHICAD 26 INT (from AC18)
Windows 11 Pro, AMD Ryzen 7, 3.20GHz, 32.0GB RAM, 64-bit OS
Laszlo Nagy
Community Admin
Community Admin
I have moved it to the Developer Forum.
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac28
Ralph Wessel
Mentor
ReignBough wrote:
I found out that the note in dimension can now be a multi-line. But when I tried using "\n" it was shown as the replacement character "▯" but it is correctly displayed in the settings dialog. When I tried using paragraph marker, "¶", it is shown as it is.
How about creating a multi-line dimension manually (i.e. with ARCHICAD's tools) and then examining the resulting data through the API to see what delimiter it uses?
Ralph Wessel BArch
Software Engineer Speckle Systems
ReignBough
Enthusiast
Ralph wrote:
How about creating a multi-line dimension manually (i.e. with ARCHICAD's tools) and then examining the resulting data through the API to see what delimiter it uses?
Thanks. Found it. It is ASCII 13, or 0x0D, or '\r'.
~ReignBough~
ARCHICAD 26 INT (from AC18)
Windows 11 Pro, AMD Ryzen 7, 3.20GHz, 32.0GB RAM, 64-bit OS
Katalin Borszeki
Graphisoft
Graphisoft
Hi All,
as Laszlo Nagy pointed out before me, please download the latest update!
best, k
Katalin Borszeki
Implementation Specialist
GRAPHISOFT

http://helpcenter.graphisoft.com - the ArchiCAD knowledge base