Create Schematic Folder (Schematics)
Zusammenfassung
Creates a schematic folder in a schematic dataset or schematic folder.
Verwendung
-
The output schematic folder must not exist. (The Overwrite output of geoprocessing setting has no effect.)
Syntax
CreateSchematicFolder_schematics (out_location, out_name)
Parameter | Erläuterung | Datentyp |
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 |
Codebeispiel
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
Umgebungen
Dieses Werkzeug verwendet keine Geoverarbeitungsumgebungen.
Verwandte Themen
Lizenzinformationen
ArcView: Erfordert Schematics
ArcEditor: Erfordert Schematics
ArcInfo: Erfordert Schematics
7/10/2012