From Learning MicroStation VBA
The Standards Checker helps keep our files in line with established standards. Using this functionality as it is installed with MicroStation can do a fairly good job performing basic standards checking add the power and flexibility of VBA and nothing can hold us down.
First, you should note that unhandled errors that occur in your standards checker routines can cause severe errors. Some may even shut down MicroStation completely. So, you need to take care when working with standards checker code. Make sure to save your VBA Projects often and verify that any DGN files open in MicroStation are also saved.
Basics of Implementing the Standards Checker
Implement the Standards Checker by using the IStandardsChecker Interface. As with other interfaces we have implemented, use a class module and write your code within events.
'General DeclarationsImplements IStandardsChecker Private Sub IStandardsChecker_AddedCheckerToStandardsCheckerApps( _ ByVal ApplicationXMLNode As Object) End Sub Private Property Get IStandardsChecker_CallForEachModel() As Boolean End Property Private Sub IStandardsChecker_CreateSettings() End Sub Private Sub IStandardsChecker_DeleteSettings() End Sub Private Property Get IStandardsChecker_Description() As String End Property Private Property Get IStandardsChecker_DialogString() As String End PropertyPrivate Sub IStandardsChecker_EditSettings(ByVal _ IsReadOnly As Boolean)End Sub ...
Products & Services
Topics of Interest
We added references to things such as the "Microsoft Scripting Runtime," "Microsoft ActiveX Data Objects," "Microsoft CDO for Windows 2000" and so forth. When we did this, we had instant access to...
VBA is not just for programmers and not just for MicroStation users . it is a powerful tool for CAD Managers as well. Using VBA for Maintaining Standards Because standards differ from company to...
These next four chapters continue with responding to events in MicroStation beginning with the IAttachmentEvents interface. Five events are exposed. The IAttachmentEvents Interface Let's create...
Providing User Feedback and Information Earlier in this chapter we learned how to provide the user feedback and information through the use of the status bar area in MicroStation. If we look at the...
The last interface exposing MicroStation events that we will look at in this book is the "Change Track Events" interface which exposes four events: BeginUndoRedo, ElementChanged, FinishUndoRedo, and...