Alignment.Create Method - AlignmentType, where to set?

Alignment.Create Method - AlignmentType, where to set?

martin.folber
Advocate Advocate
708 Views
4 Replies
Message 1 of 5

Alignment.Create Method - AlignmentType, where to set?

martin.folber
Advocate
Advocate

Hi guys,

we got into big trouble. We are trying to create RAIL alignment (just one curve) using API method and there is no possibility to set Alignment Type... So please could you advice me how to do it. We need Rail because of cant... The way using corridor is crazy...

 

Thanks

Martin

0 Likes
709 Views
4 Replies
Replies (4)
Message 2 of 5

joantopo
Mentor
Mentor

Have you calculated Superelevations previously?

 

Maybe is a constraint and you cannot do that if your alignment already has Superelevations.

 

In Civil 3D, if you try to change the type of an alignment to "Rail" and this has Superelevations, it appears a dialog box about this.

 

You could remove all SuperelevationCritical Stations if they exists before changing this alignment to Rail type.

 

The reason is because Rail Alignments have their own Superelevations Assistant.

 

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
0 Likes
Message 3 of 5

Jeff_M
Consultant
Consultant
Joan, the AlignmentType property is Read-Only in the .NET API and it's not even available in the COM API.
Jeff_M, also a frequent Swamper
EESignature
0 Likes
Message 4 of 5

martin.folber
Advocate
Advocate

Hello guys,

I got response from Autodesk support, there is no API support for that 😞

 

Martin

0 Likes
Message 5 of 5

465340553
Mentor
Mentor

Can you use this method to create alignment?

Specify AlignmentType here.

465340553_0-1697588663848.png

 

王磊
您认为此帖子是否有用?欢迎为此帖点赞。
您的问题是否已得到解答?请点击“接受解答”按钮。

EESignature

0 Likes