Element selection in VBA

Discussion in 'Microstation' started by Erik, Nov 19, 2003.

  1. Erik

    Erik Guest

    I have some experience in programming VB, but not VBA. What i would
    like to do is quite simple:
    I receive drawings from a lot of different companies, all these
    companies have different level-usage. When i need to turn off a level
    i have to examine the element and turn off the level.
    I want to make a VBA macro to turn off a level as soon as i click an
    element on that level.
    I got it to work with a selection or a fence, but not in way that i
    can click on an element.
    How do i click on elements and have something happen in VBA??
     
    Erik, Nov 19, 2003
    #1
  2. Erik

    Why don't you use off by element. Open the level display dialog and
    right click to bring up a menu. One of the options is off by element.

    Then just pick the element.

    HTH

    Duncan Macdonald
    Computer Operations Manager
    Dyer Brown & Associates UK Ltd
     
    Duncan Macdonald, Nov 19, 2003
    #2
  3. Erik

    Bevan Guest

    Assign the following to a function key.

    mdl load lvlmangr;LVLMANGR OFFBYELEM
     
    Bevan, Nov 19, 2003
    #3
  4. Erik
    I think what Duncan and Bevan said works well. Just wanted put you attention
    to that this is per view and whatch out for what preferences you have for
    "save settings" for both active file and references. They differ a little
    from v7 to v8.
     
    Thomas Voghera, Nov 19, 2003
    #4
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.