|
POST
|
The formatting tags won't work there are the symbols "<" or "&" in the fields that are being formatted. These special characters have to be replaced like in the following script (see the help topic for more information):
Function FindLabel ([LABELFIELD])
NewString = Replace([LABELFIELD],"&","&")
FindLabel = "<ITA>" & NewString & "</ITA>"
End Function
... View more
11-05-2012
09:23 AM
|
0
|
0
|
2660
|
|
POST
|
The esriLicenseProductCode constants have changed in 10.1. esriLicenseProductCodeArcEditor is now esriLicenseProductCodeStandard
... View more
11-05-2012
06:41 AM
|
0
|
0
|
546
|
|
POST
|
Have you seen this sample that puts the results of a GeoRSS feed on a graphics layer?
... View more
11-05-2012
04:24 AM
|
0
|
0
|
1052
|
|
POST
|
You can use something like this Function FindLabel( [Q1_2013], [Q2_2013], [Q3_2013] ) if ( [Q1_2013] <> 0 ) then var = "Q1 2013: " & [Q1_2013] & " acres" & vbnewline end if if ( [Q2_2013] <> 0 ) then var = var & "Q2 2013: " & [Q2_2013] & " acres" & vbnewline end if if ( [Q3_2013] <> 0 ) then var = var & "Q3 2013: " & [Q3_2013] & " acres" & vbnewline end if FindLabel = var End Function
... View more
11-01-2012
01:41 PM
|
0
|
0
|
3008
|
|
POST
|
Here's one way to do this: Dim pCmdItem As ESRI.ArcGIS.Framework.ICommandItem Dim pUID As New ESRI.ArcGIS.esriSystem.UID pUID.Value = "esriArcMapUI.AddDataCommand" pCmdItem = My.ArcMap.Application.Document.CommandBars.Find(pUID) pCmdItem.Execute() Or you can use the IGXDialog if you'd like more control over the datasets you'd like to add. Here's one example of how to use it
... View more
11-01-2012
01:27 PM
|
0
|
0
|
825
|
|
POST
|
The graphic layer does have the graphicProvider property. Here's an example.
... View more
11-01-2012
07:25 AM
|
0
|
0
|
1052
|
|
POST
|
You can use the Split function to put the words into an array and just retrieve the last item in the array.
Function FindLabel ( [Road_Name] )
If Not IsNull([Road_Name]) Then
arrString = Split([Road_Name])
FindLabel = arrString(UBound(arrString))
End If
End Function
... View more
10-31-2012
07:25 AM
|
0
|
0
|
1774
|
|
POST
|
Take a look at this thread, which gives a couple of examples of some code how to do that. When I use this in an application with an open form, minimizing ArcGIS will also minimize the form, and I don't have to use the "topMost" setting.
... View more
10-25-2012
12:16 PM
|
0
|
0
|
1364
|
|
POST
|
No, I haven't experimented with that yet. Just another item on my wish list when my time frees up...
... View more
10-25-2012
07:26 AM
|
0
|
0
|
1623
|
|
POST
|
You can use ArcObjects with Python. Take a look at this thread over in GIS.stackexchange.com
... View more
10-25-2012
06:24 AM
|
0
|
0
|
1623
|
|
POST
|
Glad to help. Don't forget to click on the check mark in the post that answered your question.
... View more
10-23-2012
12:46 PM
|
0
|
0
|
801
|
|
POST
|
Have you put any Try-Catch exception handling? Sometimes if there's an error and you don't trap it, ArcMap can unexpectedly quit with that error message.
... View more
10-23-2012
10:54 AM
|
0
|
0
|
569
|
|
POST
|
From your other thread, are you looking for something like this? Function FindLabel ( [LOCID] , [Silica] ) if ( [Silica] > 0) then FindLabel = [LOCID] & vbNewLine & [Silica] else FindLabel = [LOCID] end if End Function
... View more
10-23-2012
10:49 AM
|
0
|
0
|
4050
|
|
POST
|
However, the function is not labeling the other well sites that have a zero. hmmm Now I'm not sure what your objective is. I thought you didn't want the well sites with a zero to be labeled.
... View more
10-23-2012
10:37 AM
|
0
|
0
|
4050
|
|
POST
|
Why do you have two SILICA fields? Could that be an issue?
... View more
10-23-2012
10:22 AM
|
0
|
0
|
4050
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-04-2025 06:39 AM | |
| 1 | 05-01-2026 08:26 AM | |
| 1 | 04-10-2026 12:01 PM | |
| 1 | 04-13-2026 09:11 AM | |
| 1 | 10-11-2023 06:18 AM |
| Online Status |
Offline
|
| Date Last Visited |
4 weeks ago
|