描述
Removes the fields associated with visual specifications from the selected feature layers and feature classes.
使用
You can add tables, table views, feature classes, or feature layers to the Input Features list. Each entry must have representation rule IDs or calculated field values defined.
You must specify a workspace that contains the visual specifications in the Visual Specification Workspace parameter.
Once you have set Visual Specification Workspace, the Visual Specifications list will populate. Use this list to select the visual specifications that you would like to remove from the Input Features list.
This tool removes all fields associated with the calculated representations and text strings from the feature layers and feature classes.
语法
arcpy.production.DropVisualSpecifications(in_features, vs_workspace, specifications)
参数 | 说明 | 数据类型 |
in_features [in_features,...] | The feature layers, feature classes, or tables for which you want to remove the fields associated with visual specifications. | Table View |
vs_workspace | The workspace containing the visual specifications table. The visual specification table can be stored in a personal, file, or an enterprise geodatabase. | Workspace |
specifications [specifications,...] | The visual specifications whose fields you want to remove from the selected feature layers and feature classes. | String |
代码示例
DropVisualSpecifications example (Python window)
The following Python window script demonstrates how to use the DropVisualSpecifications tool.
import arcpy
# set gp environment
arcpy.env.workspace="c:/data"
# input parameter variables
roadL = "Austin.gdb/TopographicMap/RoadL"
productLibrary = "ProductLibrary.gdb"
visualspec="'TopoMap 1:24,000 :: TopoMap 1:24,000 Specification'"
# drop Visual Specifications on RoadL
arcpy.DropVisualSpecifications_production(roadL, productLibrary, visualspec)
环境
许可信息
- Basic: 否
- Standard: 需要 Production Mapping
- Advanced: 需要 Production Mapping