Results 1 to 4 of 4
Like Tree6Likes
  • 4 Post By Twiceroadsfool
  • 1 Post By Twiceroadsfool
  • 1 Post By josephpeel

Thread: Awesome find in Dynamo, by John Pierson (60secondrevit): Crops and section boxes

  1.    #1
    Forum Co-Founder Twiceroadsfool's Avatar
    Join Date
    December 7, 2010
    Location
    Dallas, TX
    Posts
    7,465
    Current Local Time
    04:50 AM

    Awesome find in Dynamo, by John Pierson (60secondrevit): Crops and section boxes

    John Pierson found a great correlation between views, and their crop regions, and section boxes, while working in Dynamo the other day.

    He discovered that if you are looking at an Elevation View, its Crop Region element is the Element ID of the view, minus 1.

    So if the view is 55555555, the crop region is 55555554.

    In 3D views, the section box is one below the views element ID, and the crop region is 2 below.

    So if the views element ID is 66666666, the section box is 66666665, and the crop region is 66666664.

    That makes it pretty handy for doing things with section boxes and crop regions, since you can select them directly by element ID.
    Attached Thumbnails Attached Thumbnails Awesome find in Dynamo, by John Pierson (60secondrevit): Crops and section boxes-2017-01-10_10-24-22-what-am-i-missing.png  

  2.    #2
    Moderator snowyweston's Avatar
    Join Date
    December 21, 2010
    Location
    C.LONDON
    Posts
    3,461
    Current Local Time
    10:50 AM
    Is this pre or post Tweet?

    (I've been playing as well) - any insight into what were you/John imagining for such a discovery? Thinking maybe tying section box to an element boundary box for isolating elements in view?

  3.    #3
    Forum Co-Founder Twiceroadsfool's Avatar
    Join Date
    December 7, 2010
    Location
    Dallas, TX
    Posts
    7,465
    Current Local Time
    04:50 AM
    If you want to get a Bounding Box of a Section Box on a 3D view (for instance), you need to select both the Section Box and the View, to put them in to the BoundingBox.ByElement node you see in the graph. Section Boxes dont have other properties, to really ask "what view am i in?" So without the nifty workaround, you have to do something like this (attached) to both the view, and the section box,(Collect the list of section boxes, and the list of views) then compare the results, and then sift the results out of the Filtered List, which is just a bunch more steps.

    Its just a heck of a lot simpler.

    (EDIT: Its post tweet. I just was excited about his find, so i thought i would share it here after he tweeted about it)
    Attached Thumbnails Attached Thumbnails Awesome find in Dynamo, by John Pierson (60secondrevit): Crops and section boxes-2017-01-10_13-22-15-other.png  
    snowyweston likes this.

  4.    #4
    Senior Member josephpeel's Avatar
    Join Date
    May 3, 2012
    Posts
    981
    Current Local Time
    11:50 AM
    Good to know!
    Might be useful to test if it is always consistent or if you can break it. Eg. if you Crop/Uncrop or make custom crop regions will it ever produce a new ID.
    (Its the exceptions to the rule that screw up a good program)
    amoursol likes this.

Similar Threads

  1. Find the surface area of structural beams using Dynamo BIM!
    By Simply Complex in forum Blog Feeds
    Replies: 0
    Last Post: December 19th, 2016, 08:16 AM
  2. Creating sections that crops to levels?
    By Elliot Mott in forum MEP - General
    Replies: 6
    Last Post: October 11th, 2016, 07:39 PM
  3. Trees and Section Boxes
    By CountryMile in forum Architecture and General Revit Questions
    Replies: 6
    Last Post: May 12th, 2016, 02:21 PM
  4. Displacement paths and section boxes
    By Cyus in forum Architecture and General Revit Questions
    Replies: 3
    Last Post: May 3rd, 2013, 03:02 PM
  5. Section Boxes with options
    By goldring in forum Architecture and General Revit Questions
    Replies: 1
    Last Post: March 16th, 2012, 11:09 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
  •