Results 1 to 8 of 8
Like Tree10Likes
  • 6 Post By Twiceroadsfool
  • 2 Post By Twiceroadsfool
  • 1 Post By josephpeel
  • 1 Post By Raff

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,720
    Current Local Time
    08:31 PM

    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,573
    Current Local Time
    02:31 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,720
    Current Local Time
    08:31 PM
    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 and johnp like this.

  4. #4
    Forum Addict josephpeel's Avatar
    Join Date
    May 3, 2012
    Posts
    1,054
    Current Local Time
    03:31 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.

  5.    #5
    New Member
    Join Date
    March 12, 2017
    Posts
    1
    Current Local Time
    11:31 AM
    This is great!

    Did you find any correlation between viewport and crop region also for floor plans??

    Andrea

  6.    #6
    Member
    Join Date
    March 24, 2015
    Posts
    85
    Current Local Time
    07:31 PM
    Quote Originally Posted by snowyweston View Post
    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?
    Just saw this thread! Originally I discovered this for obtaining the crop region from interior elevation views to override them to be bolder. Aaron needed it and it seemed to work for 3d as well, so I shared it with the world finally.


  7.    #7
    Member
    Join Date
    March 24, 2015
    Posts
    85
    Current Local Time
    07:31 PM
    Andrea, the floor plan are a bit more tough to figure out. Unlike the other view types, the floor plan alternates between -1 and +3 of the view. Could probably build in logic that checks for this though.

  8.    #8
    Member Raff's Avatar
    Join Date
    June 13, 2014
    Location
    @EIMHINATWORK
    Posts
    84
    Current Local Time
    02:31 AM
    This is like the "text door neighbor" thing https://www.reddit.com/r/textdoor/
    johnp 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
  •