Results 1 to 4 of 4

Thread: Create Rooms, Is this Possible

  1. #1
    Member
    Join Date
    2005-10
    Posts
    17
    Login to Give a bone
    0

    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
    2015-12
    Location
    Vancouver, BC Canada
    Posts
    3,753
    Login to Give a bone
    0

    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.

  3. #3
    100 Club
    Join Date
    2004-02
    Location
    Brookline, MA
    Posts
    186
    Login to Give a bone
    0

    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,191
    Login to Give a bone
    0

    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 06:43 PM.

Similar Threads

  1. 2014: how do i create overlapping spaces/rooms? for use in schedules
    By tpayani in forum Revit Architecture - General
    Replies: 1
    Last Post: 2015-01-12, 04:17 PM
  2. Add Rooms Area when using From/To Rooms in Schedules
    By Wish List System in forum Revit Architecture - Wish List
    Replies: 0
    Last Post: 2013-03-08, 07:49 AM
  3. Create an List of All Rooms
    By ttiefenbach in forum Revit - API
    Replies: 0
    Last Post: 2011-07-01, 06:18 PM
  4. Replies: 5
    Last Post: 2010-03-10, 11:49 PM
  5. Placing Rooms - lots and lots of Rooms
    By DaveP in forum Revit Architecture - General
    Replies: 12
    Last Post: 2010-01-04, 04:21 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
  •