How to open a DWG file in arcgis .NET sdk

281
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
Occasional Contributor III

Quick sample:

 

 

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

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