ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Data Namespace / CadDataset Class / OpenDataset<T> Method
The type of dataset to open.
The name of the dataset to open.
Version

OpenDataset<T> Method (CadDataset)
Gets a specific Dataset instance associated with name of type T in the CAD dataset. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public T OpenDataset<T>( 
   string name
)
where T: Dataset

Parameters

name
The name of the dataset to open.

Type Parameters

T
The type of dataset to open.

Return Value

A specific Dataset instance corresponding to type T.
Exceptions
ExceptionDescription
T is not currently supported as a dataset type (see DatasetType).
A geodatabase-related exception has occurred.
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also