Create Schematic Folder (Schematics) |
|
|
Release 9.3
Last modified December 23, 2008 |
Print all topics in : "Tools" |
Creates a schematic folder in a schematic dataset or schematic folder
Usage tips
The Output schematic folder may already exist, but in this case, it will be not re-created even if you are working with the Overwrite the outputs of geoprocessing operations option checked.
No environment settings affect this tool.
Command line syntax
An overview of the Command Line window
CreateSchematicFolder_schematics <out_location> <out_name>
| Parameter | Explanation | Data Type |
| <out_location> |
The schematic dataset or schematic folder in which the folder will be created. This container must already exist. |
Schematic Dataset |Schematic Folder |
| <out_name> |
Name of the output schematic folder. |
String |
workspace C:\ArcGIS\ArcTutor\Schematics\Schematics\ElecDemo.gdb CreateSchematicFolder_schematics ElecDemo MySchematicRootFolder CreateSchematicFolder_schematics ElecDemo\MySchematicRootFolder MySchematicSubFolder
Scripting syntax
About getting started with writing geoprocessing scripts
CreateSchematicFolder_schematics (out_location, out_name)
| Parameter | Explanation | Data Type |
| out_location (Required) |
The schematic dataset or schematic folder in which the folder will be created. This container must already exist. |
Schematic Dataset |Schematic Folder |
| out_name (Required) |
Name of the output schematic folder. |
String |
# Create the Geoprocessor object and set the environment
import arcgisscripting
msgNoLicenseAvailable = "Schematics license required"
gp = arcgisscripting.create()
try:
if gp.CheckExtension("Schematics") == "Available":
gp.CheckOutExtension("Schematics")
else:
raise "LicenseError"
except "LicenseError":
print msgNoLicenseAvailable
gp.OverWriteOutput = 1
# Local variables
workspace = "C:\ArcGIS\ArcTutor\Schematics\Schematics\ElecDemo.gdb"
# Set the current workspace
gp.workspace = workspace
# Process: CreateSchematicFolder to create a main root schematic folder
gp.CreateSchematicFolder_schematics("ElecDemo", "MySchematicRootFolder")
# Process: CreateSchematicFolder to create a sub schematic folder in the newly created main folder
gp.CreateSchematicFolder_schematics("ElecDemo\MySchematicRootFolder", "MySchematicSubFolder")