taibc

Open Dgn file:Error HRESULT E_FAIL has been returned from a call to a COM component ?

Discussion created by taibc on Jan 22, 2014
Latest reply on Apr 2, 2018 by xtian79
Hi everyone,

I am trying open and read Dgn file. But, I got the error when using below codes:

 IWorkspaceFactory factory = new CadWorkspaceFactoryClass ();

 IWorkspace workspace = factory.OpenFromFile(fileName, 0); // Throw exception


Do you know why ?

I attached the dgn file.

Thanks and regards,

Tai

Attachments

Outcomes