Results 1 to 4 of 4

Thread: Create Rooms, Is this Possible

  1. #1
    Member
    Join Date
    2005-10
    Posts
    17

    Default Create Rooms, Is this Possible

    I've spent hours searching the API docs and web and can't find an answer to this...

    CreateRoom has a method that takes a level and UV point as parameters. Is there a way to get the UV point from a user clicking the floor plan view during an active API session?

    My goal is provide the user with a list of rooms to place and have them select a room from the list in form, click a point on the floor plan view and create the room via the API. I've been unable to find a method to do so. PromptForFamilyInstancePlacement seem the only method in the API to place item based on a user click. The only FamilySymbol I see associated with rooms is the Area Tag, don't I need a room to place a tag?

    So, is this possible? Can a UV point be created by a user click in an API session?

    Thanks,
    Frank

  2. #2
    Certifiable AUGI Addict Dimitri Harvalias's Avatar
    Join Date
    2003-08
    Location
    Vancouver, BC Canada
    Posts
    3,394

    Default Re: Create Rooms, Is this Possible

    Frank,
    I'm not an API expert but what you are describing is pretty much default Revit behavior.
    If the list of Rooms is in a project (created in a schedule in the. Project or imported/created via API) then the user only needs to initiate the room command, look on the options bar and select the room from the pull down list and place it in the project.
    I'm not sure where the added benefit or functionality is if you 'automate' this process through the API.
    ____________________________
    Dimitri Harvalias LEED AP
    Summit BIM Consulting
    BIMblog.ca
    I was never just a CAD monkey, so I refuse to be a BIMpanzee!
    A BIM without the 'I' is just a BM - those in the medical profession know what that amounts to

  3. #3
    100 Club
    Join Date
    2004-02
    Location
    Brookline, MA
    Posts
    185

    Default Re: Create Rooms, Is this Possible

    Yes,
    The UIDocument.PickPoint returns an XYZ, but I believe in the case of a plan view, you'll be able to create a new UV point using the X and Y coordinates.
    -Matt

  4. #4
    AUGI Addict truevis's Avatar
    Join Date
    2004-07
    Location
    Massachusetts, USA
    Posts
    1,186

    Default Re: Create Rooms, Is this Possible

    In the Revit 2012 SDK, ElementsBatchCreation provides clues to creating new elements in Revit.

    See also: http://thebuildingcoder.typepad.com/...eparation.html
    Last edited by truevis; 2012-12-24 at 05:43 PM.

Similar Threads

  1. Rooms not placed
    By MikeJarosz in forum Revit Architecture - General
    Replies: 2
    Last Post: 2011-10-10, 03:38 PM
  2. Create an List of All Rooms
    By ttiefenbach in forum Revit - API
    Replies: 0
    Last Post: 2011-07-01, 06:18 PM
  3. Replies: 5
    Last Post: 2010-03-10, 10:49 PM
  4. Placing Rooms - lots and lots of Rooms
    By DaveP in forum Revit Architecture - General
    Replies: 12
    Last Post: 2010-01-04, 03:21 PM
  5. Replies: 11
    Last Post: 2007-09-12, 01:00 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
  •