Create Schematic Folder (Schematics)
Récapitulatif
Creates a schematic folder in a schematic dataset or schematic folder.
Utilisation
-
The output schematic folder must not exist. (The Overwrite output of geoprocessing setting has no effect.)
Syntaxe
CreateSchematicFolder_schematics (out_location, out_name)
| Paramètre | Explication | Type de données |
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 |
Exemple de code
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
Environnements
Cet outil n'utilise pas d'environnement de géotraitement
Rubriques connexes
Informations de licence
ArcView : Obligatoire Schematics
ArcEditor : Obligatoire Schematics
ArcInfo : Obligatoire Schematics
7/10/2012