I'm trying to create a txt file to use with batch processor that will merge a reference and then detach the rest of the references. The commands to do this work fine except there is a prompt to click OK after both commands. Is there a command that can be used with batch processor that will dismiss or surpress the Alert dialog? Any help would be appreciated.
Thanks,
Unknown said:There is a prompt to click OK after both commands
Which command key-ins cause the prompt?
Regards, Jon Summers LA Solutions
I'm using the following commands:
reference merge border
reference detach all
Right... but this is going to be a batch process that a lot of different people will be using. I don't want to have checking the "Do not display again" another step to accomplish the batch process. It may be the only way but figured I would at least ask.
try and record a vba macro first do the the merge ( file name)
then keyin reference detach all and select the ok button ..( I just tried tried it and does record all steps including the accept)
you can then run this macro in your batch process..via the script command vba run ( vba project name) module name < FYI you have to name these.
I have run macros inside batch processor before and they work fine ...
Lorys
Started msnt work 1990 - Retired Nov 2022 ( oh boy am I old )
But was long time user V8iss10 (8.11.09.919) dabbler CE update 16 (10.16.00.80)
MicroStation user since 1990 Melbourne Australia.click link to PM me
Unknown said:try and record a VBA macro
Five gold stars!
Recording a VBA macro.
mine works perfect for me dont, I have to click dont show anymore, I only clicked ok once and it got recorded as VBA macro, try running inside batch processor...
did not add the merge ref as you'll need to edit the VBA macro your self
attached my vba macro here for you to try...
you need to just have one line in the batch processor file
VBA run { vbaproject name} macroname.subroutinename
and in the batch process you defined which files to process,
and it just reruns the vbamacro over and over on each file it opens no need to ok or never click choose never show again ( I hate doing that as it has impact)
detachAll.mvba