Select to view content in your preferred language

How to open a DWG file in arcgis .NET sdk

440
1
06-20-2023 11:35 PM
AbdelmounaimNejjari
New Contributor

Dear community,

I want to open a DWG file in arcgis .NET sdk, I also want to retrieve all symbols from the DWG file, is that possible? are there any resources for that?

Tags (3)
1 Reply
MichaelSnook
Frequent Contributor

Quick sample:

 

 

Uri uri = new Uri(@"c:\path\to\your\file.dwg\Polyline"); //(polyline for instance)

LayerFactory.Instance.CreateLayer(uri, MapView.Active.Map);