AutoCAD Map 3D General

Reply
Member
rangercap
Posts: 4
Registered: ‎11-06-2008
Message 1 of 4 (121 Views)

Numeric Value Labels in MAP 2013

121 Views, 3 Replies
04-19-2013 08:50 AM

Hopefully this is fairly simple to answer:

 

I have numeric values [St_NUMB] I'm adding as labels. I see that Map is converting them to strings [TOSTRING"(ST_NUMB)"]. The ST_Numb refers to a street number for a a house, and any outbuildings are labels as '0' (zero) since they are not technically an addressable structure. I have a large amount of data with a value of '0' (zero) that I would like to filter out of the labels. I'm really not sure what expression or command is the simplest to use.

 

Thanks in advance.

 

Brian

*Expert Elite*
braudpat
Posts: 1,840
Registered: ‎12-15-2006
Message 2 of 4 (116 Views)

Re: Numeric Value Labels in MAP 2013

04-19-2013 09:51 AM in reply to: rangercap

 

Hello

 

In your SDF, SHP, SQLite, Oracle, etc Table, the ST_NUMB Field is :

Number/Interger?

OR

Character/Varchar ?

 

Have you some A-Z chars (or other non numeric chars) after the numbers ?

 

Some samples (as I can imagine) : 0123 , 00456A , 00789 AB , etc

 

Bye, Pat

 

Bye, Pat

*Expert Elite*
Alfred.NESWADBA
Posts: 8,867
Registered: ‎06-29-2007
Message 3 of 4 (94 Views)

Re: Numeric Value Labels in MAP 2013

04-20-2013 06:16 AM in reply to: rangercap

Hi,

 

create two rules in the display manager, the first with the filter-expression St_NUMB = 0 (that does not show a label) and the other as the default "Standard".

 

- alfred -

-------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
Distinguished Contributor
olivier.eckmann
Posts: 146
Registered: ‎02-14-2009
Message 4 of 4 (88 Views)

Re: Numeric Value Labels in MAP 2013

04-20-2013 02:44 PM in reply to: rangercap

Hi,

 

in the label, you can use this expression 

 

 If ( ' St_NUMB = 0 ' , '', ToString ( St_NUMB) ) 

 

Olivier

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community