I am trying to open Dgn File to get data. But I got the error: "Error HRESULT E_FAIL has been returned from a call to a COM component ?" when using OpenFromFile statement, please see my codes:
Type factoryType = Type.GetTypeFromProgID( "esriDataSourcesFile.CadWorkspaceFactory"); System.Object obj = Activator.CreateInstance(factoryType); IWorkspaceFactory factory = obj as IWorkspaceFactory; IFeatureWorkspace workspace = (IFeatureWorkspace )factory.OpenFromFile("C:\\DC7.dgn", 0); // Throw Exception
May you help me ?