Reference Origin & Master Origin

How to get the masterOrigin and referenceOrigin form Reference file attached in Master File in Microstation V8?

Parents Reply
  • How to get the masterOrigin and referenceOrigin form Reference file attached using MDL api

    There's a number of mdlRefFile_xxx functions.  You will find them documented in the MDL Function Reference help file.

    #include <refernce.h>
    #include <msreffil.fdf>
    
    ReferenceFile* refInfo = mdlRefFile_getInfo (attachment);
    // ReferenceFile includes several nested structs
    Ref_display* display = &refInfo->display;
    // Ref_display contains the master origin and reference origin in UORs
    DPoint3d masterOrigin = display->mast_org; 
    DPoint3d refOrigin = display->ref_org;  

     
    Regards, Jon Summers
    LA Solutions

Children