com.esri.arcgis.geoprocessing.tools.conversiontools
Class ImportCADAnnotation

java.lang.Object
  extended by com.esri.arcgis.geoprocessing.AbstractGPTool
      extended by 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:


Field Summary
 
Fields inherited from class com.esri.arcgis.geoprocessing.AbstractGPTool
vals
 
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 com.esri.arcgis.geoprocessing.AbstractGPTool
getParameterValues, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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