iTwin / itwinjs-core

Monorepo for iTwin.js Library
https://www.itwinjs.org
MIT License
600 stars 210 forks source link

can i open .dgn file by imodel.js #6

Closed asforever closed 5 years ago

asforever commented 5 years ago

like title

jan-slegr commented 5 years ago

Hi,

no, it's not possible. iModelJs is based on EC schema and BIS definitions, whereas DGN is proprietary implementation of Microsoft Compound File format.

It's possible to convert DGN into "BIS based description" using iModel Bridge(s).

With regards,

  Jan

asforever commented 5 years ago

thanks😊

wuyw1015 commented 5 years ago

Hi, can i read .imodel data by modeljs? ,are there some limitations in .imodel's version and ...?,i try to run" imodeljs/test-apps/simpleviewtest/", but the feedback below: image

and i can open .model by navicat premium image

jan-slegr commented 5 years ago

Hi @wuyw1015,

because the original question was about .dgn support, in my opinion it would be better to ask in a new post, because .dgn is not .imodel, so it's another question / issue.

In my opinion iModel 2 is supported only and older versions (1.5, 1.6) created by MicroStation and other products (as output from DgnDb convertor) are not supported. Based on #5 my assumption is that older imodel formats have to be converted / mapped using iModel Bridge.

@ColinKerr, would you be so kind and to confirm / disprove this? ;-)

With regards,

  Jan

wuyw1015 commented 5 years ago

@LabyrinthTechnology thx, are there any suggestions about the new issue new issue ?

ColinKerr commented 5 years ago

iModel.js only supports the iModel 2.0 file format, not versions 1.5 and 1.6.

Both questions are important and we are working on more complete responses, please bear with us.

jan-slegr commented 5 years ago

@ColinKerr

Both questions are important and we are working on more complete responses, please bear with us.

Thanks! 😄

If I have a wish, a transformation matrix / workflow explanation would be helpful.

Even a "simple" conversion flow DGN > (MicroStation publishing) > i-model > (DgnDB convertor) > DgnDb 1.5 or 1.6 > (Navigator / mobile apps / ...) is not well known.

Next step from DGN / i-model / DgnDb 1.x to iModel 2.0 is a natural question, as well as what SDK and API can be used for individual steps instead of the mentioned tools.

Regards,

Jan

roopsaini commented 5 years ago

The original question has been answered. This discussion now pertains to data conversion, which falls under #12 (marked as an enhancement).