Donate Now Goal amount for this year: 2500 USD, Received: 1869 USD (75%)

Results 1 to 8 of 8
Like Tree12Likes
  • 2 Post By GMcDowellJr
  • 2 Post By ryntau
  • 4 Post By amoursol
  • 1 Post By Yna_Db
  • 1 Post By Yna_Db
  • 2 Post By ryntau

Thread: Swapping out Curtain Panels

  1. #1
    Member ryntau's Avatar
    Join Date
    October 11, 2012
    Location
    St. Louis
    Posts
    403
    Current Local Time
    01:19 AM

    Swapping out Curtain Panels

    I wondering if this is even possible. I have a Curtain wall with a regular grid, 20 wide by 9 tall. I have 18 different curtain panels that i'd like to place in this curtain wall following certain rules. Is it possible to swap out panels for my custom panels using corresponding cells in Excel?

    or is there a different approach i should be looking for?
    I've attached a couple of images

    Thanks,
    Attached Thumbnails Attached Thumbnails Swapping out Curtain Panels-dynamocurtain02.png   Swapping out Curtain Panels-dynamocurtain01.png  

  2. #2
    Forum Addict GMcDowellJr's Avatar
    Join Date
    December 21, 2010
    Location
    Phoenix, AZ
    Posts
    2,628
    Current Local Time
    01:19 AM
    Simply put, yes. Several plugins will do this as will Dynamo.


    Sent from my iPad using Tapatalk
    amoursol and cganiere like this.

  3. #3
    Member ryntau's Avatar
    Join Date
    October 11, 2012
    Location
    St. Louis
    Posts
    403
    Current Local Time
    01:19 AM
    at its most basic, here's the graph. i think it's just a matter of parsing down the list of panels now.
    Attached Thumbnails Attached Thumbnails Swapping out Curtain Panels-curtainpanelswap.png  
    amoursol and cganiere like this.

  4. #4
    Senior Member amoursol's Avatar
    Join Date
    November 21, 2012
    Location
    London, United Kingdom
    Posts
    612
    Current Local Time
    09:19 AM
    Hello Ryan,

    So you're going to run into one or two problems. Namely, paring the structure of your Excel with the actual panels. But it's all solvable.

    I've re-created your example in my own way as follows:



    I've generated 100x shuffled Types of panel I want to match. In this case, they are also colour coded.

    I want to pair each one within Revit as it appears in Excel. To do so, we need to check if the way in which the panels are sequentially built in Revit matches our system.

    I bring through my excel data (Which is just text) and flatten off the listings (As the Curtain panels are a flat list).



    I then simply use them as a Key when I'm pairing my panels through the List.GroupByKey method.



    As my families are called the same thing as my keys, I can simply use FamilyType.ByName to pull them from the Revit document. If you'rs are different, you'll simply have to create a list of them based around your key list structure.

    This gives me the following results:



    However, the way the Curtain Panels have been generated doesn't quite match my colour scheme in Excel. So I need to fix my panels first.



    What I want is to find out how they panels appear in the list. If I use a simple colour override and pick elements of a full line and one additional, I can see how this builds:



    This is showing that my first line is running along the base, then it starts back at the same place, but one line above. You can test this by changing the designscript format.




    So what we need to do, is chop up our list using List.TakeEveryNthItem, transpose said list, reverse the sub-groupings and then reverse the entire outer list... rather convoluted I know



    But it does give us our result!!

    Attached Thumbnails Attached Thumbnails Swapping out Curtain Panels-revitforumquery_01.jpg   Swapping out Curtain Panels-revitforumquery_02.jpg   Swapping out Curtain Panels-revitforumquery_03.jpg   Swapping out Curtain Panels-revitforumquery_04.jpg   Swapping out Curtain Panels-revitforumquery_05.jpg  

    Swapping out Curtain Panels-revitforumquery_06.jpg   Swapping out Curtain Panels-revitforumquery_07.jpg   Swapping out Curtain Panels-revitforumquery_07.jpg   Swapping out Curtain Panels-revitforumquery_08.jpg   Swapping out Curtain Panels-revitforumquery_09.jpg  

    Swapping out Curtain Panels-revitforumquery_10.jpg  
    Yna_Db, cganiere, ryntau and 1 others like this.

  5. #5
    Member
    Join Date
    September 19, 2015
    Posts
    163
    Current Local Time
    09:19 AM
    Another approach to make lists match could consist in classifying the panels by their coordinates.
    amoursol likes this.

  6. #6
    Senior Member amoursol's Avatar
    Join Date
    November 21, 2012
    Location
    London, United Kingdom
    Posts
    612
    Current Local Time
    09:19 AM
    Quote Originally Posted by Yna_Db View Post
    Another approach to make lists match could consist in classifying the panels by their coordinates.
    Totally! The problem with geometrical methods is they get heavy, and you can't use Element.GetLocation on Curtain Panels If you have to pull Element.Geometry it get's nasty the bigger the panels are.

  7. #7
    Member
    Join Date
    September 19, 2015
    Posts
    163
    Current Local Time
    09:19 AM
    You can still use the elements bounding boxes min points, it shouldn't be too heavy to manipulate...
    amoursol likes this.

  8. #8
    Member ryntau's Avatar
    Join Date
    October 11, 2012
    Location
    St. Louis
    Posts
    403
    Current Local Time
    01:19 AM
    this is the way i approached it, i'm sure there is some consolidation that could take place. this is also assuming that the number of panels in the x and y direction don't change.

    Edit: i've also chopped it down a bit, i have 19 panels to choose from, not just the 4 shown here.
    I think your Keys approach will allow me to make it much simpler
    Attached Thumbnails Attached Thumbnails Swapping out Curtain Panels-curtainpanelswap.png  
    Last edited by ryntau; September 8th, 2017 at 05:32 PM.
    cganiere and amoursol like this.

Similar Threads

  1. void for curtain panels does not cut
    By spotless in forum Architecture and General Revit Questions
    Replies: 2
    Last Post: November 15th, 2018, 07:19 PM
  2. missing curtain panels
    By stl4310 in forum Architecture and General Revit Questions
    Replies: 10
    Last Post: June 2nd, 2015, 07:08 PM
  3. Problem with adding custom curtain wall panels to curved curtain wall.
    By aktaylorh in forum Architecture and General Revit Questions
    Replies: 0
    Last Post: November 20th, 2013, 06:16 PM
  4. Curtain wall panels
    By Bradscott in forum Architecture and General Revit Questions
    Replies: 2
    Last Post: February 8th, 2013, 12:26 PM
  5. Custom Curtain Panels
    By MikeMaloney in forum Architecture and General Revit Questions
    Replies: 3
    Last Post: January 9th, 2011, 02:09 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
  •