Subassembly composer superelevation

Subassembly composer superelevation

lamichhaneR4TBD
Participant Participant
2,358 Views
5 Replies
Message 1 of 6

Subassembly composer superelevation

lamichhaneR4TBD
Participant
Participant

I created a sub assembly for the Curb and Gutter that has few adjustments than the regular one in C3D. It works fine if I hard code in the superelevation but doesn't work if I leave it blank and chose from the C3D. Just want to be able to use it on both sides using "Left Outside Lane Slope" and "Right Outside Lane Slope".

 

Attached are the Subassembly and few pictures. 

0 Likes
Accepted solutions (2)
2,359 Views
5 Replies
Replies (5)
Message 2 of 6

ecfernandez
Mentor
Mentor

Hi @lamichhaneR4TBD, I hope you are doing well. You can solve that with a variable to store the superelevation value. Check the attached PKT file. I changed the Slope field of your AP1&AL3 point and eliminated the Superelevation you had.

ecfernandez_1-1716935783172.png

 

ecfernandez_0-1716935756520.png

 

I tested its behavior in the preview window, and it seems to work. See images

ecfernandez_2-1716935848804.pngecfernandez_3-1716935890794.png

 

However, I invite you to check it in C3D to be completely sure.

I hope this helps. Best regards!

 

Camilo Fernández

P.Eng | Transportation

EESignature

LinkedIn
0 Likes
Message 3 of 6

lamichhaneR4TBD
Participant
Participant

I am unable to load the pkt file in both SAC and C3D. Could you resend it?

lamichhaneR4TBD_0-1716988531644.png

 

Message 4 of 6

ecfernandez
Mentor
Mentor
Accepted solution

Hi @lamichhaneR4TBD, I forgot to mention I used subassembly composer 2025. I’ll post screenshots of the variable so you can recreate what I did. I’m not on my laptop right now but I'll come back to this post as soon as I can. Regards 

Camilo Fernández

P.Eng | Transportation

EESignature

LinkedIn
0 Likes
Message 5 of 6

ecfernandez
Mentor
Mentor
Accepted solution

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.

ecfernandez_0-1717008503733.png

 

2. Then I inserted a new variable, Superelevation

ecfernandez_1-1717008562070.png

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

ecfernandez_2-1717008754622.png

 

4. Test the geometry in the preview window and in Civil 3D

 

I hope this helps.

 

Best regards!

Camilo Fernández

P.Eng | Transportation

EESignature

LinkedIn
Message 6 of 6

lim.wendy
Alumni
Alumni

Hi @lamichhaneR4TBD ,

 

Thank you for reaching out to the forum. Camilo provided a detailed answer to your question about subassembly composer superelevation, which seems to address the issue you're experiencing. I will proceed to mark his reply as the solution.

 

Please let us know if you require further assistance. 

 



Wendy Lim

Data Nerd | Community Advocate | AEC Industry


facebook twitter twitter blogs pm


Join the new online Rail Community


Rails Summit