|
POST
|
I have a couple of label expressions that I have used many times in ArcMap, but now trying to use them in Pro they no longer work and throw an error. I am using VBScript and have the Language set as such. The code is pasted below. It basically goes through and finds a last name, first name and outputs the Last Name comma First letter of first name and first letter of third name from the first 3 words with the acreage (for example Jones, D. R.), that part works, then it goes through and finds strings that don't have a comma (those are business names) and outputs the first full word period second word first letter period third word first letter period (for example Union Electric Company would be Union E. C.) The error is thrown from the code in bold at the bottom. The first part works but I have tried adding and taking away the other array strings from the split function and they are what is throwing the error. Again it has always worked fine in ArcMap! The error is Invalid Expression Error 10 on line 0. Subscript out of range: '[number:1] : Function FindLabel ( [OwnName1], [ACRES] ) Dim sWords If IsNull ( [OwnName1] ) then FindLabel="No Data" else If InStr( [OwnName1] ,",") <>0 then sWords = Split( [OwnName1] , " ") FindLabel = Left(sWords(0),12) & Left(sWords(1),1)& " " & Left(sWords(2),1) & ". " & Round( [ACRES] ,0) else sWords = Split( [OwnName1] , " ") FindLabel = Left(sWords(0),12) & " " & Left(sWords(1),1)& "." & Left(sWords(2),1) & ". "& Round( [ACRES] ,0) end if end if End Function Thanks in advance for any insight you can give me~ MJ
... View more
06-12-2018
01:27 PM
|
0
|
6
|
3045
|
|
POST
|
I am looking at converting some of my map projects to Pro, and can't find how to change the map units on the scale bar. This seems like it should be simple! It is set to miles and I would like it to be set to feet. I have tried the scale bar properties/units and see nothing there to change, my map options are set to feet. Can anyone tell me how to do this? Thanks in advance!
... View more
08-01-2016
08:17 AM
|
1
|
4
|
6074
|
|
POST
|
Looking for ideas on how to go about creating a map (and/or app) where I could put in specific point locations (or could possibly use the locate me function on a device as the starting point), then find all potential routes for a given distance round trip. For example, we want to start a fitness program, so I would like to have our buildings as input, and say a 1 mile round trip goal and show all of the different walking routes that are 1 mile. It sounds like something Network Analyst should be able to do but I can't wrap my head around how to make it work the way I describe. The plus of using Network Analyst for this would be the ability to use barriers to block unsafe routes that were identified. Suggestions are appreciated!
... View more
04-24-2015
11:59 AM
|
0
|
1
|
2643
|
|
POST
|
I think I have figured out a way to do it. It is not very elegant but I think it should save me some work. Using your code above !field_name!.split("*")[-1], I can Select by Attributes anything with SEC to filter only those records I am interested in, then use your code to calculate a new field as: "SEC" + !SUBDIVNAME!.split("SEC")[-1] That way I don't have to do an extra step. Thank you for your help! I haven't used Python much.
... View more
09-27-2013
08:17 AM
|
0
|
0
|
1526
|
|
POST
|
Thanks for replying, no there is no guarantee that it is only 2 words past the word Sec. Some say Sec 3 Rplt or could be even longer if it is a replat of certain lots in the description. I do not have a separate Sections feature. The only thing I have thought of to do so far, and it seems like a strange way to do it, is to query from my Subdivision names LIKE '%SEC%'. then calculate the filtered results my new field using your code from earlier as such !SUBDIVNAME!.split("SEC")[-1]. Then I will have to calculate a new field with "SEC " & [SEC] my "temporary" field. I was just hoping there was a way to get the SEC word over without the extra step.
... View more
09-27-2013
05:53 AM
|
0
|
0
|
1526
|
|
POST
|
Yes. I have a subdivision name field. Some are just single part subdivisions; eg Lakewood. Others may have sections for example Lakeview Sec 1, Lakeview Sec 2, Lakeview Sec 3. What I want to do is calculate a new field so that it has only the Section in it, for example Sec 1, Sec 2. So ultimately one field will have the subdivision name and one field will have the section number in it. Hope this makes more sense. Some may not have any Section number as in the example of Lakewood above.
... View more
09-26-2013
10:09 AM
|
0
|
0
|
1526
|
|
POST
|
I know this is an old thread but it sounds similar to what I have been looking for. If I want to split a string and include the asterisk (in your example) how would I do that? I have a string field and I am trying to calculate a new field with everything from a particular word to the end of the string. Example: Some Subdivision Sec 3; I want Sec 3 in a new field. Thanks in advance for any assistance!
... View more
09-26-2013
07:33 AM
|
0
|
0
|
1526
|
|
POST
|
I found this blog post http://blogs.esri.com/esri/arcgis/2012/08/28/is-your-mosaic-dataset-look-like-a-checkerboard/ but it doesn't seem to address my issue. I can see the mosaic images when I am zoomed in, it is the overviews that are showing the checkerboard.
... View more
06-27-2013
08:07 AM
|
0
|
0
|
945
|
|
POST
|
I also have this issue. I created the mosaic dataset in ArcMap Desktop (Advanced), chose the Update Overviews option when I loaded the Rasters. I am trying to put a copy the mosaic dataset on an ArcMap (Basic) machine that will be used for Emergency Management and probably won't have an internet connection when used. I am getting the checkerboard pattern. Is it just because it is a Basic license?
... View more
06-27-2013
07:53 AM
|
0
|
0
|
945
|
|
POST
|
I have horrible trouble with snapping being slow and jerky. I am cutting polygon features. This is with both classic and new snapping and have adjusted the snapping tolerance. One other thing I have noticed is that the Control - V to show vertices also is flaky. You sometimes have to hold the button down for a long time or try several times to get the vertices to show up, and even then they don't always all appear. It is really annoying. Sounds like there are a lot of folks having issues with it. Hope it get fixed in the next service pack!
... View more
02-25-2013
12:22 PM
|
0
|
0
|
2003
|