|
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
|
2198
|
|
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
|
740
|
|
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
|
1029
|
|
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
|
6594
|
|
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
|
5263
|
|
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
|
5263
|
|
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
|
1018
|
|
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
|
790
|