redbyrd wrote:
> I am still running a ucm at startup, have not completey migrated to
> macro/VBA
>
> The problem I am having is that randomly when a file is opened, there
> seems to be an element(s) that are "pre-selected" or highlighted. If
> I am not careful, whatever command I envoke, sometimes delete, I may
> not be aware of it. I have tried adding these commands to the UCM but
> it has not solved the problem.
>
> ....
> Key 'MbeSendReset'
> Key 'MbeSendDataPoint point, 1%'
> key 'null'
>
> exituc:
> end
>
> 1. Should the command(s) be before or after the "exituc"?
> 2. Do I need Dim anything, is that even possible in UCM mode?
>
> any help
> redbyrd
The syntax for user commands is something like assembly language (and
about that old, too). There is no such thing as "Dim" and there are only
"registers" to use as variables.
The "key" operator p***** the given string to MicroStation as if the
user had keyed it in on the command line. MbeSendReset and
MbeSendDataPoint are MicroStation BASIC subroutine names and are not
understood at all in this context. In fact, the appropriate user command
operators for sending a reset and a data point are "RST" and "PNT".
To solve your problem of unselecting the mysteriously selected element,
you might try sending the "choose none" command keyin like this:
key 'choose none'
exituc:
end
Yes, put it before the exituc: label.
HTH,
Teresa Zager
Bentley Systems, Inc.


|