|
POST
|
Andrew, May be your solution is some combination of the describe object, more info here. You could try using the dataElementType property? This bit of python will give you all the data element types as long as they are not in a grouplayer. mxd = arcpy.mapping.MapDocument("CURRENT")
l = arcpy.mapping.ListLayers(mxd)
for al in l:
d = arcpy.Describe(al)
print d.dataelementtype Duncan
... View more
11-11-2011
07:06 AM
|
0
|
0
|
754
|
|
POST
|
Rebecca, It may help others to help you if you draw what you are trying to ask and upload it. You start off talking about points then end up talking about selected cells, so what are you actually talking about?
... View more
11-11-2011
06:27 AM
|
0
|
0
|
1829
|
|
POST
|
Thomas, If you are happy to convert your models into Python code then you could take advantage of multi-core processors as described in this blog. It does mean you will have to stop working in the model builder environment. Duncan
... View more
11-11-2011
06:17 AM
|
0
|
2
|
2113
|
|
POST
|
Hello, I wanted to bump this thread up to the top to find out what the latest is? There is nothing on the ArcPad blog about the future of Arcpad. I know mobile 7 is a very different beast and that Arcpad seems to be tied to hardware development (Trimble etc..) so I was wondering what ESRI were envisaging for ArcPad? I don't follow mobile development too closely but modern mobile OS seem to be all about gestures and fluffy looking "apps" ,a scenario I can't see working if one is trying to capture detailed geometries. So if ArcPad is tied to hardware and big companies like Trimble or Magellan are not moving towards such OS then does this mean ArcPad is "stuck" at mobile 6.5 and we should NOT be running out to buy the latest hardware? Duncan
... View more
11-11-2011
05:05 AM
|
0
|
0
|
1404
|
|
POST
|
Michelle, I downloaded your toolbox and had a look at it. In your initial thread you said that it would not even run the table select part of Python. This bit I have tested only. The parameter setting for your "Output selected data" was incorrect. It's direction was set to input this should be an Output. This allowed that section of code to execute correctly even with the text file (my idea of dBase was a red herring). This bit of code now generates a table based upon your sql expression which should join to your featureclass. Duncan
... View more
11-09-2011
01:15 AM
|
0
|
0
|
1108
|
|
POST
|
Michelle, You upload data/toolboxes by zipping them up first... Your sample of data (Wost_Test) is this originally a text file? Convert it to a dbf first. Duncan
... View more
11-08-2011
07:19 AM
|
0
|
0
|
1108
|
|
POST
|
Tom, Don't have a grid file name long than 8 characters. Duncan
... View more
11-08-2011
06:53 AM
|
0
|
0
|
729
|
|
POST
|
Michelle, Can you upload your toolbox that you have linked your python script to so we can check the parameters. Also give us an example of the sql expression you are adding and maybe a sample of your data (in the format that it is stored as)? Duncan
... View more
11-08-2011
06:47 AM
|
0
|
0
|
1108
|
|
POST
|
Aleydis, I use PyScripter as my Python development environment. I find running a script from the Python command line window in ArcMap slower than running it from the IDE environment. Also if you have a multicore processor maybe you could try and utilise them all? There is a great blog article showing a simple example here. Duncan
... View more
11-08-2011
06:39 AM
|
0
|
0
|
471
|
|
POST
|
Ivan, This code gets to the width and height of a graphic: Public Sub test()
' Get the map and the graphics container for it
Dim pMap As IMap
Dim pMXDocument As IMxDocument
Set pMXDocument = ThisDocument
Set pMap = pMXDocument.FocusMap
Dim pGraphicsContainer As IGraphicsContainer
Set pGraphicsContainer = pMap
' Get the first element
Dim pElement As IElement
pGraphicsContainer.Reset
Set pElement = pGraphicsContainer.Next
' Get the name property and display
Dim pElementProperties As IElementProperties
Set pElementProperties = pElement
MsgBox pElementProperties.Name
' Get the width and height and display
Dim pEnvelope As IEnvelope
Set pEnvelope = New Envelope
Dim pDisplay As IDisplay
Set pDisplay = pMXDocument.ActiveView.ScreenDisplay
pElement.QueryBounds pDisplay, pEnvelope
MsgBox CStr(pEnvelope.Width), vbInformation, "width"
MsgBox CStr(pEnvelope.Height), vbInformation, "height"
End Sub Another Interface is IBoundsProperties. This code worked well for a circle but I noticed that when I drew a polyline graphic it's width was different to what the dialog was reporting, not sure why. Duncan
... View more
11-08-2011
12:48 AM
|
0
|
0
|
630
|
|
POST
|
Are you saying the ArcToolbox contains no tools, so the whole window is blank? I used to get this problem in 9.3 and found that the only way to make them come back is to add the system tools. In ArcGIS 10 you would open ArcToolbox, right click anywhere in it and select add toolbox. In the look in drop down select toolboxes then go into system toolboxes and select everything. Duncan
... View more
11-03-2011
08:34 AM
|
0
|
0
|
4964
|
|
POST
|
Joe, Try using the Collect value tool. In your model attach the point_ge.shp output of the iterator to a collect value tool. In model builder go to to menu option insert > model only tools > collect values. This as the name suggests collects the values generated by the iterator which can then feed into the append tool. Duncan
... View more
11-03-2011
01:53 AM
|
0
|
0
|
3337
|
|
POST
|
Are you saying when you use the append tool by itself then all the attributes are passed over rather than getting set to zero? May be it's just coincident that you have selected a bunch of shape files that have the same fields and it works?
... View more
11-02-2011
09:18 AM
|
0
|
0
|
3337
|
|
POST
|
Is your polyline data in meter units (for example UTM) but your DataFrame is in lat/long, or vice versa?
... View more
11-02-2011
04:51 AM
|
0
|
0
|
547
|
|
POST
|
Ann, I downloaded you data and ran the buffer tool using your parameters on all the point layers and they all ran without problem. This suggests to me there is someting weird going on with your output location. Try creating a blank geodatabase and create the buffers in that, so don't use the C:\ESRIPress\GIST1\MyExercises\Chapter9\Tutorial9.gdb Also start with a fresh session of arcmap with just that one point layer loaded to avoid any spatial reference issues. Duncan
... View more
10-28-2011
08:15 AM
|
0
|
0
|
477
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12 hours ago | |
| 1 | 12-03-2025 04:30 PM | |
| 1 | 12-03-2025 04:06 PM | |
| 1 | 12-03-2025 04:17 PM | |
| 1 | 12-02-2025 07:05 AM |
| Online Status |
Offline
|
| Date Last Visited |
12 hours ago
|