POST
|
Hi Rhiawna, Why don't you set up a label class with a SQL Query instead of doing this in a label expression? The SQL Query would be pretty simple: "AS_COMMENT" NOT LIKE '%PIER%' AND "AS_COMMENT" NOT LIKE '%CIP%' David After much testing this is how it needs to be for SQL Query: NOT "AS_COMMENT" LIKE 'PIER%' AND "AS_COMMENT" <> 'CIP' AND "AS_COMMENT" <> 'PRE' The NOT has to be before the field for some reason. If you don't do it that way you'll get an invalid SQL statement error. If you wanted it in VB then it'd be like this: Function FindLabel ( [AS_COMMENT] ) if instr( [AS_COMMENT], "PIER") = 0 and instr( [AS_COMMENT], "CIP") = 0 then FindLabel = [AS_COMMENT] end if End Function Thank you for your suggestion 😄 It's truly aggrivating that there isn't more ESRI help in this matter. I find it rediculous that it took several days and multiple people to figure out what should be so simple.
... View more
09-06-2011
09:23 AM
|
0
|
0
|
181
|
POST
|
I am desperately trying to figure out how to NOT LABEL something. I have one field with all of my labels in it. The field is titled "As_Comment" I have features such as pillars that I have data on and other structures but I don't want them to be labeled. When I try to just label a specific pillar to test my expression it works. However, when I try to use a wildcard (as there are many pillars ie pier 69, pier 70, pier 71, etc) the code is still verified and accepted but it still labels everything. I decided to go all out and see if I could NOT LABEL 2 items, messed up the code 😮 that was partially working and had to start all over again. Below is what I have at the moment after starting over again 🙂 Function FindLabel ( [AS_COMMENT] ) if [AS_COMMENT] <> ("PIER %") then FindLabel [AS_COMMENT] =(" ") else FindLabel = [AS_COMMENT] end if End Function Also, how would I write it if I didn't want to label 2 items? Say if I didn't want to label andthing with "PIER" in it AND anything with "CIP" in it? Any speedy help on this is very much appreciated.
... View more
09-01-2011
05:45 PM
|
0
|
2
|
812
|
POST
|
***Clearing all context because I don't know how to delete thread*** See other posting with the same title.
... View more
09-01-2011
05:21 PM
|
0
|
0
|
341
|
POST
|
First, thank you for that...I had read other posts where it seemed this is what others were doing and I was hoping there was just something we were missing and it didn't require so many steps, but I guess not. Second, is this something that can be added as a fix in a future service pack or update so we don't have to endure so many steps? With the DS Mapbook during the setting up of the mapbook it was a toggle switch to turn on hatching or not and it was so easy, this is such a pain. One way to achieve that effect is to use data frame clipping. Here's away to do that: Have one layer symbolized the way you want for the areas outside the area of interest and another layer symbolized for the part inside the area of interest. Make sure the layer that represents your area of interest or the data for the particular page is on top so it draws above the other layer. These layers can be the same data added to the map twice, with the symbology defined differently for each. You might want to change the name for one or both of the layers in the TOC so you can tell which is which; for example, AOI and non-AOI or Inside and Outside. Then in the Data Frame Properties, Data Frame tab, in the Clipping section at the bottom, select "clip to current data driven page extent" Click the Exclude Layers button In the Select Layers dialog check the checkbox next to the non-AOI layer so it will be excluded from the clipping and will only clip the features in the AOI layer. Another way is to use a Page Definition Query to only show the non-AOI features in the non-AOI layer. To do that you would also need 2 layers, one for the AOI and one for the non-AOI. In this case you would place the non-AOI layer higher up in the TOC/drawing order. Then go to the Layer Proerties for the non-AOI layer, to the Definition Query tab. If everything is set up right (with DDP turned on and the layers set) you should see a button for "Page Definition". Click that button and check on "Enabled", set the Page Name Field to the field that matches the field you used to define the pages, and select the radio button to show features that "Don't Match". In either case you could do things like set the layer transparency and layer symbology to get different effects. Hope this helps get you on the right track 🙂
... View more
04-21-2011
09:17 AM
|
0
|
0
|
112
|
POST
|
I noticed that people are doing a lot of work arounds but I found this tutorial about DDP and one of the images about pdf's shows the edges are hatched out (lighter in color) giving me hope that it is possible within the application itself: http://blogs.esri.com/Dev/blogs/arcg...ven-Pages.aspx Has anyone figured out where this lovely feature might be?
... View more
04-21-2011
06:53 AM
|
0
|
1
|
213
|
POST
|
I noticed that people are doing a lot of work arounds but I found this tutorial about DDP and one of the images about pdf's shows the edges are hatched out (lighter in color) giving me hope that it is possible within the application itself: http://blogs.esri.com/Dev/blogs/arcgisdesktop/archive/2010/01/22/Data-Driven-Pages.aspx Has anyone figured out where this lovely feature might be?
... View more
04-20-2011
03:45 PM
|
0
|
0
|
474
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|