Adaptive component- repeat between XYZ points

Hello

(newbie question)

I am trying to run a 2 point cylindrical adaptive component along a three dimensional path, think a complex rollercoaster-like path.

I have an Excel file which contains XYZ coordinates and the path between each of the points is straight i.e result is a faceted or segmented ‘sweep’
I am ok as far as using Dynamo to extract the coordinates and create points.

Since my adaptive family only requires 2 points, the question is how can I loop through the coordinates in the list, and repeat the adaptive component as follows:

Segment 1: from Point 0 to Point 1
Segment 2: from Point 1 to Point 2
Segment 3: from Point 2 to Point 3
etc…around 1000 points total

It currently fails as the input list of points does not have the same number of values required by the adaptive component.
In other words, I need to split it up into pairs of points, insert the family, then move onto the next points in the list

If it makes it easier, I can tweak the Excel data so that each record has XYZ start & XYZ finish values for each segment.

thank you in advance, any help greatly appreciated,

 

Andrew

 

 

etc

 

 

Andrew

 

 

Hello ANDREW HANNELL,

You need to divide the list in a way that it has two points in it.

Look at below image and make same changes to your graph.

Please let me know if this workflow doesn’t work for you.

Thanks,

Ritesh

1 Like

Hi Ritesh

thank you for the very quick reply.

I don’t quite understand. I have tried List.Chop and it produces lists with 2 points in it similar to your screenshot.

Are you saying I need the List.Map step ?

 

Capture

Andrew

List.Sublists and List.Chop aren’t the same

For a list {1,2,3,4,5…}

List.Chop (lengths=2) would create {{1.2},{3,4},{5.6}…}

List.Sublists (ranges=0…1 and offset=1) would result in {{1,2}.{2,3},{3.4}…}

However, by changing the offset value List.Sublists can give you the same the same results as List.Chop.

3 Likes

thanks Vikram

Hi Andrew, what you are describing sounds a lot like a project I´ve just done in dynamo (https://www.youtube.com/watch?v=fuiqg3nEAkE) check it out, if you see anything that would help let me know

1 Like

Hi Rodrigo

Sorry, I did not see your reply before (email notifications from the forum don’t seem to work)

thanks for sharing- what you have done looks great. It looks like the coordinates are at a particular spacing along the pipe ?
So it gets broken up into a lot of segments, even if it is a straight run (say between thrust blocks).

If only there was a better way to transfer data from C3D to Revit- Autodesk have to fix this…

With some help from Vikram- I did get mine to work.
It was for a precast segmental tunnel- the complete tunnel has thousands of precast rings.
There are some screenshots at the bottom of this post
http://dynamobim.org/forums/topic/lists-values-out-of-sync/

 

Andrew

 

 

1 Like

final result

 

20151224 Dynamo tunnel

Hi Andrew, i was just browsing through forums and i have read your post from 2015.(hope you are around still :slight_smile: )
i have a question about your final result. How did you manage to create that pipe with Adaptive component. Pipe is basically a circle extruded on a spline however how did you manage to connect the AC rings to each other because each one is placed on a point, they cant interact each other.

i mean when you bend the pipe, rings will be collide.

hi @grybatur

yes, still around…

for my purposes (a construction sequence/simulation) and the slight curvature of the tunnel, it didn’t matter that the rings collided a little

Sorry if I’m telling you something you already know- these segmental tunnels are constructed with identical, slightly tapered rings that are rotated to ‘steer’ the tunnel.
So to steer up at maximum curvature, you would put the narrowest parts of the rings all at the top. To go straight- alternate narrowest part at the top & bottom, or left/right

The geometry gets complicated- but you could possibly do it in Dynamo.
Alternatively- the TBM guidance/control system must have an algorithm which works out the ring rotations

Andrew

1 Like

Thanks Andrew. you did great job. same problem I am facing for tunnel modelling. Could you please share screen shot of script that you done. Path is not working that you shared before.
http://dynamobim.org/forums/topic/lists-values-out-of-sync/

Thanks in advance
Shiv

Hello Mr.Hannell,
I’m very interested to know more about the design of tunnels. Please, could you share some example of your works, dynamo and rvt files?.
Thank you so much in advance. Is very impressive and I was looking for that long time ago.

hi andrew ,

I have a much simpler method of creating pair of points which you require , since i wasnt much familiar with dynamo initially . I developed this workflow . I did this succesfully in one of the metro tunneling projects using the same concept of 2 point adaptive family

Suppose you have a coordinates list in excel file , assuming the following points in that file -
P1(X,Y,Z), P2(X,Y,Z), P3(X,Y,Z) , P4(X,Y,Z), P5((X,Y,Z) , P6(X,Y,Z) .

So the adaptive ring family would loop through the points in the form of segments placed between the points like segment 1 - from P1 to P2, segment 2- from p2 to p3 and so on …

what you an do is to create a copy of the same excel file
File 1- p1, p2 , p3, p4 , p5, p6
File 2- p1, p2, p3, p4 ,p5 , p6

Needed pairs - (p1,p2) (p2,p3) (p3,p4) and so on…

Next step
( delete p6 or last value from this file1 )
( delete p1 or first value from this file ).

Now you can merge the two files and create a new list and then transpose it . it will give the desired points in pairs as required . you can refer the attached screenshots

1 Like

@Andrew_Hannell, @Shahid.masood
Hello!
I am doing similar task - subway tunnel with rail, rail base and equipment. I have a problem with rails - cannot to export to Revit, then see your method via adaptive component. How have you do rails?

Thank you in advance.

That is quite a broad question & the answer depends on exactly what you want.

If just an approximation of the tracks- you could use the same approach as the tunnel lining, or even in the same adaptive family. In this case- the tracks would be faceted (straight sections) rather than curved, unless the family has multiple control points

If you want the tracks to have cant/superelevation, it gets much more complicated. It’s probably necessary to build the geometry in Revit- such as a swept profile

If you post a specific Dynamo question on this forum- then someone will most likely answer it

please share this file

:rofl: anything update?

Nearly a 8 year old thread which has been inactive for nearly 3 years, with no real contributions to the conversation for about 4 years, so I’m going to close this - @Ken.HoGXTTP if the link which @RMohareb provided doesn’t get you enough clarity please start a new topic.

2 Likes