Learn to manage BIM workflows and create professional Archicad templates with the BIM Manager Program.
2004-10-07 07:45 PM
2004-10-07 09:37 PM
2004-10-08 12:02 AM
text_size = 5 !-- this is usually in mm, right? TEXT 0", 0", "first line of text here" TEXT 0", Y, "second line of text here"How would you figure out what 'Y' should be if you're working in the english system? You can't just do
2004-10-08 12:15 AM
Sergio wrote:Sure. An example:
I also use a text size variable, however, how would you figure out where to place the next line of text? For example:
text_size = 5 !-- this is usually in mm, right? TEXT 0", 0", "first line of text here" TEXT 0", Y, "second line of text here"How would you figure out what 'Y' should be if you're working in the english system? You can't just doY = 0-text_size, can you?
text_sz = 8 * 0.3528 ! conversion from points to mm DEFINE STYLE "text_style" "Arial", text_sz, 1, 0 STYLE text_style TEXT2 0, 0, "First line of text" ! or a variable parameter TEXT2 0, -text_sz*1.25, "Second line of text" ! or whatever
2004-10-08 01:37 AM
t_lines=0 t_conv=0.08 a2 = a IF s_dim = 1 THEN !--- show Dimmer --- dim_a = a2: dim_b = b+(t_lines*t_size*t_conv) hotspot2 dim_a, dim_b, 2 !drag text to location TEXT2 dim_a, dim_b, 'D' t_lines = t_lines +1 ENDIFI'll probably take another look at it some other time... unless you have some other ideas. Maybe I'm just not seeing it (wouldn't be the first time).
2004-10-08 04:14 AM
TEXT2 0, -text_sz*A_*0.00125, "Second line of text"When you say you are using imperial/english/american, I am assuming that means you are using point sizes for type.
2004-10-08 05:12 AM
Matthew wrote:
Sorry, I forgot one important thing...
I honestly don't understand what you are trying to accomplish with the code you posted. It looks a bit complicated if all you are trying to do is place multiple lines of text.
2004-10-08 06:49 AM
Matthew wrote:Matthew, you will be pleased to know you are incorrect
There is no linefeed function. You have to insert lines of text with separate TEXT2 statements.
2004-10-08 09:40 AM
Aussie wrote:Cool. Thanks.Matthew wrote:Matthew, you will be pleased to know you are incorrect
There is no linefeed function. You have to insert lines of text with separate TEXT2 statements.
use +"\n" to make a new line of text
Example:text2 L,H,"max width "+x+" m"+"\n"+"max depth "+y+" m"+"\n"+area+" sq m"