|
POST
|
You can easily take a parameter from a URL to do something when opening a flex web site. Here's a sample that shows you how to do that
... View more
03-02-2012
10:34 AM
|
0
|
0
|
1077
|
|
POST
|
Hello, As far as I know, you should only have one script block and all you methods in it. I've never seen Flex code with more that 1. Joe As shown in Dasa's link, it is possible to have more than one script block. A better question would be why it's advantageous to have more than one block.
... View more
03-01-2012
05:50 AM
|
0
|
0
|
1531
|
|
POST
|
You'd just have to comment out where it checks if the layer is a Feature Layer Do While Not (pLayer Is Nothing) 'If TypeOf pLayer Is IFeatureLayer Then pLayer.Visible = True pActiveView.extent = pLayer.AreaOfInterest pActiveView.Refresh ExportLayout "GIF", "C:\Users\Desktop\" & pLayer.Name & ".gif", 175 'System.Windows.Forms.MessageBox.Show (pLayer.Name) pLayer.Visible = False 'End If Set pLayer = pEnumLayer.Next Loop Don't forget to mark the answer as correct and/or helpful
... View more
02-13-2012
08:33 AM
|
0
|
0
|
4358
|
|
POST
|
Most of it will go over directly. You'll have to add in "Set" to some of the statements and you won't need the fully qualified declarations (Dim activeView As IActiveView instead of Dim activeView As ESRI.ArcGIS.Carto.IActiveView, for example).
... View more
02-10-2012
11:19 AM
|
0
|
0
|
976
|
|
POST
|
Here is some code written in VB.NET ( so you'll have to do some slight modifications for VBA) that will loop through the table of contents three times. The code first gets the original extent of the activeview. The first loop will turn off all the layers. The second loop will turn on a layer and zoom to its extent, pops up a message box to pause the operation, then turns the layer off. The third loop turns the layers back on once again. Finally, the activeview is set back to the original extent.
Dim activeView As ESRI.ArcGIS.Carto.IActiveView
activeView = pMxDoc.ActiveView
Dim extent As ESRI.ArcGIS.Geometry.IEnvelope
extent = activeView.Extent
Dim pMap As ESRI.ArcGIS.Carto.IMap
pMap = pMxDoc.FocusMap
Dim enumLayer As ESRI.ArcGIS.Carto.IEnumLayer
enumLayer = pMap.Layers
enumLayer.Reset()
Dim layer As ESRI.ArcGIS.Carto.ILayer
layer = enumLayer.Next
Do While Not (layer Is Nothing)
layer.Visible = False
layer = enumLayer.Next
Loop
enumLayer.Reset()
layer = enumLayer.Next
Do While Not (layer Is Nothing)
If TypeOf layer Is ESRI.ArcGIS.Carto.IFeatureLayer Then
layer.Visible = True
activeView.Extent = layer.AreaOfInterest
activeView.Refresh()
System.Windows.Forms.MessageBox.Show(layer.Name)
layer.Visible = False
End If
layer = enumLayer.Next
Loop
enumLayer.Reset()
layer = enumLayer.Next
Do While Not (layer Is Nothing)
layer.Visible = True
layer = enumLayer.Next
Loop
activeView.Extent = extent
activeView.Refresh()
... View more
02-07-2012
11:30 AM
|
0
|
0
|
3382
|
|
POST
|
I'm having difficulty in trying to understand your goals. Can you provide an illustration of what you're trying to achieve?
... View more
02-07-2012
09:14 AM
|
0
|
0
|
3382
|
|
POST
|
This has started happening on my projects when I switched to FB 4.6
... View more
02-07-2012
09:03 AM
|
0
|
0
|
3235
|
|
POST
|
This tool has been working well, but when I upgraded to FG 4.6, I'm getting the broken link to the Pan/Zoom In/Zoom Out images also. This is with both pre-sparked version for the 2.3.1 API as well as the version for 2.4. The images appear when I mouse over them. [ATTACH=CONFIG]11760[/ATTACH]
... View more
02-07-2012
08:58 AM
|
0
|
0
|
3009
|
|
POST
|
Have you considered using IdentifyTask instead? IdentifyParameters contains a property for setting the tolerance in screen pixels.
... View more
02-01-2012
06:08 AM
|
0
|
0
|
1181
|
|
POST
|
Your problem is here
' is this the first time through?
Dim m_pFeatCur As IFeatureCursor
Dim testVal As String
If m_pFeatCur Is Nothing Then
m_pFeatCur = pFeatureLayer.Search(Nothing, False)
Else
'Use messages to find cause of error - not working though!
MessageBox.Show("Cursor WAS found!")
End If
Every time you click the button you're declaring the cursor, so it will be evaluated as Nothing. You have to declare m_pFeatCur outside of this sub. Take a look at the original script again and look at where it was declared.
... View more
02-01-2012
05:50 AM
|
0
|
0
|
921
|
|
POST
|
From the help: IPage is the primary interface on the Page object. Use this interface to access all the properties of an ArcMap page, including the border, background, background color, orientation, and size.
... View more
02-01-2012
05:36 AM
|
0
|
0
|
1083
|
|
POST
|
Please post your code so we can see how you've declared and instantiated the cursor.
... View more
02-01-2012
04:28 AM
|
0
|
0
|
921
|
|
POST
|
It's in ESRI.ArcGIS.ADF.ComReleaser. In ArcGIS 10, you have to add the reference ESRI.ArcGIS.ADF.Connection.Local
... View more
01-27-2012
10:15 AM
|
0
|
0
|
2229
|
| 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 |
2 weeks ago
|