| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 6 年前 | ||
| 6 年前 | ||
| 9 年前 | ||
| 6 年前 | ||
| 6 年前 |
View CAD data in a MapControl
This sample provides a stand-alone application containing a MapControl that can be used to view computer-aided design (CAD) data. When compiled, the application can be associated with the most common CAD file name extensions (.dxf, .dwg, and .dng) so that this will be the default application for opening files of these types. When opened, the application allows the user to view the data including the ability to zoom and pan.
Language: C#, VB
Subject: Controls
Organization: Esri, http://www.esri.com
Date: 10/17/2019
ArcObjects SDK: 10.8
Visual Studio: 2017, 2019
.NET Target Framework: 4.5
Resources
- ArcObjects .NET API Reference online
- Sample Data Download
- What's new
- Download the ArcObjects SDK for .Net from MyEsri.com
Usage
- Edit the CADFiles.REG file, replacing the two instances of the path to the sample executable to the actual path of the sample executable on your machine; for example, C:\Program Files\ArcGIS\DeveloperKit\Samples\ArcObjectsNET\MapControlCADViewer\CSharp\CADView.exe.
- Double-click this .reg file to merge its contents into the registry. Note that merging this data into the registry may overwrite existing file associations for these file types.
- Select any CAD file (.dxf, .dwg, or .dgn)—for example, in Windows Explorer—and right-click the file.
- Choose View. The application opens to display the CAD file you selected inside the MapControl.
- Zoom in on the CAD data by dragging a rectangle using the left mouse button and pan around using the right mouse button.
See Also
MapControl class
IMapControl2 interface
Licensing
| Development licensing | Deployment licensing |
|---|---|
| Engine Developer Kit | Engine |
| ArcGIS Desktop Basic | |
| ArcGIS Desktop Standard | |
| ArcGIS Desktop Advanced |