I am an intern working at Bentley and I have been given a task. I have a set of i.dgn files and what I want to do is read all the files one by one and extract their schemas and other information such as items present. I have Microstation Connect edition and want to use C# NET as that is the latest API present. With my limited information, all I know is that I have to create a MDL app that will go through all the files and extract the mentioned information. I need to know what references that I need to add in the project to access the data and the function calls to do this task . Some examples that can help me reaching my goal would be great. Thanks
I agree with Mary that it would be better to ask in MicroStation Programming forum. It's not necessary to post the same question again there, you should be able to move this discussion to a new forum. Check whether such action is available under More menu.
Abdul Hannan said:With my limited information, all I know is that I have to create a MDL app
Because "MDL apps" tells nothing (originally MDL was development language, later it was API and now it's not quite clear what "MDL" is ;-), more precisely is to say you have to create C# MicroStation addin. It specifies exactly you will create managed code in C# (because it's you preference) and the entry point will be not main() method but class derived from Addin class, so MicroStation knows how to load and start such code.
Abdul Hannan said:Some examples that can help me reaching my goal would be great.
Study examples delivered with MicroStation SDK. The most of them are in C++, but some are C#, so they demonstrate how to create MicroStation addin. Because .i.dgn format was "first iteration" in i-model concept, you should study DgnECExample example to learn how to work with EC data.
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Thank you for the reply, could you post a link where these MicrosStation SDK examples are present.
Abdul Hannan said:could you post a link where these MicrosStation SDK examples are present.
MicroStation SDK can be downloaded from Fulfillment Center. BDN membership (access rights) are required to download MicroStation SDK.