Selectby display mode...?

Discussion in 'Microstation' started by chimp, Nov 14, 2003.

  1. chimp

    chimp Guest

    Hi folks, can anyone help me with this one.

    Is there a way to access the selectby's dialog box display mode?
    I'd like to be able to make a selection of elements and hide them
    temporarily, then redisplay them as and when needed.

    Any help appreciated!
    Cheers
    chimp
     
    chimp, Nov 14, 2003
    #1
  2. chimp

    b0bik Guest

    Is there a way to access the selectby's dialog box display mode?
    What do You exactly mean ? Do You want to hide elements placed on
    selected level ?

    If You want to select element by attributes use "SELECTBY ELEMENT"

    If You want to hide element placed on the same level, you can use
    simple macro :

    Dim filePos As Long
    Dim element As MbeElement
    Sub Main
    Set element = new MbeElement
    start :
    MbeStartLocate
    MbeGetInput MBE_DataPointInput, MBE_ResetInput
    Select case MbeState.inputType
    Case MBE_DataPointInput
    MbeSendLastInput
    filePos = element.FromLocate()
    MbeSendCommand "OF=" + str$(element.level) + ";dx=0;choose
    none;update 1"
    Case MBE_ResetInput
    MbeSendCommand "NULL;choose none;update 1"
    Exit sub
    End Select
    Gosub start
    End Sub


    It works if element isn't placed on the active level
     
    b0bik, Nov 15, 2003
    #2
  3. chimp

    Dave Preston Guest

    I assume you mean without physically selecting the options form the dialog
    i.e. using keyins?
    If you do then you can simply use a keyin like the following and assign it
    to a function key, settings manager kwyin etc.:-

    mdl l selectby;selectby level none;selectby level 29

    The problem is you may exceed the limit allowed in a single keyin so I would
    suggest you create a macro with the keyins.
    Here's one I use to turn off multiline text on level 29:-

    Sub Main
    MbeSendCommand "mdl u selectby"
    MbeSendCommand "mdl l selectby"
    MbeSendCommand "selectby level none"
    MbeSendCommand "selectby level 29"
    MbeSendCommand "selectby type none"
    MbeSendCommand "selectby type textnode"
    MbeSendCommand "selectby options display"
    MbeSendCommand "selectby mode exclusive"
    MbeSendCommand "selectby on"
    MbeSendCommand "selectby execute"
    End Sub

    You can simply use "mdl u selectby" to remove any filter applied by selectby

    HTH
     
    Dave Preston, Nov 16, 2003
    #3
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.