Setting global linestyle scale on model reference in CONNECT

Hello guys, I have following problem. I cant find replacement in CONNECT version (Microstation CONNECT 15) for this snippet:

ReferenceFile * r = mdlRefFile_getInfo(dgnModelRef);
                r->display.fd_opts.globalLineStyleScales = REF_GLOBALLINESTYLESCALE_REFERENCE;

The remapper file, which is in SDK migration folder mentions DgnAttachment method GetGlobalLineStyleScales(), but the problem is I dont have it there and I want to set it, not get. Did i miss something? Thanks!

Parents Reply Children
  • I found solution! 

    mdlRefFile_setIntegerParameters(REF_GLOBALLINESTYLESCALE_REFERENCE, REFERENCE_GLOBALLINESTYLESCALES, attachment);
    Its part of MDL C API and I can´t believe I missed that before. I even managed to use the enum Bentley::DgnPlatform::RefGlobalLinestyleScale (i mean, I´m not sure how long will this old C approach work in CONNECT, but as for now im happy it works as expected!)

    Thank you guys for your time and help :-)

    Answer Verified By: Robert Hook