In this example we will create multiline labels for sanitary lines containing seven field values, prefixes and suffixes, and a carriage return with one CONCAT function. The same label before contained thirteen CONCATs. The key is to separate FIELDs, ‘TEXT’, and ‘\n’ (carriage returns) by commas. Text values and the carriage returns must be enclosed with a single quote and then followed by comma. This method makes is easy to create custom complex multiline labels.
FROM THIS
concat("SIZE1", concat(‘" ‘, concat("MATERIAL", concat(‘ San @ ‘, concat("SLOPE", concat(‘%’, concat(‘\n’, concat("PLN_TYPE", concat("PLN_NUM", concat(‘(UE:’, concat("UP_ELEV", concat(‘,DE:’, concat("DN_ELEV", ‘)’)))))))))))))
TO THIS
CONCAT( SIZE1 ,’" ‘, MATERIAL , ‘SAN@ ‘, SLOPE ,’%’,’\n’, PLN_TYPE , PLN_NUM ,’ UE: ‘, UP_ELEV ,’ DE: ‘, DN_ELEV )
Leave a comment