Create Schematic Folder (Schematics)
Summary
Creates a schematic folder in a schematic dataset or schematic folder.
Usage
-
The output schematic folder must not exist. (The Overwrite output of geoprocessing setting has no effect.)
Syntax
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 |
Code Sample
Create schematic folder and subfolder
Create a schematic folder
# Name: CreateSchematicFolder.py # Description: Create a schematic folder and subfolder # Author: ESRI # import system modules import arcpy msgNoLicenseAvailable = "Schematics license required" try: # Check out the ArcGIS Schematic extension licence if arcpy.CheckExtension("Schematics") == "Available": arcpy.CheckOutExtension("Schematics") else: raise Exception(msgNoLicenseAvailable) # Set environnement settings arcpy.OverWriteOutput = True arcpy.env.workspace = "C:\ArcGIS\ArcTutor\Schematics\Schematics_In_ArcMap\ElecDemo.gdb" # Process: CreateSchematicFolder to create a main root schematic folder arcpy.CreateSchematicFolder_schematics("ElecDemo", "MySchematicRootFolder") # Process: CreateSchematicFolder to create a sub schematic folder in the newly created main folder arcpy.CreateSchematicFolder_schematics("ElecDemo\MySchematicRootFolder", "MySchematicSubFolder") # Returns the schematic licence arcpy.CheckInExtension("Schematics") except Exception as exc: print exc
Environments
This tool does not use any geoprocessing environments
Related Topics
Licensing Information
ArcView: Requires Schematics
ArcEditor: Requires Schematics
ArcInfo: Requires Schematics
11/18/2010