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

Feisty Text

Anonymous
Not applicable
I'm making a GDL that will always be the same size when measured in ArchiCAD, but I can't get a piece of text to stay the same size. No matter what I do, the letter insists on changing size when I switch to different scales. The following are the two techniques I have tried:
DEFINE STYLE "AC_STYLE_1" "Arial Narrow", 8 * 25.4 * GLOB_SCALE, 5, 0
SET STYLE "AC_STYLE_1"
TEXT2 0, 0, LampLetter
DEFINE STYLE "AC_STYLE_1" "Arial Narrow", 8 * 25.4, 5, 0
SET STYLE "AC_STYLE_1"
TEXT2 0, 0, LampLetter
I thought the version with GLOB_SCALE in it would surely work, but I get the same behavior out of each. Does it matter that I don't have a MUL2 statement in any script?
6 REPLIES 6
Anonymous
Not applicable
Probably, it is necessary to write it so.
for metric measure:
DEFINE STYLE "AC_STYLE_1" "Arial Narrow", 8 / GLOB_SCALE, 5, 0
and for imperial:
DEFINE STYLE "AC_STYLE_1" "Arial Narrow", 8 * 25.4/72 / GLOB_SCALE, 5, 0
Anonymous
Not applicable
Thank you Valerie! That is exactly what I needed.

Вы Valerie! То точно я.

Также, не потревожьтесь о дороге, котор вы говорите или пишете английскую язык -- множество американцов не умеет как правильн поговорить английскую язык!

(I used a translator too)
Anonymous
Not applicable
I have hurried. I want to be corrected.

for metric measure:
DEFINE STYLE "AC_STYLE_1" " Arial Narrow ", 1/GLOB_SCALE*1000, 5, 0
It means that the height of a font will be 1 meter.

for imperial:
DEFINE STYLE "AC_STYLE_1" " Arial Narrow ", 1 * 25.4/GLOB_SCALE, 5, 0
It means that the height of a font will be 1 inch.
FontSize.gif
Anonymous
Not applicable
Now in the other scale.
Anonymous
Not applicable
Valery wrote:
I want to be corrected.
Yes. I forgot to mention that I removed "/ 72" from the equation.
Anonymous
Not applicable
A little late to the conversation, but I have a slightly similar problem.

I want to create some text that changes size as the user changes scales. I.e: something that is 6 points regardless of the model scale. Also, I want to have the text size remain the same even if the bounding box is scaled. Currently the text is stretched / scaled the same as the bounding box is.
define style{2}    "AC_STYLE_1" "Arial", textsize / 72 * 25.4 , 0   
   
paragraph		"AC_PRG_3"      2, 0'-0.0000", 0'-0.0000", 0'-0.0000", 3'-3.3701"   
    pen     penAttribute_3   
    set style "AC_STYLE_1"   
        cust_obj_size   
		cust_obj_text_space   
		cust_obj_member   
endparagraph   
paragraph		"AC_PRG_4"      2, 0'-0.0000", 0'-0.0000", 0'-0.0000", 3'-3.3701"   
        cust_obj_spacing   
		cust_obj_text_oc   
endparagraph   
textblock		"AC_TEXTBLOCK_2" 75-4.8216",      8, 0'-0.0000", 3'-3.3701", 3'-3.3701", 3'-3.3701",   
        "AC_PRG_3", "AC_PRG_4"   
richtext2		0'-0.0000", 0'-0.0000", "AC_TEXTBLOCK_2"

textsize
is a real number parameter.

When I change the
 textblock ...fixed_height
from 1 to 0 the text gets huge, but does not seem to be the right parameter to change.

Any thoughts ?