Element aligned bounding boxes in Dynamo!

Поделиться
HTML-код
  • Опубликовано: 18 ноя 2024

Комментарии • 70

  • @BrunoValads
    @BrunoValads 3 года назад +1

    Nice technique! After that would be nice aligning a section box in the 3D view to match exactly one of these resulting bounding boxes, with the correct orientation

    • @AussieBIMGuru
      @AussieBIMGuru  3 года назад +1

      I believe it would be better as a different workflow given we have multiple elements here and not one to section box. Section boxes should be able to be enabled and rotated using the Genius Loci package. There is an Element.SetRotation node that should centre a box about a point.

    • @cathychoi6959
      @cathychoi6959 Год назад +1

      it reminds me PyRevit section box orientation on face ( you select the face)

  • @ccclm
    @ccclm 9 месяцев назад +1

    It is really helpful. Thank you a lot!!!

  • @JorgeRodriguez-wt4gu
    @JorgeRodriguez-wt4gu 2 года назад +1

    Dude, you are a genius, thank u so much!

  • @backup-x6x
    @backup-x6x 3 года назад +3

    Hi Gavin, what are all these buttons to align that appear around the nodes when you select them? Thanks

    • @AussieBIMGuru
      @AussieBIMGuru  3 года назад +2

      These are part of the Monocle package which you can find on package manager.

  • @countycowpoke
    @countycowpoke 3 года назад +1

    Very useful graph and explanation Gavin!

    • @AussieBIMGuru
      @AussieBIMGuru  3 года назад +1

      Cheers Sean! Yes I quite like this one, and use it from time to time. I think there are probably some more complex/effective methods such as using edges of geometry to detect the mean rotation (I use that one for rooms) but this one has worked for me in most cases so far.

  • @alexhamm9052
    @alexhamm9052 4 месяца назад

    Nice Video! is there a way of geting the rotation of the cuboid itself? In my project I am trying to get the rotation of ifc-elements, which were not created in revit. Unfortunatly the node in your video only works for revit elements. Thanks

    • @AussieBIMGuru
      @AussieBIMGuru  3 месяца назад

      The best way I can think of is to get a horizontally facing edge of the cuboid (Z of direction = 0), then modulo its rotation against the Y axis against 90, of which its remainder will be its rotation.

  • @andriyborysov4469
    @andriyborysov4469 3 года назад +1

    Do you hear about Orkestra add-in? It would be great if you create video about it

    • @AussieBIMGuru
      @AussieBIMGuru  3 года назад +1

      It's on my list. I've used it before and it's great, although the best features are at enterprise level (paid). PyRevit is also another option to deploy tools to a ribbon, but Orkestra is great for package management and script distribution to an office via cloud. If your company wants to do a free approach I'd use PyRevit but if they're willing to pay I'd go Orkestra.

  • @nguyenminhkhoi6830
    @nguyenminhkhoi6830 3 года назад +1

    Thanks Gavin
    Can you help me for this one? I want to export all sheet to one DWG. So I move all viewports to one sheet and export it to DWG but I still can't do it .

    • @AussieBIMGuru
      @AussieBIMGuru  3 года назад

      Unfortunately Revit isn't really built to work this way, it exports one sheet at a time. All views on one sheet is more of an AutoCAD oriented way of working. If you have placed multiple viewports on a single sheet is should export the whole thing, but you should make sure that the export to external references is disabled so it exports them all as one.

  • @juliopolo7216
    @juliopolo7216 Год назад

    Great video. Will that work with floors in which all curves were drawn at 45 degrees? It was not rotated, just drawn that way when the floor was created.

    • @AussieBIMGuru
      @AussieBIMGuru  Год назад +1

      Unfortunately floors do not have the rotation property that family instances do. In that case you could rotate it by 45 degrees instead of using a rotation, or if you have multiple floors, get their edges and check their angle to the Y axis down to the lowest interval between 0 and 90 and use that as a rotation instead.

    • @juliopolo7216
      @juliopolo7216 Год назад +1

      @@AussieBIMGuru Thanks for your answe, I aprreciate it! I think I'm gonna try your second suggestion, as it is intended to work with whatever angle the edges have.

    • @juliopolo7216
      @juliopolo7216 Год назад

      @@AussieBIMGuru Just a quick update. The second approach worked. Thank you!

  • @BIMCONS
    @BIMCONS 3 года назад +1

    Thanks

  • @bender06160
    @bender06160 Год назад

    Hi great video, it will very useful thanks. May I ask you how would you proceed to automatically align an element to another one using dynamo? For example aligning an plank to a rotated cube. Thanks 😊

    • @AussieBIMGuru
      @AussieBIMGuru  Год назад +1

      Generally if they are revit families you would need to calculate their needed rotation and location point then use element.setlocation. It would generally take some mathematics and geometry processing to determine the required location based on the object size.

  • @jephtisomosot9267
    @jephtisomosot9267 7 месяцев назад

    Hi, how do I get the Min and Max point of Element aligned bounding box?

    • @AussieBIMGuru
      @AussieBIMGuru  7 месяцев назад

      Generally you would need to rotate the axis aligned points by the same angle about the bounding box centre point.

    • @jephtisomosot9267
      @jephtisomosot9267 7 месяцев назад +1

      @@AussieBIMGuru Thanks for the quick reply! Appreciate your content.

  • @antoninfreteur4292
    @antoninfreteur4292 2 года назад +1

    How would you turn your cuboid back to a bounding box ? I need a bounding box to turn it into a section for my 3D views by appartment.
    My problem is that all my appartments dont have the same orientation...
    I manage my plans for crop region, that's fine. But the 3D section box orientation is still anoying me
    Thanks for all your videos by the way, really helpful :)

    • @AussieBIMGuru
      @AussieBIMGuru  2 года назад

      I believe the Element.SetRotation node should be able to rotate a section box after it has been made.

    • @antoninfreteur4292
      @antoninfreteur4292 2 года назад

      @@AussieBIMGuru This node doesn't seem to work with bounding box or 3Dviews itself. I'm also trying 3DView Set Orientation by Genius Loci but it doesn't seems to work neither so far

  • @EngCezar-Privado
    @EngCezar-Privado 3 года назад

    Great video Gavin. I was trying to do it to extract bboxes faces for beams and columns... I Wonder if this script can be applied to objects with a Z axis rotation, like roof trusses.

    • @AussieBIMGuru
      @AussieBIMGuru  3 года назад +1

      It could be applied in such a way but the rotation would need to be measured, probably using the location line of the element against the xy plane.

    • @EngCezar-Privado
      @EngCezar-Privado 3 года назад +1

      @@AussieBIMGuru Gotcha!

  • @aliyovic10
    @aliyovic10 2 года назад

    Thanks Gavin! But there is a big deference between the BooundingBox and the Cuboid(Solid), Try to rotate BooundingBox you will get and Erreur.
    is there a way to Rotate the BooundingBox ?

    • @AussieBIMGuru
      @AussieBIMGuru  2 года назад +1

      Unfortunately the bounding box itself cant be rotated as far as I know as it's always Y axis aligned in dynamo, but a cuboid shares pretty much all the typical properties of a BB.

    • @chrisedwards3272
      @chrisedwards3272 2 года назад

      @@AussieBIMGuru Hi Gavin, this does present an issue as BBoxes can be intersected (clashed) with elements but Cuboids seemingly cannot. Do you know if Cuboids can be used for this function?

    • @AussieBIMGuru
      @AussieBIMGuru  2 года назад

      @@chrisedwards3272 i believe they can be intersected as solids the way other geometry can be, but not using the specific methods in the Revit API reserved for bounding boxes.

  • @PANDURANG99
    @PANDURANG99 8 месяцев назад

    if I want 4 coordinates of top surface , then it is the only option to get or anything else?

    • @AussieBIMGuru
      @AussieBIMGuru  8 месяцев назад +1

      Get the bounding box face with highest z value at its centre and its corners, or you can get min/max point and build the 4 points from that then rotate them back to the element orientation.

    • @PANDURANG99
      @PANDURANG99 8 месяцев назад

      Only getting min and Max point, how to get another two points,
      I am drawing a rectangle and I want 4 coordinates.

    • @AussieBIMGuru
      @AussieBIMGuru  8 месяцев назад +1

      @@PANDURANG99 deconstruct the points into their xy values. You can then use them to build the other points, for example the top left point is min X, max Y and max Z.
      I believe theres a rectangle by 2 points node as well if you move min up to max Z.

    • @PANDURANG99
      @PANDURANG99 8 месяцев назад

      @@AussieBIMGuru For example we have min X ,min Y and Max X,max Y
      Means diagonal end points, if the rectangle is parallel to x or y then we can get easily another two points but if rectangle is tilted at some degrees then having problem to get another two points, then we have length and width of rectangle but example,we take a min point then we don't know at which side is length or width.

    • @AussieBIMGuru
      @AussieBIMGuru  8 месяцев назад +1

      @@PANDURANG99 yes if the bounding box is not parallel then you would need to rotate/bound/derotate the geometry first by a rotation if known like i do in this tutorial. Revit does not support bounding boxes on angles, and does not know the rotation of elements unless they have a property that tells them the rotation.

  • @vrbaac1641
    @vrbaac1641 2 года назад

    thank you for the very helpful video again ^^ just want to verify... so the last element that was rotated about the centroid is really the cuboid of the bounding box? or is it really possible to rotate the bounding box?

    • @AussieBIMGuru
      @AussieBIMGuru  2 года назад +1

      In principle I don't think it is, as bounding boxes are axis aligned in dynamo.

  • @amrhariri1996
    @amrhariri1996 3 года назад

    Thanks
    Can you explain how to create callout in dynamo?

    • @AussieBIMGuru
      @AussieBIMGuru  3 года назад +1

      There is a script at the end of this thread which shows how:
      forum.dynamobim.com/t/create-revit-callout/1024
      You will need to generate the extents for dynamo using a rectangle in Dynamo.

    • @amrhariri1996
      @amrhariri1996 3 года назад

      @@AussieBIMGuru
      How can i reach to the script?

    • @AussieBIMGuru
      @AussieBIMGuru  3 года назад +1

      @@amrhariri1996 sorry it pasted wrong. Try this link.
      forum.dynamobim.com/t/create-revit-callout/1024

    • @amrhariri1996
      @amrhariri1996 3 года назад

      @@AussieBIMGuru
      I've read this article before... but unfortunately the node doesn't work with the structural view...

    • @AussieBIMGuru
      @AussieBIMGuru  3 года назад +1

      @@amrhariri1996 hrm not sure about that one myself. Maybe make a topic on dynamo forums to troubleshoot your script.

  • @nguyenminhhieu440
    @nguyenminhhieu440 3 года назад

    Thank you, I really like your video content, I have some questions to ask like how do you use the ALT button with the list, how do I make it show automatically when I use ALT + Click Mouse. Please guide me further. Thanks

    • @AussieBIMGuru
      @AussieBIMGuru  3 года назад

      Do you mean the ribbon shortcuts? I dont tend to use them as they take too many steps to reach a final command - I usually recommend using actual shortcuts instead which can be configured and imported/exported if customized.

    • @nguyenminhhieu440
      @nguyenminhhieu440 3 года назад

      @@AussieBIMGuru thank you, but can you guide me, i would love to learn to disable that command - ALT + Click Left mouse

    • @AussieBIMGuru
      @AussieBIMGuru  3 года назад

      @@nguyenminhhieu440 oh I don't believe it can be disabled. Try checking for its shortcut in the shortcut manager maybe but not sure its assigned that way.

    • @nguyenminhhieu440
      @nguyenminhhieu440 3 года назад

      @@AussieBIMGuru Where is its shortcut, can you show me?

    • @AussieBIMGuru
      @AussieBIMGuru  3 года назад +1

      @@nguyenminhhieu440 the keyboard shortcut editor is rightmost on the view tab

  • @mattylindemann3577
    @mattylindemann3577 Год назад

    Awesome! (or in this case, AUSsome)

    • @AussieBIMGuru
      @AussieBIMGuru  Год назад

      Thanks, and a good pun never goes unappreciated by me!

  • @vuinhduy8314
    @vuinhduy8314 2 года назад

    Dear Sir,
    I have question.
    I want to bound 3 lines by rectangle, try many ways but no hope.
    Could you help me some guide?
    Many thanks.

    • @AussieBIMGuru
      @AussieBIMGuru  2 года назад

      Bounding box by geometry would typically be the way to do this (and you if they aren't joinable as polycurve then you could bound the cuboids of their bounding boxes, joined as a solid union), but if you need the rectangle to be aligned away from the Y axis then it is much harder - and I'm not sure how that would be done. Suggest asking on Dynamo forums. Technically 3 lines could be bound in more than one way depending how they are drawn, so you might need to bound them using brute force, such as testing 360 degrees of bounding box rotation, then taking the smallest area rectangle result. I'd suggest using Grasshopper 3d for that as it is much better at planar aligned bounding boxes and is very quick at bounding.

  •  3 года назад

    madness but useful

  • @bozhou794
    @bozhou794 2 года назад +1

    😀

  • @just_a_statistic
    @just_a_statistic Год назад

    Why multiplied by -1

    • @AussieBIMGuru
      @AussieBIMGuru  Год назад

      To countercorrect the rotation of the object and get it aligned to an axis.