Results 1 to 2 of 2

Thread: how to select an element while Window form is running

  1. #1
    Member
    Join Date
    2010-05
    Posts
    13
    Login to Give a bone
    0

    Unhappy how to select an element while Window form is running

    In the C# window form, there is a button.

    What i want is that if I press the button, I can select an element in Revit model, and then return to the window form.

    I tried "winForm.hide()", but it still does not allow me to select the element even if the window form is hidden.

    Could anyone suggest how to implement this function? or sample code?

  2. #2
    Member
    Join Date
    2012-09
    Posts
    34
    Login to Give a bone
    0

    Default Re: how to select an element while Window form is running

    If I understand what you're trying to accomplish, you'll probably need to use a modeless form in conjunction with an ExternalEvent or the Idling event.

    This should point you in the right direction: http://thebuildingcoder.typepad.com/...al-events.html
    Another on the same topic: http://thebuildingcoder.typepad.com/...nal-event.html

Similar Threads

  1. 2014: How t o highlight an element while the command is running
    By kukuzry in forum Revit - API
    Replies: 2
    Last Post: 2014-07-08, 01:13 AM
  2. zoom window with running osnaps
    By glewis in forum ACA General
    Replies: 0
    Last Post: 2012-05-23, 07:16 PM
  3. VBA - Change User Focus From Form to AutoCAD Window
    By bsardeson in forum VBA/COM Interop
    Replies: 7
    Last Post: 2011-02-22, 04:37 PM
  4. Autocad becomes partially inactive when running a form
    By singh.robbie in forum VBA/COM Interop
    Replies: 1
    Last Post: 2009-11-02, 04:19 PM
  5. void form coming along for the slanted window doesn't work
    By reneerapt in forum Revit Architecture - General
    Replies: 2
    Last Post: 2009-07-24, 07:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •