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: 

C3D 2012 create superelevationcurve method

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
kbarnettza
375 Views, 4 Replies

C3D 2012 create superelevationcurve method

C3D 2012

dot net

c#

 

what is the method to create a superelevation curve in an alignment?

When I try to apply this:

 

Alignment align1 = ts.GetObject(per1.ObjectId, OpenMode.ForWrite) as Alignment;

align1.SuperelevationCriticalStations.Add(align1.StartingStation, SuperelevationCriticalStationType.BeginNormalCrown);

 

I get error: Value does not fall within the expected range

 

I'm guessing the error is caused by the fact that the selected alignment has no superelevation curves.

 

Thx.

Kevin.

4 REPLIES 4
Message 2 of 5
Partha.Sarkar
in reply to: kbarnettza

Hi Kevin,

 

I think the following post in http://adndevblog.typepad.com/infrastructure/ will be useful to you.

 

Want to Add a SuperelevationCriticalStation using Civil 3D .NET API ?

 

http://adndevblog.typepad.com/infrastructure/2012/06/want-to-add-a-superelevationcriticalstation-usi...

 

Hope this helps.

 

Thanks,



Partha Sarkar
Developer Technical Services
Autodesk Developer Network

Message 3 of 5
kbarnettza
in reply to: kbarnettza

SuperelevationCriticalStationCollection criteriaStationColl = align.SuperelevationCriticalStations;

criteriaStationColl.Add(station, SuperelevationCriticalStationType.BeginNormalCrown);

Message 4 of 5
kbarnettza
in reply to: kbarnettza

no. method only adds if the station is within the start and end of the alignment.

method does not allow adding at the start and end stations of the alignment.

 

 

Message 5 of 5
kbarnettza
in reply to: kbarnettza

but ... u can adjust the station values of critical super positions ...

so ... current tested and implemented workaround is to...

add the start and end stations slightly within the alignment then set the station value of these back to the correct start and end stations after creating the critical super positions

 

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

Post to forums  

Rail Community


 

Autodesk Design & Make Report