com.esri.arcgis.geoprocessing.tools.conversiontools
Class ImportCADAnnotation
java.lang.Object
com.esri.arcgis.geoprocessing.AbstractGPTool
com.esri.arcgis.geoprocessing.tools.conversiontools.ImportCADAnnotation
- All Implemented Interfaces:
- GPTool
public class ImportCADAnnotation
- extends AbstractGPTool
Converts a collection of CAD annotation features to geodatabase annotation. You can convert each level to individual annotation classes or merge them into a single class. Also, if you choose map layers as input, the level and font overrides will be honored.
The Import CAD Annotation tool is contained in the Conversion Tools tool box.
Usage tips:
- The conversion requires an so it may not be opened by another application. Output written to ArcSDE geodatabases will not be versioned.
- You can convert each CAD drawing layer to individual annotation classes or merge them into a single class. Also, if you choose map layers as input, the drawing layers and font overrides will be honored.
- Choose a reference scale that is roughly equal to the scale at which the annotation will normally be displayed. You can think of the reference scale as "freezing" the symbol and text sizes to a particular map scale. When viewing the map, the symbol and text sizes change depending on the viewing scale. Symbols and text will appear larger as you zoom in (the current map scale is larger than the reference scale) and smaller when you zoom out (the current map scale is smaller than the reference scale).
- If you select CAD annotation features and/or use a definition query, only those features that are selected and visible will be converted.
- If you check the option to require symbols to be selected from the symbol table, newly created or updated annotation features must reference one of the predefined symbols in the collection; the symbol cannot be stored inline. When unchecked, you may store any type of annotation (including graphics) in the annotation feature class.
- Annotation that is feature-linked is associated with a specific feature in another feature class in the geodatabase. If checked, when you create the output annotation feature class, a relationship class will be automatically generated as well. This relationship class defines the relationship between the annotation and the features and enables you to define and customize this relationship. It will not establish the links between features and annotation. That will have to be done within the ArcMap Editor.
Constructor Summary |
ImportCADAnnotation()
Creates the Import CAD Annotation tool with defaults. |
ImportCADAnnotation(java.lang.Object inputFeatures,
java.lang.Object outputFeatureclass,
double referenceScale)
Creates the Import CAD Annotation tool with the required parameters. |
Method Summary |
java.lang.String |
getCreateAnnotationWhenFeatureAdded()
Returns the Create annotation when new features are added (Feature-linked only) parameter of this tool . |
java.lang.String |
getFeatureLinked()
Returns the Feature-linked parameter of this tool . |
java.lang.Object |
getInputFeatures()
Returns the Input features parameter of this tool . |
java.lang.Object |
getLinkedFeatureClass()
Returns the Linked feature class parameter of this tool . |
java.lang.String |
getMatchSymbolsFromFirstInput()
Returns the Match symbols from first input parameter of this tool . |
java.lang.Object |
getOutputFeatureclass()
Returns the Output feature class parameter of this tool . |
double |
getReferenceScale()
Returns the Reference scale parameter of this tool . |
java.lang.String |
getRequireSymbolFromTable()
Returns the Require symbols to be selected from the symbol table parameter of this tool . |
java.lang.String |
getToolboxAlias()
Returns the alias of the tool box containing this tool. |
java.lang.String |
getToolboxName()
Returns the name of the tool box containing this tool. |
java.lang.String |
getToolName()
Returns the name of this tool. |
java.lang.String |
getUpdateAnnotationWhenFeatureModified()
Returns the Update annotation when the shape of the linked feature is modified (Feature-linked only) parameter of this tool . |
java.lang.String |
getUseLevels()
Returns the Create annotation classes from levels parameter of this tool . |
void |
setCreateAnnotationWhenFeatureAdded(java.lang.String createAnnotationWhenFeatureAdded)
Sets the Create annotation when new features are added (Feature-linked only) parameter of this tool . |
void |
setFeatureLinked(java.lang.String featureLinked)
Sets the Feature-linked parameter of this tool . |
void |
setInputFeatures(java.lang.Object inputFeatures)
Sets the Input features parameter of this tool . |
void |
setLinkedFeatureClass(java.lang.Object linkedFeatureClass)
Sets the Linked feature class parameter of this tool . |
void |
setMatchSymbolsFromFirstInput(java.lang.String matchSymbolsFromFirstInput)
Sets the Match symbols from first input parameter of this tool . |
void |
setOutputFeatureclass(java.lang.Object outputFeatureclass)
Sets the Output feature class parameter of this tool . |
void |
setReferenceScale(double referenceScale)
Sets the Reference scale parameter of this tool . |
void |
setRequireSymbolFromTable(java.lang.String requireSymbolFromTable)
Sets the Require symbols to be selected from the symbol table parameter of this tool . |
void |
setUpdateAnnotationWhenFeatureModified(java.lang.String updateAnnotationWhenFeatureModified)
Sets the Update annotation when the shape of the linked feature is modified (Feature-linked only) parameter of this tool . |
void |
setUseLevels(java.lang.String useLevels)
Sets the Create annotation classes from levels parameter of this tool . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ImportCADAnnotation
public ImportCADAnnotation()
- Creates the Import CAD Annotation tool with defaults.
Initializes the array of tool parameters with the default values specified when the tool was created.
ImportCADAnnotation
public ImportCADAnnotation(java.lang.Object inputFeatures,
java.lang.Object outputFeatureclass,
double referenceScale)
- Creates the Import CAD Annotation tool with the required parameters.
Initializes the array of tool parameters with the values as specified for the required parameters and with the default values for the other parameters.
- Parameters:
inputFeatures
- the CAD annotation features that you want to convert to geodatabase annotation. If you choose a CAD annotation layer in ArcMap, the following properties of that layer will be honored during the conversion:outputFeatureclass
- the geodatabase annotation feature class to which you want to convert CAD annotation.referenceScale
- enter the scale to use as a reference for the annotation. This sets the scale to which all symbol and text sizes in the annotation will be made relative.
getInputFeatures
public java.lang.Object getInputFeatures()
- Returns the Input features parameter of this tool .
This parameter is the CAD annotation features that you want to convert to geodatabase annotation. If you choose a CAD annotation layer in ArcMap, the following properties of that layer will be honored during the conversion:
This is a required parameter.
- Returns:
- the Input features
setInputFeatures
public void setInputFeatures(java.lang.Object inputFeatures)
- Sets the Input features parameter of this tool .
This parameter is the CAD annotation features that you want to convert to geodatabase annotation. If you choose a CAD annotation layer in ArcMap, the following properties of that layer will be honored during the conversion:
This is a required parameter.
- Parameters:
inputFeatures
- the CAD annotation features that you want to convert to geodatabase annotation. If you choose a CAD annotation layer in ArcMap, the following properties of that layer will be honored during the conversion:
getOutputFeatureclass
public java.lang.Object getOutputFeatureclass()
- Returns the Output feature class parameter of this tool .
This parameter is the geodatabase annotation feature class to which you want to convert CAD annotation.
This is a required parameter.
- Returns:
- the Output feature class
setOutputFeatureclass
public void setOutputFeatureclass(java.lang.Object outputFeatureclass)
- Sets the Output feature class parameter of this tool .
This parameter is the geodatabase annotation feature class to which you want to convert CAD annotation.
This is a required parameter.
- Parameters:
outputFeatureclass
- the geodatabase annotation feature class to which you want to convert CAD annotation.
getReferenceScale
public double getReferenceScale()
- Returns the Reference scale parameter of this tool .
This parameter is enter the scale to use as a reference for the annotation. This sets the scale to which all symbol and text sizes in the annotation will be made relative.
This is a required parameter.
- Returns:
- the Reference scale
setReferenceScale
public void setReferenceScale(double referenceScale)
- Sets the Reference scale parameter of this tool .
This parameter is enter the scale to use as a reference for the annotation. This sets the scale to which all symbol and text sizes in the annotation will be made relative.
This is a required parameter.
- Parameters:
referenceScale
- enter the scale to use as a reference for the annotation. This sets the scale to which all symbol and text sizes in the annotation will be made relative.
getUseLevels
public java.lang.String getUseLevels()
- Returns the Create annotation classes from levels parameter of this tool .
This parameter is this parameter is only available with Standard and Advanced licenses. specify whether all CAD drawing layers or levels will be converted to annotation classes within the feature class.
This is an optional parameter.
- Returns:
- the Create annotation classes from levels
setUseLevels
public void setUseLevels(java.lang.String useLevels)
- Sets the Create annotation classes from levels parameter of this tool .
This parameter is this parameter is only available with Standard and Advanced licenses. specify whether all CAD drawing layers or levels will be converted to annotation classes within the feature class.
This is an optional parameter.
- Parameters:
useLevels
- this parameter is only available with Standard and Advanced licenses. specify whether all CAD drawing layers or levels will be converted to annotation classes within the feature class.
getMatchSymbolsFromFirstInput
public java.lang.String getMatchSymbolsFromFirstInput()
- Returns the Match symbols from first input parameter of this tool .
This parameter is if you are converting CAD annotation from more than one drawing file and need to substitute the font properties for a symbol and apply that to all the input features, you can use this option.
This is an optional parameter.
- Returns:
- the Match symbols from first input
setMatchSymbolsFromFirstInput
public void setMatchSymbolsFromFirstInput(java.lang.String matchSymbolsFromFirstInput)
- Sets the Match symbols from first input parameter of this tool .
This parameter is if you are converting CAD annotation from more than one drawing file and need to substitute the font properties for a symbol and apply that to all the input features, you can use this option.
This is an optional parameter.
- Parameters:
matchSymbolsFromFirstInput
- if you are converting CAD annotation from more than one drawing file and need to substitute the font properties for a symbol and apply that to all the input features, you can use this option.
getRequireSymbolFromTable
public java.lang.String getRequireSymbolFromTable()
- Returns the Require symbols to be selected from the symbol table parameter of this tool .
This parameter is specify if the output annotation features will reference a symbol stored in the symbol collection for the feature class.
This is an optional parameter.
- Returns:
- the Require symbols to be selected from the symbol table
setRequireSymbolFromTable
public void setRequireSymbolFromTable(java.lang.String requireSymbolFromTable)
- Sets the Require symbols to be selected from the symbol table parameter of this tool .
This parameter is specify if the output annotation features will reference a symbol stored in the symbol collection for the feature class.
This is an optional parameter.
- Parameters:
requireSymbolFromTable
- specify if the output annotation features will reference a symbol stored in the symbol collection for the feature class.
getFeatureLinked
public java.lang.String getFeatureLinked()
- Returns the Feature-linked parameter of this tool .
This parameter is this parameter is only available with Standard and Advanced licenses. choose whether the output annotation feature class will be linked to the features in another feature class. The feature-linked option will not be available with an Basic license.
This is an optional parameter.
- Returns:
- the Feature-linked
setFeatureLinked
public void setFeatureLinked(java.lang.String featureLinked)
- Sets the Feature-linked parameter of this tool .
This parameter is this parameter is only available with Standard and Advanced licenses. choose whether the output annotation feature class will be linked to the features in another feature class. The feature-linked option will not be available with an Basic license.
This is an optional parameter.
- Parameters:
featureLinked
- this parameter is only available with Standard and Advanced licenses. choose whether the output annotation feature class will be linked to the features in another feature class. The feature-linked option will not be available with an Basic license.
getLinkedFeatureClass
public java.lang.Object getLinkedFeatureClass()
- Returns the Linked feature class parameter of this tool .
This parameter is this parameter is only available with Standard and Advanced licenses. the feature class to which you are linking annotation features. The feature class must be a point, line, or polygon feature class. If converting annotation into ArcSDE, the link feature class must not be registered as versioned. this option is only available if you choose FEATURE_LINKED for the previous parameter.
This is an optional parameter.
- Returns:
- the Linked feature class
setLinkedFeatureClass
public void setLinkedFeatureClass(java.lang.Object linkedFeatureClass)
- Sets the Linked feature class parameter of this tool .
This parameter is this parameter is only available with Standard and Advanced licenses. the feature class to which you are linking annotation features. The feature class must be a point, line, or polygon feature class. If converting annotation into ArcSDE, the link feature class must not be registered as versioned. this option is only available if you choose FEATURE_LINKED for the previous parameter.
This is an optional parameter.
- Parameters:
linkedFeatureClass
- this parameter is only available with Standard and Advanced licenses. the feature class to which you are linking annotation features. The feature class must be a point, line, or polygon feature class. If converting annotation into ArcSDE, the link feature class must not be registered as versioned. this option is only available if you choose FEATURE_LINKED for the previous parameter.
getCreateAnnotationWhenFeatureAdded
public java.lang.String getCreateAnnotationWhenFeatureAdded()
- Returns the Create annotation when new features are added (Feature-linked only) parameter of this tool .
This parameter is this parameter is only available with Standard and Advanced licenses. specify whether new annotation will be generated when you add new features to the feature class to which this annotation feature class is linked. this option is only available if you choose FEATURE_LINKED for the Feature-linked parameter and specify a Linked Feature Class.
This is an optional parameter.
- Returns:
- the Create annotation when new features are added (Feature-linked only)
setCreateAnnotationWhenFeatureAdded
public void setCreateAnnotationWhenFeatureAdded(java.lang.String createAnnotationWhenFeatureAdded)
- Sets the Create annotation when new features are added (Feature-linked only) parameter of this tool .
This parameter is this parameter is only available with Standard and Advanced licenses. specify whether new annotation will be generated when you add new features to the feature class to which this annotation feature class is linked. this option is only available if you choose FEATURE_LINKED for the Feature-linked parameter and specify a Linked Feature Class.
This is an optional parameter.
- Parameters:
createAnnotationWhenFeatureAdded
- this parameter is only available with Standard and Advanced licenses. specify whether new annotation will be generated when you add new features to the feature class to which this annotation feature class is linked. this option is only available if you choose FEATURE_LINKED for the Feature-linked parameter and specify a Linked Feature Class.
getUpdateAnnotationWhenFeatureModified
public java.lang.String getUpdateAnnotationWhenFeatureModified()
- Returns the Update annotation when the shape of the linked feature is modified (Feature-linked only) parameter of this tool .
This parameter is this parameter is only available with Standard and Advanced licenses. specify whether to automatically update the placement of annotation when you edit features in the feature class to which this annotation feature class is linked. this option is only available if you choose FEATURE_LINKED for the Feature-linked parameter and specify a Linked Feature Class.
This is an optional parameter.
- Returns:
- the Update annotation when the shape of the linked feature is modified (Feature-linked only)
setUpdateAnnotationWhenFeatureModified
public void setUpdateAnnotationWhenFeatureModified(java.lang.String updateAnnotationWhenFeatureModified)
- Sets the Update annotation when the shape of the linked feature is modified (Feature-linked only) parameter of this tool .
This parameter is this parameter is only available with Standard and Advanced licenses. specify whether to automatically update the placement of annotation when you edit features in the feature class to which this annotation feature class is linked. this option is only available if you choose FEATURE_LINKED for the Feature-linked parameter and specify a Linked Feature Class.
This is an optional parameter.
- Parameters:
updateAnnotationWhenFeatureModified
- this parameter is only available with Standard and Advanced licenses. specify whether to automatically update the placement of annotation when you edit features in the feature class to which this annotation feature class is linked. this option is only available if you choose FEATURE_LINKED for the Feature-linked parameter and specify a Linked Feature Class.
getToolName
public java.lang.String getToolName()
- Returns the name of this tool.
- Returns:
- the tool name
getToolboxName
public java.lang.String getToolboxName()
- Returns the name of the tool box containing this tool.
- Returns:
- the tool box name
getToolboxAlias
public java.lang.String getToolboxAlias()
- Returns the alias of the tool box containing this tool.
- Returns:
- the tool box alias