Donate Now Goal amount for this year: 2500 USD, Received: 1627 USD (65%)

Results 1 to 5 of 5
Like Tree2Likes
  • 1 Post By amoursol
  • 1 Post By ecraider

Thread: Placing a massive number of families in A PLan

  1. #1
    Member ecraider's Avatar
    Join Date
    May 19, 2014
    Location
    Concord, CA
    Posts
    87
    Current Local Time
    02:37 AM

    Placing a massive number of families in A PLan

    I was given the task of placing 2500 sprinkler heads on a large Airport Layout.

    I have been studying and playing with Dynamo lately but this is my first big real-world problem I am trying to solve.....

    What I have done:


    • I have a ACAD dwg layout with circles at the locations of the Sprink heads.
    • I was able to extract the center points of the Sprinkler heads and get the coordinates pushed into lists
    • I pushed the lists into excel


    What I need to do:

    • Insert the sprink heads at the coordinates I have listed out


    Has anyone ever done anything similiar to this and maybe be able to point me in the right direction on this....

  2. #2
    Senior Member amoursol's Avatar
    Join Date
    November 21, 2012
    Location
    London, United Kingdom
    Posts
    612
    Current Local Time
    03:37 AM
    If you have a list of location points in Excel then it should be relatively simple - providing your family has been modelled in the correct way.

    The insertion point (Crossing of the Reference Planes in the family) will pair with the points list you have. Bear in mind however that the coordinate system logic behind Dynamo and Revit differ somewhat. The 'Project Base Point' is in fact 0,0,0 (XYZ) and matches to the 0,0,0 (XYZ) in Dynamo. So you may need to do a little math if the coordinates are based off your Survey Point.

    After that, simply look at Excel.ReadFromFile, a little math operations after pulling the Survey Point and Project Base Point double values and look at FamilyInstance.ByPoint.

    If you run into issues feel free to post here and i'll help you out
    koolair likes this.

  3. #3
    Member ecraider's Avatar
    Join Date
    May 19, 2014
    Location
    Concord, CA
    Posts
    87
    Current Local Time
    02:37 AM
    I created a complete script at work to extract....It ran as expected.


    • I ran it at home the very first node, Element.location is returing all null..


    • Drove me nuts thinking I had done something wrong/different
    • I ran it again at work next day and works 100%


    Same Programs on both..Revit 2015 r2 + Dynamo 1.2.1
    Work is on Windows 7... Windows 10 at home
    What could be causing this issue?
    All help is greatly appreciated.
    Attached Thumbnails Attached Thumbnails Placing a massive number of families in A PLan-element.location_not-working.jpg  
    Last edited by ecraider; January 16th, 2017 at 12:05 AM.
    koolair likes this.

  4. #4
    Member koolair's Avatar
    Join Date
    July 31, 2014
    Posts
    263
    Current Local Time
    10:37 PM
    Quote Originally Posted by ecraider View Post
    I created a complete script at work to extract....It ran as expected.


    • I ran it at home the very first node, Element.location is returing all null..


    • Drove me nuts thinking I had done something wrong/different
    • I ran it again at work next day and works 100%


    Same Programs on both..Revit 2015 r2 + Dynamo 1.2.1
    Work is on Windows 7... Windows 10 at home
    What could be causing this issue?
    All help is greatly appreciated.
    If you're trying to automate repetitive tasks, please I would love to hit a link to a good intro YouTube channel or website. Thanks for posting! Cheers,

  5. #5
    Senior Member amoursol's Avatar
    Join Date
    November 21, 2012
    Location
    London, United Kingdom
    Posts
    612
    Current Local Time
    03:37 AM
    Try using the in-built Element.GetLocation​ node instead.

Similar Threads

  1. Placing All Families
    By pivoarch in forum Architecture and General Revit Questions
    Replies: 1
    Last Post: February 4th, 2015, 01:21 PM
  2. Placing families on linked ceilings?
    By domsib in forum MEP - General
    Replies: 1
    Last Post: January 22nd, 2015, 10:43 AM
  3. Automated Placing of Families in a Project
    By Crusty in forum Third party Add-Ins, API and R&D
    Replies: 6
    Last Post: June 5th, 2014, 09:30 AM
  4. Families not placing in phase
    By cellophane in forum Architecture and General Revit Questions
    Replies: 0
    Last Post: January 12th, 2013, 05:53 PM
  5. Placing lights in reflected ceiling plan
    By byork in forum Architecture and General Revit Questions
    Replies: 7
    Last Post: October 23rd, 2012, 05:10 PM

Tags for this Thread

Posting Permissions

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