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: 

¿ TransitionDescription only for SuperelevationCriticalStationType=Manual? (API)

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
joantopo
335 Views, 2 Replies

¿ TransitionDescription only for SuperelevationCriticalStationType=Manual? (API)

I can set Description when SuperelevationCriticalStation is type= Manual, but with other SuperelevationCriticalStationType are either (BeginFullSuper,BeginNormalCrown, etc) , I recive the next warm:

 

"Invalid Operation Exception".

 

I´m using the following code:

 

 CriticalStationColl.Add(100, Autodesk.Civil.SuperelevationCriticalStationType.BeginFullSuper);

  CriticalStation = CriticalStationColl.GetCriticalStationAt(100, 0.01);
                                                 CriticalStation.TransitionDescription = " description...";

 

Autocad C3D 2019 SP3, 2020 & 2021
Intel I9 9900K with frontal watercooler alphacool eisbaer 360 (original fans mounted in pull)- 3 fans Corsair 120 ML PRO in push.
MOBO Gygabyte Z390 Aorus Master- Corsair RGB Vengeance 64GB RAM (4x16) CL16
Nvidia Quadro RTX 4000
Samsung 970 EVO PLUS 1TB (unit C). Samsung 970 PRO 512GB (for data)
Power Supply: Corsair TX850M PLUS


Descubre mi programa VisorNET para Civil 3D:
https://apps.autodesk.com/CIV3D/es/Detail/Index?id=appstore.exchange.autodesk.com%3avisornet_windows32and64%3aes
2 REPLIES 2
Message 2 of 3
joantopo
in reply to: joantopo

I have the answer question:

 

System.InvalidOperationException	=  Thrown when changing TransitionDescription value on a critical station which StationType is not SuperelevationCriticalStationType::Manual.

 

 

Autocad C3D 2019 SP3, 2020 & 2021
Intel I9 9900K with frontal watercooler alphacool eisbaer 360 (original fans mounted in pull)- 3 fans Corsair 120 ML PRO in push.
MOBO Gygabyte Z390 Aorus Master- Corsair RGB Vengeance 64GB RAM (4x16) CL16
Nvidia Quadro RTX 4000
Samsung 970 EVO PLUS 1TB (unit C). Samsung 970 PRO 512GB (for data)
Power Supply: Corsair TX850M PLUS


Descubre mi programa VisorNET para Civil 3D:
https://apps.autodesk.com/CIV3D/es/Detail/Index?id=appstore.exchange.autodesk.com%3avisornet_windows32and64%3aes
Message 3 of 3
Anonymous
in reply to: joantopo

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

Post to forums  

Rail Community


 

Autodesk Design & Make Report