2008-04-08 06:02 PM
rr1 = REQUEST ("Zone_relations", "", category_name, code, z_name, z_number) identify = "" key=z_number ch1 = OPEN ("DATA", "KRT.txt", "SEPARATOR = '\t', MODE = RO, LIBRARY ") ch2 = OPEN ("DATA", "KRT-toad.txt", "SEPARATOR = '\t', MODE = RO, LIBRARY ") n = INPUT (ch1, key, 1, unit_area) if n <> 0 then identify = z_number else identify = Unit_ID key = Unit_ID n = INPUT (ch1, key, 1, unit_area) EndIF nr = INPUT (ch2, key, 1, nr_rooms) close ch1 close ch22D Script:
Font=LABEL_FONT_NAME Font_size=fsize Font_style=Detail_font_style alignment=LABEL_TEXT_ALIGN firstline_indent=0 left_indent=0 right_indent=0 line_spacing=LABEL_TEXT_LEADING textblock_width=0 textblock_anchor=1 textblock_angel=0 textblock_width_factor=LABEL_TEXT_WIDTH_FACT textblock_charspace_factor=LABEL_TEXT_CHARSPACE_FACT textblock_fixed_height=1 DEFINE STYLE{2} "TypeLabel" Font, LABEL_TEXT_SIZE, LABEL_FONT_STYLE DEFINE STYLE{2} "TypeDetail" Font, Font_size, Font_style PARAGRAPH "Unit_ID" alignment, firstline_indent, left_indent, right_indent, line_spacing SET STYLE "TypeLabel" identify + "" ENDPARAGRAPH PARAGRAPH "Details" alignment, firstline_indent, left_indent, right_indent, line_spacing SET STYLE "TypeDetail" nr_rooms + "-TOALINE\n" unit_area + " m²" ENDPARAGRAPH TEXTBLOCK "Label" textblock_width, textblock_anchor, textblock_angel, textblock_width_factor, textblock_charspace_factor, textblock_fixed_height, "Unit_ID","Details" RICHTEXT2 0,0, "Label" Print nr, identify, nr_rooms, unit_area2) And also, is there any way to automatically write lists or schedules? At the moment I'm forced to manually save the schedules as tabbed text files to retrieve data into the label object.
2008-04-09 12:03 AM
2008-04-09 12:32 PM
Anssi wrote:I am aware of that topic but I just can't see the solution there for the conflict I have besides the null string?
Similar problems have been discussed before:
http://archicad-talk.graphisoft.com/viewtopic.php?t=20132
It seems that the Paragraph text does not work quite as it should
Anssi
2008-04-09 01:13 PM