Some functions to set options without using the ET Surface interface.
Parameters
| Expression | Explanation |
|---|---|
| Function Name | UseProgressDialog - needs to be executed only when you want to change the current value set. |
| <Use> | A Boolean indicating whether a progress dialog to be used during the execution of the functions. |
| Function Name | SetTempFolder - needs to be executed only when you want to change the current value set. |
| <Path> | A String specifying the full path to the temp folder to be used by ET GeoWizards. Must exist and the user must have write access to it. |
| Function Name | IsLicensed - indicates whether ET GeoWizards is licensed on the machine. |
| Function Name | ReleaseLicense - releases the concurrent license used. |
| Function Name | WriteLogEntry - writes an entry in the ET GeoWizards log file. |
| <Message> | A String - the message. |
| <Function> | A String - in the ET Geowizards functions this is used to state the function name. |
ETSPath used in the table below is the full path to ETSRun.exe (E.G. "C:\Program Files\ETSpatialTechniques\ETSurface\ETSRun.exe")
| Language | Syntax |
|---|---|
| Python | subprocess.call([ETSPath, "UseProgressDialog", "Use"]) |
| .NET using ETSPath.exe | StartInfo.FileName = ETSPath StartInfo.Arguments = "UseProgressDialog" "Use" |
| .NET using ETSOutX.dll | UseProgressDialog(Use) |
| Language | Syntax |
|---|---|
| Python | subprocess.call([ETSPath, "SetTempFolder", "Path"]) |
| .NET using ETSPath.exe | StartInfo.FileName = ETSPath StartInfo.Arguments = "SetTempFolder" "Path" |
| .NET using ETSOutX.dll | SetTempFolder(Path) |
| Language | Syntax |
|---|---|
| Python | subprocess.call([ETSPath, "IsLicensed"]) |
| .NET using ETSPath.exe | StartInfo.FileName = ETSPath StartInfo.Arguments = "IsLicensed" |
| .NET using ETSOutX.dll | IsLicensed |
| Language | Syntax |
|---|---|
| Python | subprocess.call([ETSPath, "ReleaseLicense"]) |
| .NET using ETSPath.exe | StartInfo.FileName = ETSPath StartInfo.Arguments = "ReleaseLicense" |
| .NET using ETSOutX.dll | ReleaseLicense |
| Language | Syntax |
|---|---|
| Python | subprocess.call([ETSPath, "WriteLogEntry", "Message", "Function"]) |
| .NET using ETSPath.exe | StartInfo.FileName = ETSPath StartInfo.Arguments = "WriteLogEntry" "Message" "Function" |
| .NET using ETSOutX.dll | WriteLogEntry(Message, Function) |
Notes:
<> - required parameter
{} - optional parameter
The argument separator for StartInfo.Arguments is space. If a string might contain a space, you need to double quote it.