help with macro that will open library & set focus to "GS20"...

Discussion in 'Microstation' started by redbyrd, May 19, 2005.

  1. redbyrd

    redbyrd Guest

    I am trying to write a macro that will open a cell library and then set
    the focus (highlighted item) to a particular cell "GS20". Here is my
    macro. I get it as far as opening the library but cannot work out the
    "focus"

    Sub main
    ' Start a command
    MbeSendCommand "DIALOG CELLMAINTENANCE "

    MbeSendCommand "ATTACH LIBRARY S:\CONFIG\CELL\XXXX100PJT41.cel"

    ' Set a variable associated with a dialog box
    MbeSetAppVariable "", "tcb->activecell", "GS20 "


    At this point, the GS20 cell is active, but I want the focus to be in
    the list of the cell library.

    redbyrd
     
    redbyrd, May 19, 2005
    #1
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.