Hi,
I've just started looking to test what can be displayed in the title bar and I am finding that I am getting additional numbers with brackets after at the end of the information I want displayed. I'm running dual screens and the Left monitor by default has a (1) in the title bar and the right a (2). Now I'm getting (1) (2) (1) on the left and (1) (2) (1) (2) on the right but I cant figure out why these are appearing. I would prefer that none were visible at all if possible. The code I have been using is :
Public Sub hooks_OnDesignFileOpened(ByVal fileName As String) Dim UsersName As String Dim FullPath As String Const str_USTN_USERNAME As String = "$(_USTN_USERNAME)" Const str_DGNFILE As String = "$(_DGNFILE)" UsersName = ActiveWorkspace.ExpandConfigurationVariable(str_USTN_USERNAME) FullPath = ActiveWorkspace.ExpandConfigurationVariable(str_DGNFILE) Application.Caption = FullPath & " : " & UsersName & " : " Debug.Print "Application.Caption"End Sub
In addition to this:
Thanks
Hi I3loom,
I think when the macro OnProjectLoad is executing, the MicroStation's main window has not been initialized.
You can solve this probelm by following way:
1. Desgin a simple MDL application as a initapp.
2. In this MDL application, you send a command to the end of MicroStation's input queue, thus give MicroStation a chance to initialize and complete its start.
3. In this command function, you load your VBA project.
HTH, Yongan.Fu
Hi and thanks.
That all sounds very simple however I have zero programming experience and I have no idea how to go about creating an MDL app. I've just browsed through some MDL code examples in the programming wiki and it looks very confusing to someone not familiar with MDL.
Is there documentation provided that is suitable for someone in my position (basically MDL for dummies?) that explains the how to go about creating an MDL application i.e. well written example code that it fully explained similar to what Microsoft's Hey, Scripting Guy blog does so that someone trying to learn isn't going to be confused by the subject?
or
Is the documention provided by Bentley geared towards people who are familiar with programming?
If there's not then it likely I'm going to have to forget this entirely.