How to run BMRs when opening files?.
Unlike macros link, BMRs cannot be configured to AutoLoad through configuration variable MS_INITMACROS or MS_DGNMACROS.
This requirement can be handled in VBA with the key-in “macro play macroName” to run BMRs in File Open Or File Close events. Check this link which has a sample VBA.
Code snippet…
Private Sub m_OpenCloseHooks_OnDesignFileOpened(ByVal DesignFileName As String) CadInputQueue.SendCommand “macro play macroName" End Sub Private Sub m_OpenCloseHooks_OnDesignFileClosed(ByVal DesignFileName As String) CadInputQueue.SendCommand “macro play macroName" End Sub