Rotate family along a path

Hello!
Im having a problem with the rotation of my family along a path. It shouldnt be a huge problem but Dynamo only rotates the first family and the others not. (see screenshot).
Could anyone assist in this?
Thank you in advance!

Hi :slight_smile:

Have you tried using the list levels ? Try setting FamilyInstance.SetRotation inputs level to @L2 and @L1.

http://primer.dynamobim.org/en/06_Designing-with-Lists/6-3_lists-of-lists.html#

But the input level for "SetRotation is already set to @L2 and @L1 or not?
And from the list it seems like only the first point is coming through and the others not.

Could you show what you tried ? :slight_smile:

Here is what i thought of :

16bfdcfcaeadf7721f46d257a623cb71d5f135d2

1 Like

yeahh it worked like that. Im pretty new to Dynamo so I didnt know how to do that :smiley:
Thank you! :slight_smile:
May I have another question?
When I got a family with a profile which is extruded for example about a meter, it needs to have two points.
So I want to place this family along a path. How do I do that?

Glad i helped :slight_smile:

I’m no expert, but if your family is an adaptive component family, you can use the AdaptiveComponent.ByPoints node.

Im not sure how to place both points of my adaptive family on the path. Have you got a solution for that? :slight_smile:

You should use AdaptiveComponent.ByPoints to make adaptive components. To use it, you need to feed a list of sublists, where the sublist has the points to make the component by. The list structure should be like this:

[0] List - for adaptive component 1
    [0] Point1
    [1] Point2
[1] List - for adaptive component 2
    [0] Point1
    [1] Point2
etc...
2 Likes

Well, clearly it depends on your whole your graph but the idea is to generate couples of points that describe the placement of the instances of your families. The AdaptativeComponent.ByPoints node should help you do that.

Refer to @kennyb6 post, he said it all :slight_smile:

That wont be an easy challenge. Because Im getting an Excel File from Civil 3D. From this points Im creating my curve. And the easiest way for me now would be to tell the family it needs to pick its Z Values from the created curve.
Because I want to place this family not only once, just behind one another.
Im happy that you are trying to help me. Thank you :slight_smile:

How about dividing your curve directly on Dynamo ? You have several nodes that might help you do that. From the division you’ll get, you could simply compute the corresponding points.

If you just want to place one instance of your family (i.e. if it is only a cross section that you want to extrude over a curve, you might simply only give the strat and the point of that long curve, it should do the trick.

1 Like

In this project an extrusion is not enough unfortunately.
I need to have many tunnel blocks with not always the same length.
The length should be taken from an Excel file. But its hard to tell Dynamo to divide my path into not equal Chord lengths right?

In my experience, this is quite doable. You should use something like the Curve.PointAtSegmentLength node, and feed in the list of lengths (tweaked a little bit) to generate your points.

I tried it the way you said it and got now for example 2 points.
Now I need to say the AdaptiveComponent.ByPoints node to pick these 2 points the way kennyb6 wrote right?
But how exactly do i do that?

I do not have access to all of your inputs, so hard to tell. Try to do the exercises of this link (and the ones that follow), it might help you create all the inputsyou need for your problem : http://primer.dynamobim.org/en/06_Designing-with-Lists/6-2_working-with-lists.html

I’ll make a quick example by myself if I can.

1 Like

Tried it this way. But it doesnt work. Any idea?

You can try something like this : (sorry the names got cut down, but the names of the variables are : total_len, lens, params, params_final)

4 Likes

thank you mellouze. Got it work :slight_smile:
Another question (Can i always post it here or do i need to make a new topic for that?)
I need to substract two lists to get the length of every tunnel block. I tried a few things but it didnt work. (See

screenshot). Any idea?

ok already found the problem :slight_smile:
I needed to make String.ToNumber and then subtract the lists

1 Like

Glad you figured it out :slight_smile:

Always try to make distinct topics for really distinct problems as it is more convinient for people looking for the answer to a specific problem !

1 Like