Quantcast
Channel: Forums - ArcObjects SDKs
Viewing all articles
Browse latest Browse all 1374

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

$
0
0
Hi everyone,

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

Code:

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
Attached Files

Viewing all articles
Browse latest Browse all 1374

Trending Articles