I was trying to read a CAD feature class from a DWG file but could not find any Pro APIs related to it. Any help will be greatly appreciated!
Here is a code snippet to add a feature class in a CAD DWG file -
string url = @"E:\Data\CAD\Charlottesville\N1W1.dwg\Polyline"; //FeatureClass of a cad dwg fileUri uri = new Uri(url);await QueuedTask.Run(() => LayerFactory.Instance.CreateLayer(uri, MapView.Active.Map));
Thank you very much for your help. Is it possible to a CAD file without add it to Map control?
Do you mean Pro’s Map Control? Yes, should be no problem.
Retrieving data ...