|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IGeoProcessorSettings
Provides access to the properties/methods of the GeoProcessor settings.
The IGeoProcessorSettings interface provides access to the properties of the various GeoProcessor settings. Example settings are LogHistory and OverwriteOutput. Note: the latter is being accessed from the Environment Manager.
Method Summary | |
---|---|
boolean |
isAddOutputsToMap()
Indicates whether resulting output datasets should be added to the application display. |
boolean |
isLogHistory()
Indicates whether or not to log the execution of geoprocessing tools. |
boolean |
isOverwriteOutput()
Indicates whether output datasets should be overwritten when executing geoprocessing tools. |
boolean |
isShowModelBuilderPrompts()
Indicates whether to prompt the user when connecting elements in ModelBuilder if there is more than one possible connection. |
boolean |
isTemporaryMapLayers()
Indicates whether new map layers are temporary by default. |
void |
setAddOutputsToMap(boolean addToMap)
Indicates whether resulting output datasets should be added to the application display. |
void |
setLogHistory(boolean logHistory)
Indicates whether or not to log the execution of geoprocessing tools. |
void |
setOverwriteOutput(boolean overwriteOutput)
Indicates whether output datasets should be overwritten when executing geoprocessing tools. |
void |
setShowModelBuilderPrompts(boolean showPrompts)
Indicates whether to prompt the user when connecting elements in ModelBuilder if there is more than one possible connection. |
void |
setTemporaryMapLayers(boolean temporaryMapLayers)
Indicates whether new map layers are temporary by default. |
Method Detail |
---|
void setAddOutputsToMap(boolean addToMap) throws IOException, AutomationException
addToMap
- The addToMap (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isAddOutputsToMap() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setOverwriteOutput(boolean overwriteOutput) throws IOException, AutomationException
When creating a custom tool that writes output data, it is necessary to check the GeoProcessor setting OberwriteOutput. A code sample is included below on how to do this.
overwriteOutput
- The overwriteOutput (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isOverwriteOutput() throws IOException, AutomationException
The OutputOverwrite property determines if output created by a function execution will be overwritten by subsequent function executions. A code sample to check the OutputOverwrite setting is included below.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setTemporaryMapLayers(boolean temporaryMapLayers) throws IOException, AutomationException
temporaryMapLayers
- The temporaryMapLayers (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isTemporaryMapLayers() throws IOException, AutomationException
The TemporaryMapLayer property indicates if a new map layer is by default temporary data or not.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setShowModelBuilderPrompts(boolean showPrompts) throws IOException, AutomationException
showPrompts
- The showPrompts (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isShowModelBuilderPrompts() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setLogHistory(boolean logHistory) throws IOException, AutomationException
logHistory
- The logHistory (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isLogHistory() throws IOException, AutomationException
Having a log of function executions can be useful. The LogHistory porperty checks if the setting is on or off.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |