[Mstn CE U17-2 VBA] SetAttachNameDeferred still not working

Hi,

In Microstation CE (from beta versions to Update 17-2), the Reference File SetAttachNameDeferred command does not always work.  Does anyone have a work-around?  What I have to do is run the exact same vba routine in Microstation V8i (SS3) to finish what Microstation CE Update 17-2 can not do. 

I have reported this issue at least three times.  1) during the beta phase(s), 2) in 2018 (Defect #954390) as an SR, and 3) in 2020 (Defect # 1115267) after Defect #954390 was marked "WAD", but everyone involved sees that it is not working correctly.

--Thanks,
--Robert Arnold

Parents
  • Hi Robert,

    the Reference File SetAttachNameDeferred command does not always work

    What exactly does it mean "does not always work"? It's hard to guess where the problem can be when there is literally no information about situation / context shared.

    What I have to do is run the exact same vba routine in Microstation V8i (SS3) to finish what Microstation CE Update 17-2 can not do. 

    What your macro does? Maybe a workaround can be discussed, when the method does not work right.

    Regards,

      Jan

  • Hi Jan,

    I assumed that anyone who had a work-around would know what the issue is.

    One of my usual tasks is to open a dwg file, which came from an outside source, save as a dgn file, and then rename all the dwg attachments to dgn attachments, possibly before those files have been converted.  With the SetAttachNameDeferred method, Microstation changes the referenced file name without attempting to reload the reference file.  In Microstation V8i SS3, this works fine.  In Microstation CE, this works fine some of the time.  Other times, the reference dialog box displays the change--ie all referenced files have the dgn extension, but when you reopen the master file, the dwg file(s) are still attached, even if the dgn file is available.

    This error is not master-file dependent.  Some references will hold their dgn names, and other files will revert to the dwg name.  I believe that this error has to do with characters in the dwg file name.  I don't remember each of the specific cases, but they should be listed in the bug reports mentioned.

    --Thanks,
    --Robert Arnold

Reply
  • Hi Jan,

    I assumed that anyone who had a work-around would know what the issue is.

    One of my usual tasks is to open a dwg file, which came from an outside source, save as a dgn file, and then rename all the dwg attachments to dgn attachments, possibly before those files have been converted.  With the SetAttachNameDeferred method, Microstation changes the referenced file name without attempting to reload the reference file.  In Microstation V8i SS3, this works fine.  In Microstation CE, this works fine some of the time.  Other times, the reference dialog box displays the change--ie all referenced files have the dgn extension, but when you reopen the master file, the dwg file(s) are still attached, even if the dgn file is available.

    This error is not master-file dependent.  Some references will hold their dgn names, and other files will revert to the dwg name.  I believe that this error has to do with characters in the dwg file name.  I don't remember each of the specific cases, but they should be listed in the bug reports mentioned.

    --Thanks,
    --Robert Arnold

Children
No Data