Results 1 to 8 of 8

Thread: Selecting a family in the project browser

  1. #1
    Active Member
    Join Date
    2009-04
    Posts
    85
    Login to Give a bone
    0

    Default Selecting a family in the project browser

    Hi,

    I would like to create a dialog box based tool which would allow a user to
    search with a keyword or pattern through all the available families in the
    current project and list those who match the pattern. This part seems quite
    easy to me, although I am no Revit API guru. But the next part seems quite
    blurry to me and I'm not even sure that this is possible.

    Once that the families that match the search pattern are listed in the
    dialog box, the user is supposed to select one and only one from the list,
    press OK (or double click on the item) and I want the program to "go" in the
    project browser then find and highlight that family, eventually expanding
    the node(s) if necessary.

    Is this possible ? Could someone describe the process with some pseudocode
    and eventually help with some basic code which I could expand by myself ? I
    am a VB.NET guy, but I could translate some C# code eventually.

    Thanks in advance

  2. #2
    AUGI Addict
    Join Date
    2003-11
    Location
    New Zealand
    Posts
    1,116
    Login to Give a bone
    0

    Default Re: Selecting a family in the project browser

    Quote Originally Posted by some buddy View Post
    Hi,

    I would like to create a dialog box based tool which would allow a user to
    search with a keyword or pattern through all the available families in the
    current project and list those who match the pattern. This part seems quite
    easy to me, although I am no Revit API guru. But the next part seems quite
    blurry to me and I'm not even sure that this is possible.

    Once that the families that match the search pattern are listed in the
    dialog box, the user is supposed to select one and only one from the list,
    press OK (or double click on the item) and I want the program to "go" in the
    project browser then find and highlight that family, eventually expanding
    the node(s) if necessary.

    Is this possible ? Could someone describe the process with some pseudocode
    and eventually help with some basic code which I could expand by myself ? I
    am a VB.NET guy, but I could translate some C# code eventually.

    Thanks in advance
    To select in the project browser requires win32 methods. Not straightforward.

  3. #3
    100 Club
    Join Date
    2015-11
    Location
    Wellington, New Zealand
    Posts
    104
    Login to Give a bone
    0

    Lightbulb Re: Selecting a family in the project browser

    Hi,
    The guys from RevitTV.com have an app coming soon that will enable the user to search by key word etc. see http://revitdrawingmanager.com/products/
    and look for family manger about half way down the page.

    Cheers

    Anthony

  4. #4
    Active Member
    Join Date
    2009-04
    Posts
    85
    Login to Give a bone
    0

    Default Re: Selecting a family in the project browser

    Hi,

    Thanks for the answer. Could you suggest what API calls are necessary for this ?

    TIA

  5. #5
    Active Member
    Join Date
    2009-04
    Posts
    85
    Login to Give a bone
    0

    Default Re: Selecting a family in the project browser

    Thanks Anthony, I will look into it.

  6. #6
    Active Member
    Join Date
    2009-04
    Posts
    85
    Login to Give a bone
    0

    Default Re: Selecting a family in the project browser

    Well,

    These guys want money for their products, which is quite normal, but I am employed and payed as a CAD developper (initially AutoCAD, but right now I've been mandated to tap into the Revit API) so I don't think it's a good idea to ask my boss to buy something that I am supposed to be able to do by myself

  7. #7
    AUGI Addict
    Join Date
    2003-11
    Location
    New Zealand
    Posts
    1,116
    Login to Give a bone
    0

    Default Re: Selecting a family in the project browser

    The point Anthony is making is via the (2011 especially ) API you can make a project browser type command which is significantly better than trying to hack the project browser in the Revit window.

    HTH,

    Guy

  8. #8
    Active Member
    Join Date
    2009-04
    Posts
    85
    Login to Give a bone
    0

    Default Re: Selecting a family in the project browser

    The only point Antonyf is making, is to suggest me a product that some New Zeeland (from Wellington, what a coincidence!) software company (in occurence RevitTV) is going to release in the near future and all their products but one, are for sale.

    I was hopping that you could mention those API calls that would help me to achieve what I want to do. I need to get hooked on the project browser because from that point on, I need the Revit original contextual menu.

    I am not a very skilled programmer, I'm just trying to learn with the users.

    Thanks for your time anyway.

Similar Threads

  1. 2013: Revit MEP 2013 is de-selecting components and selecting browser items!
    By enerGwizz in forum Revit MEP - General
    Replies: 1
    Last Post: 2013-01-12, 09:48 PM
  2. Find/Locate Family in Project Browser
    By Firmso in forum Revit Architecture - General
    Replies: 6
    Last Post: 2007-02-28, 11:28 PM
  3. Project Browser - Adding your personal project inforamtion
    By warnoe uk in forum Project Navigator
    Replies: 0
    Last Post: 2006-06-01, 10:42 AM
  4. Changing a project parameter in plan view versus project browser
    By Nic M. in forum Revit Architecture - General
    Replies: 0
    Last Post: 2004-10-29, 12:20 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
  •