|
POST
|
Alexander, Just an idea but have you tried calling the Copy geo-processing tool to copy the workspace? Duncan
... View more
08-14-2013
06:00 AM
|
0
|
0
|
1155
|
|
POST
|
If you place the AddIn in a folder that all users can reach (e.g. a sub-folder in the ArcGIS folder) then all users can log in under their own profile and navigate to it. If it is on a network drive then all users could navigate to it from any computer with ArcGIS...
... View more
08-14-2013
05:52 AM
|
0
|
0
|
3344
|
|
POST
|
John, I have not used this interface so it may be a red herring but take a look at the IConversionNotation interface? Duncan
... View more
08-14-2013
05:48 AM
|
0
|
0
|
706
|
|
POST
|
Mickey, I don't believe there is a method or property that returns the answer to "does this layer belong to a group layer, if so which". You would need to create a recursive procedure that searches the layers and traverse down the tree of layers testing the type of layers you are finding. Below is a bit of VBA that shows you how to test the type of layer found. You need to create a recursive procedure around this logic. Public Sub test()
Dim pMXDocument As IMxDocument
Set pMXDocument = ThisDocument
Dim pMap As IMap
Set pMap = pMXDocument.FocusMap
Dim pEnumLayer As IEnumLayer
Set pEnumLayer = pMap.Layers(Nothing, True)
Dim pLayer As ILayer
Set pLayer = pEnumLayer.Next
Do While Not pLayer Is Nothing
If TypeOf pLayer Is IGroupLayerayer Then
Debug.Print "GroupLayerayer = " & pLayer.Name
' Do a recursive search here
ElseIf TypeOf pLayer Is IGeoFeatureLayer Then
Debug.Print "FeatureLayer = " & pLayer.Name
End If
Set pLayer = pEnumLayer.Next
Loop
End Sub Duncan
... View more
07-17-2013
05:51 AM
|
0
|
0
|
1003
|
|
POST
|
You say you are making a stand alone application, I assume you are using Engine? I looked at the help for the IMaps interface and in the remarks it says: ... IMaps interface is NOT available with ArcGIS for Server and ArcGIS Engine since this interface is used to get access to a Maps object, which is a non-creatable object. References to non-creatable objects must be obtained through other objects. IMaps interface is available only with ArcGIS for Desktop. Your code is accessing an MXDocument class? Have you considered using a MapDocument object instead? Look a the help page "Working with map documents" there is a section about why you would use a MapDocument class instead of an MXDocument Class. Worth a read? Duncan
... View more
07-17-2013
01:33 AM
|
0
|
0
|
1088
|
|
POST
|
Can you identify for us which line is causing the problem, by colouring it ?
... View more
07-16-2013
11:49 AM
|
0
|
0
|
1088
|
|
POST
|
Just thinking off the top of my head here but could you have a very simply text file which lists paths to other locations and include that into the AddIn. Then your AddIn code looks for this file and reads from it allowing you to store your data elsewhere? I have not used Python AddIns so not sure how easy it would be to include a separate file?
... View more
07-12-2013
01:45 AM
|
0
|
0
|
1743
|
|
POST
|
If your source dataset has ZM values (even if they are not set) and you want to drop these from the entire dataset you will have to export the dataset to a new FeatureClass which does not support ZM values. If you want to achieve this in ArcObjects the easiest way is probably to call the geo-processing tool using the execute method on the IGeoProcessor object.
... View more
07-12-2013
01:33 AM
|
0
|
0
|
1224
|
|
POST
|
Jacob, Glad to have helped, but you should mark your post as answered. Also if you see a good question/answer vote it up! People love you for it. Duncan
... View more
07-11-2013
08:46 AM
|
0
|
0
|
1087
|
|
POST
|
You would need to create a FeatureSet in your model, expose as parameter, ensure schema is set to any old polygon layer, then when you OPEN the model from toolbox you have an iteractive method for selection features. See attached image.
... View more
07-11-2013
08:43 AM
|
0
|
0
|
4402
|
|
POST
|
Your calculate expression is invalid, you have: "[Shape_Length * 2] / [Join_Count]" it should be: "[Shape_Length] * 2 / [Join_Count]" Duncan
... View more
07-11-2013
05:43 AM
|
0
|
0
|
1087
|
|
POST
|
Shiko, Sounds like you want to be using FeatureSets, have a look here. Duncan
... View more
07-11-2013
05:37 AM
|
0
|
0
|
4402
|
|
POST
|
Try dropping the "" around the word output in the CopyRaster tool.
... View more
07-11-2013
05:31 AM
|
0
|
0
|
1154
|
|
POST
|
Accessing the point collection using an index makes a lot of sense to me but I totally agree the Help for this method is about as clear as mud. ESRI need to improve this with proper examples.
... View more
07-11-2013
05:24 AM
|
0
|
0
|
2128
|
|
POST
|
The answer to your question is here. I would also question the wisdom of any dataset with 650 columns...
... View more
07-11-2013
03:46 AM
|
0
|
0
|
864
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-03-2026 07:31 AM | |
| 3 | 06-29-2026 05:17 AM | |
| 1 | 02-15-2023 05:45 AM | |
| 1 | 06-16-2026 02:37 AM | |
| 1 | 06-15-2026 08:29 AM |
| Online Status |
Online
|
| Date Last Visited |
Monday
|