Create Schematic Folder (Schematics)

Resumen

Creates a schematic folder in a schematic dataset or schematic folder.

Uso

Sintaxis

CreateSchematicFolder_schematics (out_location, out_name)
ParámetroExplicaciónTipo de datos
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

Ejemplo de código

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

Entornos

Esta herramienta no utiliza ningún entorno de geoprocesamiento

Temas relacionados

Información de licencia

ArcView: Requiere Schematics
ArcEditor: Requiere Schematics
ArcInfo: Requiere Schematics

7/11/2012