Donate Now Goal amount for this year: 3000 USD, Received: 1207 USD (40%)

Results 1 to 3 of 3
Like Tree2Likes
  • 2 Post By amoursol

Thread: How optimize script for placed families on drafting view?

  1. #1
    New Member
    Join Date
    December 6, 2017
    Posts
    1
    Current Local Time
    09:58 AM

    How optimize script for placed families on drafting view?

    I made script for insert two Family Types with three parameters by points.
    I read data from Excel - Family Types and their values of parameters.
    But script get very big.
    If I need insert ten Family Types with ten parameters then script will be huge.
    I uploaded files to cloud, you can download their from here:


    https://yadi.sk/d/cL2MkYAc3QVskg


    May be somebody know way how optimize this script.


    Thank you in advance.


    Best regard
    Andrei

  2. #2
    Forum Addict josephpeel's Avatar
    Join Date
    May 3, 2012
    Posts
    1,396
    Current Local Time
    06:58 AM
    The "Family by Point and View" node works with multiple families too. In fact most nodes do.
    You can create a list of 100 points and 100 data values, feed this into the nodes, and place them and set the parameters.
    It looks like the place families node will only take one Family Type though, so you will have to repeat for different types.
    Or maybe first place everything as the same type, then change the type using another list.

  3. #3
    Senior Member amoursol's Avatar
    Join Date
    November 21, 2012
    Location
    London, United Kingdom
    Posts
    612
    Current Local Time
    05:58 AM
    Hello Andrei,

    I've amended your script how I would do it, attached below. Basically, you can utilise Lacing and List@Level to achieve what you want without having to copy and paste nodes. This works on the proviso that the List structure matches correctly. You'll find, in Dynamo, that List Manipulations are the biggest thing to wrap your head around.

    Attached Thumbnails Attached Thumbnails How optimize script for placed families on drafting view?-revitforumquery_andrei_familyplacement.jpg  
    josephpeel and ryntau like this.

Similar Threads

  1. Drafting view and families... what is possible?
    By Jonatan Eriksson in forum Architecture and General Revit Questions
    Replies: 4
    Last Post: October 25th, 2018, 06:11 AM
  2. Optimize performance while working on a large model
    By katewood1989 in forum Architecture and General Revit Questions
    Replies: 2
    Last Post: September 27th, 2017, 10:07 AM
  3. Manufacturers: Detail Families, Drafting Views or Don't Bother
    By sumex in forum Architecture and General Revit Questions
    Replies: 14
    Last Post: August 4th, 2015, 08:03 PM
  4. Reference other view: <New Drafting View>
    By amarkrish108 in forum Architecture and General Revit Questions
    Replies: 4
    Last Post: March 18th, 2014, 09:14 AM

Posting Permissions

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