Hi @lamichhaneR4TBD, I won't attach the PKT file again since, as I mentioned, I used a different version of the software, and it won't work on your PC unless you install Civil 3D 2025. However, I will provide all the details of what I did to your PKT so you can reproduce them.
This is what I did to your subassembly:
1. I created a new variable for DefaultSlope. I placed it at the beginning of the flowchart since I consider it the best place. However, you can place it anywhere else as long as it is before the point/link you will use it in.

2. Then I inserted a new variable, Superelevation

This is the code for the variable (copy and paste to your subassembly):
IF(SA.IsLayout=True, ctype(DefaultSlope,double),
IF((UseSuperelevation=LeftInsideLane) AND (SE.HasLeftLI) , SE.LeftLI ,
IF((UseSuperelevation=LeftOutsideLane) AND (SE.HasLeftLO) , SE.LeftLO,
IF((UseSuperelevation=RightInsideLane) AND (SE.HasRightLI) ,SE.RightLI,
IF((UseSuperelevation=RightOutsideLane) AND (SE.HasRightLO) , SE.RightLO,
IF((UseSuperelevation=LeftInsideShoulder) AND (SE.HasLeftSI) , SE.LeftSI,
IF((UseSuperelevation=LeftOutsideShoulder) AND (SE.HasLeftSO) , SE.LeftSO,
IF((UseSuperelevation=RightInsideShoulder) AND (SE.HasRightSI) , SE.RightSI,
IF((UseSuperelevation=RightOutsideShoulder) AND (SE.HasRightSO), SE.RightSO,ctype(SubbaseSlope,double))))))))))
3. Assign the "Superelevation" to the Slope field, and remove the superelevation you had assigned before

4. Test the geometry in the preview window and in Civil 3D
I hope this helps.
Best regards!
Camilo Fernández
P.Eng | Transportation
