Jan, DgnPlatform is a component of the MicroStation SDK, with a public, documented API. Pretty much any interaction with DgnFiles, models, or elements goes through DgnPlatform, if sometimes indirectly.
Artem, access violation indicates invalid (usually null) pointer. Please confirm there are no such pointers in your own code.
For example, you are missing a check on your DgnModelPtr before accessing it - have you confirmed that LoadModelById() returns non-null?
auto type = model->GetModelInfo().GetModelType();
Regards,
Paul
Artem, access violation indicates invalid (usually null) pointer. Please confirm there are no such pointers in your own code.
For example, you are missing a check on your DgnModelPtr before accessing it - have you confirmed that LoadModelById() returns non-null?
auto type = model->GetModelInfo().GetModelType();
Regards,
Paul