Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Can you run a macro on Ustn files as a batch command ?

180 views
Skip to first unread message

Zach

unread,
Oct 24, 2001, 1:30:35 AM10/24/01
to
Does anybody know of a way to run a macro on all the microstation files in a
directory as a batch process?

Initially I thought I may be able to use MSBATCH, but it seems to me that it
can only be used for importing or exporting files? I only need to run a
macro.

Any help would be greatly appreciated


Thomas Strellen, TS Photogrammetrie und Geoinformatik

unread,
Oct 24, 2001, 10:17:24 AM10/24/01
to
...with these lines you can jump to another file an start a macro. You are
able to copy these lines insite the macro and so move from file to file.
This is a little work ...but it works!

Sub Main
MbeSendCommand "DIALOG OPENFILE "

MbeSendCommand "MDL COMMAND MGDSHOOK,fileList_setFilterCmd *.dgn"
MbeSendCommand "MDL COMMAND MGDSHOOK,fileList_setDirectoryCmd c:\path
to file..."
MbeSendCommand "MDL COMMAND MGDSHOOK,fileList_setFileNameCmd
filename.dgn"
MbeSendCommand "MBE1 CLOSEMODAL OK"

MbeSendKeyin "macro newmacro"
end sub


Patrick Pirtle

unread,
Oct 24, 2001, 10:27:51 AM10/24/01
to
We wrote another macro to do just this sort of thing. It allows you to select a macro, then select either a directory of DGNs or a text
file of DGN names on which to run the selected macro. Email me if you'd like a copy.

-----------------------------------------------------------------------
Patrick A. Pirtle E-mail: p...@skilling.com
CADD Manager
Skilling Ward Magnusson Barkshire Inc. Tel:(206)292-1200
1301 Fifth Ave, #3200, Seattle WA 98101-2699 Fax: -1201

mslostit

unread,
Oct 24, 2001, 2:46:48 PM10/24/01
to
take look for filepro, it will do that and more

Patrick Pirtle <p...@skilling.com> wrote in message news:<oljdttgmbf4pr57te...@4ax.com>...

Doug Winfree

unread,
Oct 31, 2001, 8:53:10 AM10/31/01
to
I would like a copy!
mslo...@netscape.net (mslostit) wrote in message news:<5471263.01102...@posting.google.com>...
0 new messages