|
POST
|
v10 should see them. Was the toolbox a stand alone tbx file or a toolbox inside a geodatabase? If it is a tbx file is it actually in the same folder, can you see it in Windows explorer?
... View more
12-11-2011
08:03 AM
|
0
|
0
|
1489
|
|
POST
|
James, I think it's a geoprocessing memory leak issue. I have had all sorts of problems when I do lots of looping in Python using the geoprocessor. There did not seem to be solution. The only improvement I could make was not to have any of the data in a personal geodatabase but as Shapefiles. This was especially true when doing lots of selections. Ultimately the code would crash as it ran out of memory so I had to run it in batches with me periodically closing down ArcMap. Rediculous really, you would have though they had fixed all that as it's been a continuing problem from 9.3. Duncan
... View more
12-11-2011
07:54 AM
|
0
|
0
|
3041
|
|
POST
|
Alex, May be I'm misunderstanding the models logic but I have a question? I'm assuming inputs Address2 and Select Features:Address are the same layer (may be a point layer)? You do a query selection on this and use this selection to select the parcels. Then you use an iterator which is grouping by recnum. Is recnum unique within the selection? If so then with each iteration you are writing recnum to the selection in the address layer and this I guessing is overwriting the value again? If this model is allowed to run to completion is the value written into Adress the very last recnum? Duncan
... View more
12-11-2011
07:44 AM
|
0
|
0
|
736
|
|
POST
|
Linda, I had a play with the ITableWindow2 Interface in VBA and found using your code I too could crash ArcMap. I then played around with the properties and found this combination to work: Public Sub x()
Dim pMXDOC As IMxDocument
Set pMXDOC = ThisDocument
Dim pmap As IMap
Set pmap = pMXDOC.FocusMap
Dim pl As ILayer
Set pl = pmap.Layer(0)
Dim pTW2 As ITableWindow2
Set pTW2 = New TableWindow
With pTW2
Set .Application = Application
Set .Layer = pl
.ShowAliasNamesInColumnHeadings = True
.TableSelectionAction = esriSelectFeatures
.Show True
.ShowSelected = True
End With
End Sub I changed the selectionAction but note I show the TableWindow THEN I show the selected... Duncan
... View more
12-10-2011
11:32 AM
|
0
|
0
|
545
|
|
POST
|
Robin, You could get into using the GeoProcessor and calling existing tools through the Execute method, this avoids having to know every nuance of ArcObjects. If you want to use the ArcObjects approach then in VBA all you need to do to create a PERSONAL geodatabase is this: Public Sub test()
Dim pWSF As IWorkspaceFactory
Set pWSF = New AccessWorkspaceFactory
Dim pWSN As IWorkspaceName
Set pWSN = pWSF.Create("C:\temp", "pGDB_Test", Nothing, 0)
End Sub Duncan
... View more
12-10-2011
10:58 AM
|
0
|
0
|
736
|
|
POST
|
Jenny, The only thing I spotted with your code is this line: Set EditorEvents = Application.FindExtensionByName("ESRI Object Editor") All the code samples in help use: Dim pID as New UID
pID = "esriEditor.Editor"
Set m_pEditor = Application.FindExtensionByCLSID(pID)
Set EditEvents = m_pEditor Duncan
... View more
12-10-2011
10:42 AM
|
0
|
0
|
462
|
|
POST
|
You want to use the Interface IStandaloneTableCollection.
... View more
12-10-2011
10:30 AM
|
0
|
0
|
548
|