Can't open Dgn file when converting Dgn to Sde ?

350
0
01-22-2014 08:52 PM
Highlighted
by
Occasional Contributor II
Hi everyone,

I am trying open and read Dgn file. But, I got the error "Error HRESULT E_FAIL has been returned from a call to a COM component ?" when using below codes:


IWorkspaceFactory factory = new CadWorkspaceFactoryClass ();

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


May you help me fix this ?

Thanks and regards,

Tai
Tags (2)
Reply
0 Kudos
0 Replies