com.esri.arcgis.datasourcesfile
Interface ICadDrawingLayers

All Superinterfaces:
Serializable
All Known Implementing Classes:
CadAnnotationLayer, CadFeatureLayer, CadLayer

public interface ICadDrawingLayers
extends Serializable

Provides access to properties that give information on the layers in the CAD drawing.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Method Summary
 int getDrawingLayerCount()
          The number of layers in the CAD drawing.
 String getDrawingLayerName(int index)
          The name of the CAD drawing layer at the specified index.
 boolean isDrawingLayerVisible(int index)
          Indicates if the specified CAD drawing layer visible in the CAD layer in ArcMap.
 boolean isOriginalDrawingLayerVisible(int index)
          Indicates if the specified CAD drawing layer visible in the CAD drawing itself.
 void setDrawingLayerVisible(int index, boolean visible)
          Indicates if the specified CAD drawing layer visible in the CAD layer in ArcMap.
 

Method Detail

getDrawingLayerCount

int getDrawingLayerCount()
                         throws IOException,
                                AutomationException
The number of layers in the CAD drawing.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Returns:
The count
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDrawingLayerName

String getDrawingLayerName(int index)
                           throws IOException,
                                  AutomationException
The name of the CAD drawing layer at the specified index.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
index - The index (in)
Returns:
The filePath
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isDrawingLayerVisible

boolean isDrawingLayerVisible(int index)
                              throws IOException,
                                     AutomationException
Indicates if the specified CAD drawing layer visible in the CAD layer in ArcMap.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
index - The index (in)
Returns:
The visible
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setDrawingLayerVisible

void setDrawingLayerVisible(int index,
                            boolean visible)
                            throws IOException,
                                   AutomationException
Indicates if the specified CAD drawing layer visible in the CAD layer in ArcMap.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
index - The index (in)
visible - The visible (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isOriginalDrawingLayerVisible

boolean isOriginalDrawingLayerVisible(int index)
                                      throws IOException,
                                             AutomationException
Indicates if the specified CAD drawing layer visible in the CAD drawing itself.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
index - The index (in)
Returns:
The visible
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.