|
IDEA
|
All, One of the great things about running a geo-processing tool is that it inserts information about the tool run on the dataset into the Geoprocessing history section of the metadata. This is incredibly useful for working out how a dataset was created, especially if the user who created the dataset provided no metadata (which in my experience is just about every major organisation on the planet). Another great thing about the modern ArcGIS is the in_memory workspace, this is great for storing temporary data without clogging up the hard drive and when you close ArcMap it all simply vanishes, love it! But... A FeatureClass stored in the in_memory workspace will not store any subsequent geoprocessing history. I may create a temporary dataset do some extra processing on it using geo-processing tools and then decide that it is indeed worth keeping and save out to a permanent location, but none of the geo-processing history is recorded. It would be an extremely useful improvement to an in_memory dataset to store the metadata. It would ensure a proper "paper trail" exists for a dataset.
... View more
02-19-2014
10:03 AM
|
10
|
0
|
1156
|
|
POST
|
Mike, It is not clear which tools you are trying to run. You state "Next I get the polygon.Boundary to get the polyline that encompasses the outer ring of the polygon." but IPolygon has no method Boundary? You refer to "PolylineToRaster" can I assume this is the geo-processing tool and not some function you are attempting to build? If it is then this tool takes as input a FeatureLayer not a single geometry object so a number for a field makes no sense. To use this tool you would need to store your polyline in a FeatureClass and supply the FeatureClass to the tool. Duncan
... View more
02-19-2014
06:23 AM
|
0
|
0
|
596
|
|
POST
|
Ilya, Here is some VBA code I have used that shows a "brute force" refresh of all folder connections in the Catalog Tree. Duncan Public Sub refreshFolders()
' Get ArcCatalog Application
Dim pApp As IGxApplication
Set pApp = Application
' Get the Catalog
Dim pGXCatalog As IGxCatalog
Set pGXCatalog = pApp.Catalog
' QI Catalog into GXObject
Dim pGXObject As IGxObject
Set pGXObject = pGXCatalog
' QI GxObject into GxObjectContainer
Dim pGxObjectContainer As IGxObjectContainer
Set pGxObjectContainer = pGXObject
' Get Gxobjects as an enumerate
Dim pEnumGxObject As IEnumGxObject
Set pEnumGxObject = pGxObjectContainer.Children
' Cycle through objects until we find the Folder Connections, then break out of loop
Dim pGxObject2 As IGxObject
Set pGxObject2 = pEnumGxObject.Next
Do While Not pGxObject2 Is Nothing
If TypeOf pGxObject2 Is IGxFolderConnections Then
Exit Do
End If
Set pGxObject2 = pEnumGxObject.Next
Loop
' Re-point GxObjectContainer to folder connection GxObject and refresh all children GxObjects
Set pGxObjectContainer = pGxObject2
Set pEnumGxObject = pGxObjectContainer.Children
Set pGxObject2 = pEnumGxObject.Next
Do While Not pGxObject2 Is Nothing
pGxObject2.Refresh
Set pGxObject2 = pEnumGxObject.Next
Loop
End Sub
... View more
02-19-2014
02:01 AM
|
0
|
0
|
1273
|
|
POST
|
OK obvious first question to ask: does the addin extension onLoad run when you open ArcMap and then your MXD?
... View more
02-03-2014
10:17 AM
|
0
|
0
|
2835
|