I want to know how exactly the super elevation within SAC works.
I am building few SAs and some are just multi layered lanes and others are lanes with solder, etc.
How do I add super elevation to SA,
After adding Super elevation to Parameter what is the next thing to do. Any tutorial or step by step guide.
Thanks in Advance.
Solved! Go to Solution.
Solved by denler. Go to Solution.
Hi Raghulan,
To be able to use the superelevation to build your SA, you have to :
Create a new parameter for the road crossfall default value (if superelevation is not applied to the alignment). Let’s call it Road_CrossFall
Create a new variable (double) that you will use to contain the actual superelevation crossfall value. Name it Road_CrossFal_To_Use.
In the value field of the variable paste the code snippet below. I found this code somewhere on the web.
IF(SA.IsLayout,CDbl(Road_CrossFall),
IF((Road_SuperElevation=LeftInsideLane) AND (SE.HasLeftLI) , SE.LeftLI,
IF((Road_SuperElevation=LeftOutsideLane) AND (SE.HasLeftLO) , SE.LeftLO,
IF((Road_SuperElevation=RightInsideLane) AND (SE.HasRightLI) ,SE.RightLI,
IF((Road_SuperElevation=RightOutsideLane) AND (SE.HasRightLO) , SE.RightLO,
IF((Road_SuperElevation=LeftInsideShoulder) AND (SE.HasLeftSI) , SE.LeftSI,
IF((Road_SuperElevation=LeftOutsideShoulder) AND (SE.HasLeftSO) , SE.LeftSO,
IF((Road_SuperElevation=RightInsideShoulder) AND (SE.HasRightSI) , SE.RightSI,
IF((Road_SuperElevation=RightOutsideShoulder) AND (SE.HasRightSO) , SE.RightSO,
CDbl(Road_CrossFall))))))))))
In this code we assume that the superelevation parameter is called Road_SuperElevation.
When you need to create a point with the crossfall/supperelevation value, in the slope field, type Road_CrossFal_To_Use.
Hope this is clear enough.
Regards,
Denis
Thanks Denis,
In my case the user will define the super elevation in the alignment the corridor is associated to. In this case what is the workflow within SAC.
I create the parameter for the user to select SE and then what needs to be done. If you have can you provide with a sample SA with Superelevation a simple example not a complex one. As i need to understand the logic.
also why we need to use this code, in what situations.
From a design perspective, user apply SE to the alignment and then the corridor gets that picked.
Hi Raghulan,
You can find attached a zip file containing a sample SA. It just contains 2 points and a link.
The most complicated part locates in the Road_CrossFall_To_Use variable default field.
Enjoy
Denis
Also,
Is the code you sent has anything to do with driving on which side of road.
Like America or British style of driving i mean on which side of road they drive.
Also if the road already has a parameter slope that the user can specify. how to do that.
Can we add the two slopes together.
I am attaching a sub-assembly please have a look and let me know your thoguths.
Here is the sample SA
Denler,
How do you add an input/output parameter to this subassembly for a grade that the user can plug in when superelevation is not being applied?
See Attached.
Thanks in advance..
Hi Cookusi,
In the Road_CrossFall_To_Use variable, you just have to replace the 0 at the end of the formula by CDbl(Road_DefautSuperElevation) where Road_DefautSuperElevation is the user input param for default superelevation value.
To output the value, just send the Road_CrossFall_To_Use value to the output parameter.
See attached SA.
Regards,
Denis
Denler,
Thanks for the response.
However, the subassembly doesn't move when I change the grade.
See Attached..
Any thoughts?
Mate,
If you could help me with this that would be great.
http://forums.autodesk.com/t5/AutoCAD-Civil-3D-General/SAC-using-Target-parameters/td-p/4697879
Thanks.
Denler,
Actually waht you posted does work.
The user has to change the Superelevation to "None" in order for the other grade to work.
Thanks for your help..
hi,
it seems i have the same problem. i created paramaters for superelevation in the SAC.
I tested the superelevation inside th SAC and it worked perfectley.
the same does not work inside civil 3D.
i tried what you posted but i couldn't figure it out.
can ypu please help me?
you can download the PKT file here
thank you in advance
khaled
Hi Khalend,
It seams that your sub isn't correctly created. The input data for point P2 is a direct input from parameters. You should define a variable to compute the superelevation used value (see above posts).
regards,