Reference Files Detach Question

 Hello

I'd like to detach ref files on dgn file indicated only by its name not  opening it and calling mdlRefFile_detach func.

Is it possible to open dgn file in background with mdlWorkDgn_openFile func. and than call another one to detach all ref files

on selected dgn file .

Regards

 

Parents
  • Greg:
    I'd like to detach ref files on dgn file indicated only by its name not opening it and calling mdlRefFile_detach function. Is it possible to open dgn file in background with mdlWorkDgn_openFile function and then call another one to detach all ref files on selected dgn file.

    The mdlRefFile_xxx functions all assume an active model reference. That is, there are no public functions such as these, which is what you would need to achieve your goal:

    
    mdlRefFile_attachCoincident (
    DgnModelRefP*  outModelRefP, 
    char const*    refFileName,
    DgnModelRefP*  hostP,
    ...
    );
    mdlRefFile_detach (
    DgnModelRefP      refModelP,
    DgnModelRefP      hostP
    );
    
    

    If you can run your MDL as an MS_INITAPPS, then you could work on the active model without showing any graphics to your user.

    Regards, Jon Summers
    LA Solutions

     
    Regards, Jon Summers
    LA Solutions

Reply
  • Greg:
    I'd like to detach ref files on dgn file indicated only by its name not opening it and calling mdlRefFile_detach function. Is it possible to open dgn file in background with mdlWorkDgn_openFile function and then call another one to detach all ref files on selected dgn file.

    The mdlRefFile_xxx functions all assume an active model reference. That is, there are no public functions such as these, which is what you would need to achieve your goal:

    
    mdlRefFile_attachCoincident (
    DgnModelRefP*  outModelRefP, 
    char const*    refFileName,
    DgnModelRefP*  hostP,
    ...
    );
    mdlRefFile_detach (
    DgnModelRefP      refModelP,
    DgnModelRefP      hostP
    );
    
    

    If you can run your MDL as an MS_INITAPPS, then you could work on the active model without showing any graphics to your user.

    Regards, Jon Summers
    LA Solutions

     
    Regards, Jon Summers
    LA Solutions

Children