创建逻辑示意图文件夹 (Schematics)

摘要

在逻辑示意图数据集或逻辑示意图文件夹中创建逻辑示意图文件夹。

用法

语法

CreateSchematicFolder_schematics (out_location, out_name)
参数说明数据类型
out_location

要在其中创建文件夹的逻辑示意图数据集或逻辑示意图文件夹。此容器必须已经存在。

Schematic Dataset;Schematic Folder
out_name

输出逻辑示意图文件夹的名称。

String

代码示例

创建逻辑示意图文件夹和子文件夹

创建逻辑示意图文件夹

# 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

环境

此工具不使用任何地理处理环境

相关主题

许可信息

ArcView: 需要 Schematics
ArcEditor: 需要 Schematics
ArcInfo: 需要 Schematics

7/10/2012