Arraying and Rotating an Object along a path with Dynamo and Revit

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

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

  • @cleudimarneto6149
    @cleudimarneto6149 5 лет назад +2

    Cheers for your videos! I just started using dynamo, and your content is very helpful. Thank you very much

    • @FirasNoori
      @FirasNoori  5 лет назад

      Happy to hear that, any questions i will be there to help

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

    Great job

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

    Hi Firas, great tutorial! When i have two points. The point is used to set the family and the second one to set the direction of the rotation,. The goal is that i can set the family and than it rotates towards the second point. There are a lot of these two point pares and they are independent from each other. Thanks :)

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

      Hi dear, you can re-organize each 2 point by changing the list ordering to allow group of 2 points as one for location and the other for direction

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

      Hi Firas, many thanks for your reply :))
      Which node can I use to rotate the family towards the second point?

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

      @@Maxfocke hi dear, try using "FamilyInstance.Set Rotation"

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

      @@Maxfocke ruclips.net/video/T2PWowX_k98/видео.html

  • @mubashirmamupt7124
    @mubashirmamupt7124 6 лет назад +1

    Jazzakumulla khairn

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

    Any tips for finding the tangents on a polycurve? I have a bunch of model lines joined

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

      Hay, sorry fo rmy late answer, did you try the line.bytangency that I used here in this video?

  • @1102BE
    @1102BE Год назад +1

    hi Firas, great video thanks, do you have a Idea how to solve problem when more than 1 line/curve is selected , in a row - he teaks individual line /curve instead of 1 big, so there is overlapping of the families or there is wrong rotation on some of them.

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

      Greeting, wishing you the best, to answer your question regarding using more than one curve, simply use "Select Model Elements" instead "Select Model Element" as the first allow the selection of more than ONE curve, then use "Element.Curves" to get the Dynamo geometry curve out of the Revit Element Curve, then used "List.Flatten" to soften the list and prepare it for the joining, then use "PolyCurve.ByJoinedCurves" to make on Polycurve from these fragmented curves, now go ahead and use any division, for example "Curve.PointAtParameter" and you notice that you will have all the curves (or the polycurve) divided not only one,
      Cheers
      FN

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

    Great video!
    I did an array, some chairs on an ellipse, on one side the rotation is perfect, on the other half it gets kind of messy. how can I make them all face center?

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

      Hi dear, great, can you post a picture of the result, so I can know what's goings-on? My email is firas007noori@yahoo.com

  • @TheHhtiras
    @TheHhtiras 4 года назад +1

    very very nice

  • @talia8092
    @talia8092 5 лет назад +1

    Love your videos, they are so helpful!! I was wondering if there is a way to select a specific point on the plane so that all of the objects along the path rotate to face the point. Thanks!

    • @FirasNoori
      @FirasNoori  5 лет назад

      Many thanks dear for such kind words, so you are in need to design nodes make a group of objects looking at a specific one point at there centre, coz if you pick a closed circle the nodes I designed will do that? Right ? Or not, if you can send me a sctech of want you want at my email plz

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

    Thank you for sharing your skill. It was very clear and well explained but not sure why the curve in revit model does not show in dynamo:(

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

      Thanks mate, I guess u need a different node to select them or to model them

  • @ghassanalwaely5090
    @ghassanalwaely5090 6 лет назад +1

    الله يرحم والديك أستاذ

    • @FirasNoori
      @FirasNoori  6 лет назад

      الله يبارك بيك يا غالي

  • @JayPabs17
    @JayPabs17 5 лет назад +1

    Is there a way to modify the point at which the object/family sits on the curve and a way to define the direction of the tangent?

    • @FirasNoori
      @FirasNoori  5 лет назад

      Greeting dear Jay, if you want to modify the location of Object/Family on a curve you can simply use "Curve.PointAtParameter" which can specify the location as a percentage (0 =begining and 1=End), the rotation I used the tangent to define it as perpendicular to the curve at all times, but you can "Geometry.Rotate" node to control that manually

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

    I have placed families on a path if I want to align the object along the line (Align longer edge of rectangular object to the path of line). Please let me know how to do that.

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

      I guess that I posted another video to allow the rotation of the element to the path itself here in the channel

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

      @@FirasNoori I dont want to rotate. I just want to align it along the path. If I have placed a rectangular solid block along a path and if I want to align its longer edge along the path like I want to touch the longer edge of solid to the path line. How to do that ? Placed families are at the center of path line and I don't want that. I want it be on the either side of the path line. I think You got my point what I expect.

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

      Aligning is a function inside rotation my dear, anyway, you can use bounding box function to known the lower right And the lower left edge of the box, then move that to the path instead of the center, the array. OR, define the distance between the center of ur object to its lower left edge, and move it prior the array process

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

    how can we tilt object in x, y, z axis

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

      You can do that by normal rotate function like Geometry.Rotate and picking the rotation axis to control the direction

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

    Thanks! I have a question, how can I rotate my elements on a desired degree? I mean, my family type follow a path but I write the degree that I want.

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

      Hi dear, use "FamilyInstance.SetRotation" node, and see this video
      ruclips.net/video/T2PWowX_k98/видео.html
      and this one!
      ruclips.net/video/IRHzQyzCpKc/видео.html
      Cheers
      Firas Noori

  • @timonwanga3340
    @timonwanga3340 5 лет назад +1

    what if you have a staight line within your curves, will it act the same way?

    • @FirasNoori
      @FirasNoori  5 лет назад

      it will act the same if the curve and straight line are made as a polyline or PolyCurve

    • @FirasNoori
      @FirasNoori  5 лет назад

      this is theoretical speak indeed, I did not try it myself, , Have you tried such case??

    • @timonwanga3340
      @timonwanga3340 5 лет назад +1

      wow @@FirasNoori i will try that, only that my segments by lengths

  • @saribal
    @saribal 5 лет назад +1

    Hi, I followed the above video but was hoping that it could be taken one step further? We want to rotate a family around a curve by using 2 points on the family? Is this possible?

    • @FirasNoori
      @FirasNoori  5 лет назад

      Hi dear, can you send me a sketch or a picture of the case you need to achieve plz?

  • @bokeikhankamza9676
    @bokeikhankamza9676 5 лет назад +1

    Hi Firas! Can u help me with Scaling PolyCurves? For example: I am trying scale PolyCurve (number of curves=9) in x and y direction (not z), but nodes like scale (xyz) is not working. I've divided Polycurve to Curves and scaled it, but there were gaps between curves after scaling.

    • @FirasNoori
      @FirasNoori  5 лет назад

      Can you send the script at
      firas007noori@yahoo.com
      Please

    • @FirasNoori
      @FirasNoori  5 лет назад

      Hi mate, I receive the script and I amended it, have a look and tell me here plz

    • @bokeikhankamza9676
      @bokeikhankamza9676 5 лет назад +1

      ​@@FirasNoori Wow, that is rly amazing, in comparison to mine you have reduced a some nodes. Thanks for your feedback!

    • @FirasNoori
      @FirasNoori  5 лет назад

      @@bokeikhankamza9676 welcome dear :)

  •  4 года назад +2

    Hi Mr. Firas, great video! love it! , I wonder if i can do something a little easier, i need to instance an element over the edges of a regular polygon, is it possible?
    Thanks a lot!

    • @FirasNoori
      @FirasNoori  4 года назад

      Yes it is possible, do u want me to make u a video?

    •  4 года назад +1

      @@FirasNoori If it would not be a trouble for you, YES I would really like it, I think many people would like it too, it has many aplications!

    • @FirasNoori
      @FirasNoori  4 года назад

      @ ruclips.net/video/pBIz2_vZK0A/видео.html

  • @SlyGuyKy
    @SlyGuyKy 4 года назад +1

    Hello Faris! I love your videos! Do you know of any way to do this same array and rotating of an object along a path but created in elevation or section ???

    • @FirasNoori
      @FirasNoori  4 года назад +1

      Hello dear, Is that what you mean?
      imgur.com/QA4hnX6

    • @SlyGuyKy
      @SlyGuyKy 4 года назад

      @@FirasNoori Somewhat, but more like this.. imgur.com/6QVMzHF - These are Roof Joists.

  • @bohdanshupeniuk3221
    @bohdanshupeniuk3221 4 года назад +1

    How to rotate text in 3d view for Civil 3d using Dynamo ?

    • @FirasNoori
      @FirasNoori  4 года назад

      3d text in 3d view liie perspective or 2d annotation text in 2d views?

    • @bohdanshupeniuk3221
      @bohdanshupeniuk3221 4 года назад

      @@FirasNoori 3d text in 3d view

    • @bohdanshupeniuk3221
      @bohdanshupeniuk3221 4 года назад +1

      And placed in right place

    • @FirasNoori
      @FirasNoori  4 года назад

      @@bohdanshupeniuk3221 I need ur email to send you some picture of the 3D text, I need to know what do you mean by "Place in right place" I was about to make a video to show you how to rotate a 3D Text in a 3D view on its own location, then I read this commend

    • @bohdanshupeniuk3221
      @bohdanshupeniuk3221 4 года назад

      @@FirasNoori ShupeniukBohdan@gmail.com

  • @applcandy
    @applcandy 4 года назад +1

    I've tried it, but why only the first object alligned to the path, other located perfectly but all of them aren't rotated at all :( pls help

    • @FirasNoori
      @FirasNoori  4 года назад

      Hi dear, please send me ten script ar
      firas007noori@yahoo.com

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

    hi Firas, so informative video thanks. Q: instead of divide by point, can we do like point every x distance ? thank you

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

      Thanks, dear for your kind words, to answer your question, you can define almost all types of division methods; i.e Curve.PointAtEqualChordLength or Curve.PointAtSegmentLengthFromPoint or Curve.PointAtChordLengthFromPoint or Curve.PointAtSegmentLength or Curve.PointAtParameter, different methods depend on what you want and how you want, to what type of input u need, if you need it based on chords coz you are filling straight lines not curve, or you want normal curved segment, etc..
      Firas Noori

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

      @@FirasNoori thank you, I will try the other options, have a nice weekend

  • @TheHhtiras
    @TheHhtiras 4 года назад +1

    ok thank you so much

  • @microphonehead55
    @microphonehead55 5 лет назад +1

    This may be a very dumb question, but is there a way to select a "chain of lines" instead of a spline? I am unable to use the tab key if let's say i have several lines that i want to select all at once. The select element only lets me select one line. Great video by the way!!!!

    • @FirasNoori
      @FirasNoori  5 лет назад

      Well it sound a very smart question!! I never thought of that, I will try to test it and send you the results, I usually use spline but never thought of straight plotline case

    • @FirasNoori
      @FirasNoori  5 лет назад

      Thanks

    • @microphonehead55
      @microphonehead55 5 лет назад +1

      @@FirasNoori Thank you sir! I will greatly appreciate it. I came across this website yesterday and will test it out today. forum.dynamobim.com/t/pick-chain-of-elements/19458

    • @FirasNoori
      @FirasNoori  5 лет назад

      @@microphonehead55 You will never believe!! I am in the same page now!! hahahahah Searching for it :) have a good day dear

    • @microphonehead55
      @microphonehead55 5 лет назад +1

      @@FirasNoori Thank you. My ultimate goal is create a script in which i can select several poly lines and then move them all in the Z axis at a certain interval. So let's say i select 30 poly-lines and i want them all to be 200mm appart in the z-axis or even better to give the overall height and have the lines equally divide along the Z axis. Will be experimenting.

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

    Hello Firas, Great video , I just wanted to ask if we can do a path array and specify a specific distance between two families , How can we achieve that? IN other words , we have the path and we have the family I want to do a path array for example on a model line and the distance between each family is 1 Meter . Can that be achieved ?
    Thanks a lot

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

      Hi Ahmad, thanks, try to use the one of the following (1. Curve.PointAtEqualChordLength, or 2. Curve.PointAtEqualSegementLength) the first if you want the division to be one chord length as it is the imaginary line connect the equal divided points on the curved path! and this one the chords are not running on the actual origin path! the latter, is using segment, and the divided parts are parts of the curves! and they are also curves not straight chords! cheers mate and all the best 2 ya

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

      @@FirasNoori Thanks a lot mate I'm outside my house right now will check it when arrive . Again really grateful for your help

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

      @@ahmadkhalaf826 welcome dear

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

    Bro same concept how to place coordinate please send graph.

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

      what exactly the you want to do?

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

      @@FirasNoori I'm placed some pier family exact co-ordinate location but co-ordinate taken from excel sheet, alignment line also given

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

      @@kaviyuvi9186 Use "Excel.ReadFromFile" node to get the excel info to Dynamo and then use them to "FamilyInstance.ByCoordinate" to place any family (component type) to these coordination

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

      @@FirasNoori sir please explain dynamo graph

  • @ssnanj8014
    @ssnanj8014 4 года назад +1

    Hi. How to Rotatate Structural columns in Revit thru Dynamo.

    • @FirasNoori
      @FirasNoori  4 года назад +1

      Hi, I am off my laptop now, but have you tried to use (eleement.setrotation)?

    • @ssnanj8014
      @ssnanj8014 4 года назад

      @@FirasNoori yes. It works only with Architectural Columns.

    • @FirasNoori
      @FirasNoori  4 года назад

      Still at work dear, i will see it when I get back home, and i will search for a solution

    • @ssnanj8014
      @ssnanj8014 4 года назад +1

      @@FirasNoori Thanks.

    • @ssnanj8014
      @ssnanj8014 4 года назад +1

      @@FirasNoori HI.The given link is not connecting.kindly chk

  • @TechnikaFiesta
    @TechnikaFiesta 4 года назад +1

    Hello sir.
    Tutorial was great. Everything worked other than tangent one. I tried to create tangent lines at the points but no tangent lines appeared. Could you pls help me with that.
    Regards
    Md Naeem

    • @FirasNoori
      @FirasNoori  4 года назад

      Send me a picture here from you script plz

    • @FirasNoori
      @FirasNoori  4 года назад

      Or use wetransfer to send the cript, copy the link from wetransfer.com and then paste it here plz

    • @TechnikaFiesta
      @TechnikaFiesta 4 года назад

      Hello sir,
      Did you analysed the script. ???

    • @FirasNoori
      @FirasNoori  4 года назад

      @@TechnikaFiesta Sorry dear Sir, but I did not do anything related to the channel revision around 2 months !! some answers for people that's all!! as I am stuck at work most of the day !! I am working till late hours now coz of Covid 19 work at home!!
      I am sorry again
      FN

  • @selfenquiry456
    @selfenquiry456 6 лет назад +1

    How can I make different sections of window in autocad 2d...I watched already bt if u know more plzz do something better

  • @alexlj09
    @alexlj09 4 года назад +1

    this only works if the path is has positive tangent. if that is a full circle the other half will mess up

    • @FirasNoori
      @FirasNoori  4 года назад

      Dear Alex, see the video related to the closed path as you requested
      ruclips.net/video/pBIz2_vZK0A/видео.html

  • @ВеентДумской
    @ВеентДумской 5 лет назад +1

    I have got this worning - Instance of a level-based family cannot be created without a valid reference level.

    • @FirasNoori
      @FirasNoori  5 лет назад

      Send me the dynamo plz
      firas007noori@yahoo.com

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

      Did you get the answer

  • @sanjacolic7822
    @sanjacolic7822 5 лет назад +1

    This code didn't work in my case. Actually it worked up to half of a curve, but after that it didn't (rotation was the problem).
    I found solution here: forum.dynamobim.com/t/place-family-perpendicular-to-curve-surface/11537/5

    • @FirasNoori
      @FirasNoori  5 лет назад +1

      If you still need it to be checked send me the nodes on firas007noori@yahoo.com

    • @clasohlson4333
      @clasohlson4333 4 года назад +1

      @@FirasNoori Fantastic tutorial, thanks a lot for the great work! Could you please make a tutorial on how to make text (team name- Manchester Utd) or logo from stadium seatings like this www.manutd.com/en/news/detail/man-united-v-barcelona-match-preview-10-april-2019# Best regards and have a nice day!

    • @FirasNoori
      @FirasNoori  4 года назад +1

      @@clasohlson4333 loved the idea!!