Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

!Restored: gdl text justificattion

Anonymous
Not applicable
I've searched everywhere to find a way to "justify right" the bold text in this simple script but to no avail. The help files say that I need to use a mask in the script. I understand what it's telling me but can't get the script right!! Any help??? Thanks Doug


Edit...My original post said that I was trying to justify left which is was this script does, my bad. I want it to justify right.


lw=7 5/16"
nb=a
dis=12"
dis2=2"
if nd='R' then dis = 23"
if nd='L' then dis2=13"
if lgtp ='4x8'and nd='L' then dis2=9"
if lgtp ='4x8'and nd='R' then dis=19"
DEFINE STYLE "mytext2" "ariel", 1.5, 1, 0


if st=0 then 10:

set style "mytext2"
TEXT2 (a-dis), lw-1", STR ("%0.16ffi",nb)

10:

set style "mytext2"
TEXT2 dis2, lw-1", row

!set style "mytext2"
!TEXT2 (A/2)-5",lw-1", cc

rect2 0,0,a,lw

hotspot2 0,0
hotspot2 0,lw
hotspot2 a,LW
hotspot2 a,0
hotspot2 a,lw/2
hotspot2 0,lw/2
hotspot2 lw/2,5"
hotspot2 lw/2,3"
hotspot2 lw/2,4"

set fill 16
poly2_b 5, 2, 100, 91,
0,0,1,
A,0,1,
A,lw,1,
0,lw,1,
0,0,1
6 REPLIES 6
TomWaltz
Participant
It's in the DEFINE STYLE line. Without my manual handy, I can't say just which value it is though. If you have the GDL Manual (it's in your Archicad installation folder), you can probably look up the syntax.
Tom Waltz
Anonymous
Not applicable
Thanks Tom, I actually found it a few hours ago but had to go out for a while. It is Define Style....DEFINE STYLE "mytext2" "ariel", 1.5, 3, 0. The third entry is the anchor point of the text. I found the list of numbers and their corresponding anchor points(3 being justify right). It was a frustrating trial and error but I learned a couple other things in the process!! Thanks again Doug
Karl Ottenstein
Moderator
Also...might want to spell Arial correctly if that is the font you want. 😉

Karl
One of the forum moderators
AC 28 USA and earlier   •   macOS Sequoia 15.2, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
Anonymous
Not applicable
Thaks Karl!! I didn't even notice that.
Anonymous
Not applicable
Karl wrote:
Also...might want to spell Arial correctly if that is the font you want. 😉

Karl
Perhaps he wants the mermaid.
Anonymous
Not applicable
She's cute but I'm allergic to fish scales!!