Creating complex LABELS with a single CONCAT function in Map 3D 2011

by

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.

LABEL1

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", ‘)’)))))))))))))

LABELA

TO THIS

CONCAT( SIZE1 ,’" ‘, MATERIAL , ‘SAN@ ‘, SLOPE ,’%’,’\n’, PLN_TYPE , PLN_NUM ,’ UE: ‘, UP_ELEV ,’ DE: ‘, DN_ELEV )

LABELB

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: