Reading radius of curve in open rail generative component

Hello all,

Is it possible to place a particular type of cell along the curve if the radius of curve is less than or greater than some value ?

Thanks in advance

Parents
  • Hi Nikhil

    Apologies for the late pick up here. Here is an example of using Conditional Formatting for showing the Visibility of elements based on the radius of an Arc and for fun changing the colour. For guard rail your may want to look at Generated Node Types for treating it like a parametric cell, but the same node visibility conditional formatting would apply. 

    If the less than value was 10000mm for the arc radius, the syntax in you Visibility property of the node you want to show or hide would be: arc1.Radius > 10000 ? NodeVisibility.Hidden : NodeVisibility.Visible

    Regards

    Stuart

    ConditionalFormatting.dgn


    This is a test

Reply
  • Hi Nikhil

    Apologies for the late pick up here. Here is an example of using Conditional Formatting for showing the Visibility of elements based on the radius of an Arc and for fun changing the colour. For guard rail your may want to look at Generated Node Types for treating it like a parametric cell, but the same node visibility conditional formatting would apply. 

    If the less than value was 10000mm for the arc radius, the syntax in you Visibility property of the node you want to show or hide would be: arc1.Radius > 10000 ? NodeVisibility.Hidden : NodeVisibility.Visible

    Regards

    Stuart

    ConditionalFormatting.dgn


    This is a test

Children
No Data