Community
Civil 3D Customization
Welcome to Autodesk’s AutoCAD Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D Customization topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

subassembly composer superelevation

16 REPLIES 16
SOLVED
Reply
Message 1 of 17
raghulan
10651 Views, 16 Replies

subassembly composer superelevation

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.

Regards,

Raghulan Gowthaman Cert IV TAA, B.E,.
Senior Technical Consultant | Developer - R&D
A2K Technologies Sydney
Web : www.a2ktechnologies.com.au
www.civil3dforum.com | www.e4forums.com
www.zcodia.com.au
www.raghulangowthaman.com
16 REPLIES 16
Message 2 of 17
denler
in reply to: raghulan


Hi Raghulan,


To be able to use the superelevation to build your SA, you have to :


  1. Create a new parameter for the road crossfall default value (if superelevation is not applied to the alignment). Let’s call it Road_CrossFall

  2. Create a new variable (double) that you will use to contain the actual superelevation crossfall value. Name it Road_CrossFal_To_Use.

  3. 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.

     

  4. 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


Message 3 of 17
raghulan
in reply to: denler

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.

Regards,

Raghulan Gowthaman Cert IV TAA, B.E,.
Senior Technical Consultant | Developer - R&D
A2K Technologies Sydney
Web : www.a2ktechnologies.com.au
www.civil3dforum.com | www.e4forums.com
www.zcodia.com.au
www.raghulangowthaman.com
Message 4 of 17
denler
in reply to: raghulan

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 Smiley Happy

 

Denis

Message 5 of 17
raghulan
in reply to: denler


Fantastic..I would give it a go and keep you posted. Thanks.
Regards,

Raghulan Gowthaman Cert IV TAA, B.E,.
Senior Technical Consultant | Developer - R&D
A2K Technologies Sydney
Web : www.a2ktechnologies.com.au
www.civil3dforum.com | www.e4forums.com
www.zcodia.com.au
www.raghulangowthaman.com
Message 6 of 17
raghulan
in reply to: denler

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.

Regards,

Raghulan Gowthaman Cert IV TAA, B.E,.
Senior Technical Consultant | Developer - R&D
A2K Technologies Sydney
Web : www.a2ktechnologies.com.au
www.civil3dforum.com | www.e4forums.com
www.zcodia.com.au
www.raghulangowthaman.com
Message 7 of 17
raghulan
in reply to: raghulan

Here is the sample SA

Regards,

Raghulan Gowthaman Cert IV TAA, B.E,.
Senior Technical Consultant | Developer - R&D
A2K Technologies Sydney
Web : www.a2ktechnologies.com.au
www.civil3dforum.com | www.e4forums.com
www.zcodia.com.au
www.raghulangowthaman.com
Message 8 of 17
denler
in reply to: raghulan

Hi Raghulan,

 

Can you reattach the zip file. The download link is corrupted.

 

Regards,

 

Denis

Message 9 of 17
raghulan
in reply to: raghulan

It worked thanks mate.. really great work.
Regards,

Raghulan Gowthaman Cert IV TAA, B.E,.
Senior Technical Consultant | Developer - R&D
A2K Technologies Sydney
Web : www.a2ktechnologies.com.au
www.civil3dforum.com | www.e4forums.com
www.zcodia.com.au
www.raghulangowthaman.com
Message 10 of 17
ccookusi
in reply to: denler

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..

Windows 10 Pro x64
Civil 3D 2018
Dell Precision 7720
i7 7700HQ
NVIDIA Quadro P3000
NVMe Samsung SSD 960 Boot
16 GB Ram
Message 11 of 17
denler
in reply to: ccookusi

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

Message 12 of 17
ccookusi
in reply to: denler

Denler,

Thanks for the response.

However, the subassembly doesn't move when I change the grade.

See Attached..

Any thoughts?

 

Windows 10 Pro x64
Civil 3D 2018
Dell Precision 7720
i7 7700HQ
NVIDIA Quadro P3000
NVMe Samsung SSD 960 Boot
16 GB Ram
Message 13 of 17
raghulan
in reply to: denler

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.

Regards,

Raghulan Gowthaman Cert IV TAA, B.E,.
Senior Technical Consultant | Developer - R&D
A2K Technologies Sydney
Web : www.a2ktechnologies.com.au
www.civil3dforum.com | www.e4forums.com
www.zcodia.com.au
www.raghulangowthaman.com
Message 14 of 17
ccookusi
in reply to: denler

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..

 

 

Windows 10 Pro x64
Civil 3D 2018
Dell Precision 7720
i7 7700HQ
NVIDIA Quadro P3000
NVMe Samsung SSD 960 Boot
16 GB Ram
Message 15 of 17
khaledCULN8
in reply to: denler

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

Message 16 of 17

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,

Message 17 of 17
kono.dimiter7
in reply to: denler

Hello!

 

How can i change slope in the "Road_CrossFall_To_Use"? 

Tags (1)

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


 

Autodesk Design & Make Report