Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Computer Aided Design - CAD > Microstation > Re: ucm keyin.....
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 1165 of 1202
Post > Topic >>

Re: ucm keyin...

by Teresa Zager <tjzager@[EMAIL PROTECTED] > Jun 4, 2008 at 05:18 PM

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.
 




 2 Posts in Topic:
ucm keyin...
redbyrd <william.rydbe  2008-06-04 08:35:39 
Re: ucm keyin...
Teresa Zager <tjzager@  2008-06-04 17:18:21 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Nov 20 17:46:12 CST 2008.