Hi together,
I've noticed some strange behaviour when I activate and deactivate a reference file and want to figure out if it's maybe a bug. I'am using MicroStation V8i SS3 with a master.deg with two references (ref.dgn and b.dgn). I do the following steps:
after step 1:
after step 4:
Do I have to refresh something? If I don't run the Sub before activating and deactivating the object is fine too.
Kind regards
Marcel
Hi Marcel,
it seems COM API is not updated fully when activate / deactivate process is finished.
It seems the problem is the same for V8i and CONNECT Edition, I am not aware of any simple solution or workaround.
Artur Goldsweer would you be so kind and to check this issue?
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Hi Jan and Marcel,
I can confirm this is a known issue, reported for both V8i and CONNECT Edition, and the Defect # 372192 is filed to address this issue.A known workaround is to execute the keyin "newfile" before trying to read attachment objects using VBA. This keyin also may be added to the VBA code to make sure no runtime error occurs while reading attachment properties.
Best regards,
Artur
Answer Verified By: Marcel Pradel
Hi Jan and Artur,
thanks for the very quick replies. So I tried to workaround it with the newfile keyin and it worked. Unfortuantely the design file is re-opened. With big files this is not what you expect if you use activate/deactivate references. So I tried the keyin "reference reload force abc.dgn" and it seems to work as well. Slow for big references but even faster as newfile.
Hope there will be a fix for that.
Kind regardsMarcel
Hi Marcel Pradel,
I have updated the defect with your additional details/suggestion that certainly may help until the defect is resolved. I have also requested to bump up the priority to ensure this will certainly be addressed in MicroStation CONNECT sooner than later if affected.
Thank you,Bob
Thank you very much Robert, I appreciate that.