# Place Block along Rail with CANT

**URL:** <https://forum.dynamobim.com/t/place-block-along-rail-with-cant/60920>\
**Category:** Civil 3D\
**Created:** [February 25, 2021, 3:56am UTC](https://forum.dynamobim.com/t/place-block-along-rail-with-cant/60920 "2021-02-25T03:56:00Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![aa047](https://avatars.discourse-cdn.com/v4/letter/a/858c86/32.png) [@aa047](https://forum.dynamobim.com/u/aa047)\
**Post date:** [February 25, 2021, 3:56am UTC](https://forum.dynamobim.com/t/place-block-along-rail-with-cant/60920/1 "2021-02-25T03:56:00Z")

</div>

Hi, I’m currently attempting to place rail sleepers/ties along a rail alignment with CANT applied using the AlignmentExtensions.GetCantInfoAtStation node. but and struggling with orientating the block to follow the cant rotation. Any ideas please?

---

<div class="post-metadata">

**Author:** ![mzjensen](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@mzjensen](https://forum.dynamobim.com/u/mzjensen)\
**Post date:** [February 25, 2021, 6:21am UTC](https://forum.dynamobim.com/t/place-block-along-rail-with-cant/60920/2 "2021-02-25T06:21:48Z")

</div>

Hi @aa047 ,

I’m not a rail expert, but could you get coordinate systems along the profile at the desired sleeper locations and then rotate them?

[Cant Example.dwg](https://forum.dynamobim.com/uploads/short-url/uXPcgXZocPmar8uKsSAE9zdQLNp.dwg) (1.5 MB)  
[Cant Example.dyn](https://forum.dynamobim.com/uploads/short-url/gWfOqErwL9KkttdcMQbyU1Mf8xl.dyn) (935.3 KB)

![Cant](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/3/f39e13af3de4ccf5ee8060fbe0bad2b43fbdfadf.gif)

---

<div class="post-metadata">

**Author:** ![aa047](https://avatars.discourse-cdn.com/v4/letter/a/858c86/32.png) [@aa047](https://forum.dynamobim.com/u/aa047)\
**Post date:** [February 25, 2021, 6:39am UTC](https://forum.dynamobim.com/t/place-block-along-rail-with-cant/60920/3 "2021-02-25T06:39:52Z")

</div>

Thank you @zachri.jensen that works!,

I actually manged to get it to work about 5 mins before you posted via a different node.  
I found Vector.Rotate worked a treat too.

Thankyou

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/3/430437eef6a26ebad13fa0efb5585813b9773605.png)

---

<div class="post-metadata">

**Author:** ![mzjensen](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@mzjensen](https://forum.dynamobim.com/u/mzjensen)\
**Post date:** [February 25, 2021, 6:41am UTC](https://forum.dynamobim.com/t/place-block-along-rail-with-cant/60920/4 "2021-02-25T06:41:02Z")

</div>

Multiple ways to get there 🙂 glad it works!

---

<div class="post-metadata">

**Author:** ![richard.vanderspuy](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@richard.vanderspuy](https://forum.dynamobim.com/u/richard.vanderspuy)\
**Post date:** [May 14, 2021, 7:01pm UTC](https://forum.dynamobim.com/t/place-block-along-rail-with-cant/60920/7 "2021-05-14T19:01:40Z")

</div>

Hi @zachri.jensen

Thank you for posting your Cant Example.dyn script.  
I have added a basic corridor to your Cant Example.dwg using the standard “RailSingleTrackCANT\_w\_ExtraLayers” subassembly from the rail toolpalette to check whether the ties are placed as expected.  
It appears however that the ties do not follow the same cant as the corridor. See below.

Do you perhaps have any ideas what i may be doing wrong or what the reason might be?

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/5/6501224588fd5c9129a7ae3a33830cee185cad1a.png)

---

<div class="post-metadata">

**Author:** ![aadarsh.desai](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@aadarsh.desai](https://forum.dynamobim.com/u/aadarsh.desai)\
**Post date:** [August 2, 2021, 10:00am UTC](https://forum.dynamobim.com/t/place-block-along-rail-with-cant/60920/8 "2021-08-02T10:00:21Z")

</div>

Hi @zachri.jensen, thanks for this graph, i have tried using it and i am running into the following error;  
The block are placed along the alignment, however, there are gaps in-between, I have tried changing to the geometry scaling to “Extra Large” and made sure that the blocks are uniformly scaled. Any ideas on what I can do?

PS: the alignment is fully continuous and the spacing set on the graph is 0.75m

Many thanks!

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/2/923eba6ce91d1323d22710035debaf4cdc45f1b8.png)  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/9/a957035760eec8c2670def3da269c7a456181983.png)

---

<div class="post-metadata">

**Author:** ![mzjensen](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@mzjensen](https://forum.dynamobim.com/u/mzjensen)\
**Post date:** [August 2, 2021, 7:37pm UTC](https://forum.dynamobim.com/t/place-block-along-rail-with-cant/60920/9 "2021-08-02T19:37:13Z")

</div>

Hi @aadarsh.desai,

As a rule-of-thumb, leave the geometry scaling set to “Medium”. There are other examples on the forum for why that is the case.

Regarding the warning, I’ve been able to solve this in the past by changing the block definition to **not** be scaled uniformly. It’s not what the warning says, but it seems to work.

---

<div class="post-metadata">

**Author:** ![patrick.ericson](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/patrick.ericson/32/121411_2.png) [@patrick.ericson](https://forum.dynamobim.com/u/patrick.ericson)\
**Post date:** [November 17, 2021, 10:28pm UTC](https://forum.dynamobim.com/t/place-block-along-rail-with-cant/60920/10 "2021-11-17T22:28:54Z")

</div>

Hi @richard.vanderspuy  
I was think about this as well because the sleeper has to get its elevation from the lowest side when it get in to a curve and your picture shows is really good.

Have you find a way to deal with it?

---

<div class="post-metadata">

**Author:** ![ricaerrido](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ricaerrido/32/115965_2.png) [@ricaerrido](https://forum.dynamobim.com/u/ricaerrido)\
**Post date:** [October 26, 2023, 6:12pm UTC](https://forum.dynamobim.com/t/place-block-along-rail-with-cant/60920/11 "2023-10-26T18:12:07Z")

</div>

It is an honor to live in the same generation of you, @zachri.jensen. Thank you so much!

---

<div class="post-metadata">

**Author:** ![ricaerrido](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ricaerrido/32/115965_2.png) [@ricaerrido](https://forum.dynamobim.com/u/ricaerrido)\
**Post date:** [November 29, 2023, 4:39pm UTC](https://forum.dynamobim.com/t/place-block-along-rail-with-cant/60920/12 "2023-11-29T16:39:41Z")

</div>

Is there any specific scenario for this situation? Because there is Cant Data in my Rail Alignment but I can’t read this Cant Data with AlignmentExtensions.GetCantInfoAtStation.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/f/0f9c4736ebc827c685c4d97d98e1bf7b696e7d11.png)

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/3/533f9f9efd477530e3b7c3ced28260c469f6de4a.png)

---

<div class="post-metadata">

**Author:** ![koad](https://avatars.discourse-cdn.com/v4/letter/k/a3d4f5/32.png) [@koad](https://forum.dynamobim.com/u/koad)\
**Post date:** [November 30, 2023, 1:41pm UTC](https://forum.dynamobim.com/t/place-block-along-rail-with-cant/60920/13 "2023-11-30T13:41:27Z")

</div>

@ricaerrido  
One question,

Did you create railway alignment in the Civil3d or you imported it from Landxml(from different design system?)

Br Adam

---

<div class="post-metadata">

**Author:** ![ricaerrido](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ricaerrido/32/115965_2.png) [@ricaerrido](https://forum.dynamobim.com/u/ricaerrido)\
**Post date:** [November 30, 2023, 3:23pm UTC](https://forum.dynamobim.com/t/place-block-along-rail-with-cant/60920/14 "2023-11-30T15:23:31Z")

</div>

It was created in Civil 3D as a Rail Alignment.

I had thought it could’ve been a Data Shortcuts limitation but I’ve tested in the sorce file and it’s happened the same.

---

<div class="post-metadata">

**Author:** ![ricaerrido](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ricaerrido/32/115965_2.png) [@ricaerrido](https://forum.dynamobim.com/u/ricaerrido)\
**Post date:** [December 18, 2023, 8:15pm UTC](https://forum.dynamobim.com/t/place-block-along-rail-with-cant/60920/15 "2023-12-18T20:15:31Z")

</div>

Forgt it. Node is working perfectly.

---

<div class="post-metadata">

**Author:** ![AKSHN](https://avatars.discourse-cdn.com/v4/letter/a/85f322/32.png) [@AKSHN](https://forum.dynamobim.com/u/AKSHN)\
**Post date:** [June 18, 2025, 8:44am UTC](https://forum.dynamobim.com/t/place-block-along-rail-with-cant/60920/16 "2025-06-18T08:44:55Z")

</div>

Hi, Iam new to Dynamo, I also encountered a similar problem while placing sleepers. I need to rotate the sleepers with respect to a specific point that is at the top point of rail(depending on curve direction). Any ideas please?

---

<div class="post-metadata">

**Author:** ![Aravinth.Pichamani](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@Aravinth.Pichamani](https://forum.dynamobim.com/u/Aravinth.Pichamani)\
**Post date:** [June 25, 2025, 2:37pm UTC](https://forum.dynamobim.com/t/place-block-along-rail-with-cant/60920/17 "2025-06-25T14:37:06Z")

</div>

[Sleeper.dyn](https://forum.dynamobim.com/uploads/short-url/zRry2rGHrJItidY3xivon9potQi.dyn) (33.6 KB)
