Is there any way to substitute a custom New... program on the File menu of Open Roads Designer?
Do you mean is it possible to customize the options found in the backstage:
If so currently it is not possible for users to customize the options found here.
Yes, that's what I am referring to.
We have a VBA macro that we use to create new files so they follow our fine naming convention. We'd like to only allow New... to call our macro, either in the File "backstage" or within any Ribbon or QAT icons.
Charles (Chuck) Rheault CADD Manager
MDOT State Highway Administration
there are two issues in your question:
How to customize backstage (or QAT): As David wrote, the customization cannot be done by a user, because such tool is not available in MicroStation. But technically it's possible using XML (or rsc) configuration file that is described in MicroStation SDK documentation. Unfortunately explanation of backstage is missing, on the other hand because it's structured similarly to the rest of ribbon items definitions, so I guess it would be possible after some time invested into testing and playing with the file.
How to block / replace an item existing already in backstage (or ribbon): In my opinion it's even more complicated than how to customize something. The system how the whole ribbon (incl. backstage) is defined is pretty powerfull and complex, so it allows even to replace already existing definition by a new one (it's part of definitions conflic resolution mechanism). Mandatory part of the replacement definition is to know definition name of the existing definitions, but such list does not exist.
My conclusion is that it's good question, that probably can be done somehow from technical perspective, but not by user.
And in fact it's not the best solution available I guess, because when you will replace all New items in GUI, there will be "create drawing" key-in still available. Maybe (but it's also technically complicated) native code (MDL) application would monitor commands input queue and to block all detected "new file" commands. But it also cannot be done by user.
Labyrinth Technology | dev.notes() | cad.point
Could you use an AutoRun Macro that has a modal handler with a class that looks for a "New File" dialog that closes it automatically and then runs your macro? Not the cleanest solution, but may work.
Thanks for all the ideas. I'm a bit of a one-man-band right now, so I have to really pick and choose my battles. There are still a few issues in our New... replacement macro after converting it to 64bit VBA that need to be addressed, so anything not a simple fix will have to go onto my "Wish List" for future consideration.