How to use
See How to use ArcGIS samples for help on compiling, setting up the debugger, and running the sample. If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.
- 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\\DeveloperKit10.0\\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.
AssemblyInfo.cs | Assembly information. |
CADView.cs | Form file. |
AssemblyInfo.vb | Assembly information. |
CADView.vb | Form file. |
Download the files for all languages
See Also:
MapControl classIMapControl2 interface
Development licensing | Deployment licensing |
---|---|
Engine Developer Kit | Engine Runtime |
ArcView | |
ArcEditor | |
ArcInfo |