What controls the radius of the curves when we create Alignment?

By Partha Sarkar

In 'Do you want to programmatically convert polyline to Civil 3D Alignment object?' I showed how to convert a Polyline to a Civil 3D Alignment object. Christopher of CIVIL 3D REMINDERS asked about what controls the radius of the curves? I thought I will take a quick look into this and share my findings with you all.

Radius of the curve is determined by the value set for "Default radius" under 'Create from Entities' in "Edit Command Settings – CreateAlignmentEntities" dialog box as shown in the screenshot below.

Alignment_Radius

And this value can be accessed using following code snippet –

 

Dim settingsCmdCrAlignmentEnt As Autodesk.Civil.Settings.SettingsCmdCreateAlignmentEntities = civilDoc.Settings.GetSettings(Of Autodesk.Civil.Settings.SettingsCmdCreateAlignmentEntities)()

ed.WriteMessage(vbCrLf + "SettingsCmdCreateAlignmentEntities.SettingsCmdCreateFromEntities.Radius =  :  " + settingsCmdCrAlignmentEnt.CreateFromEntities.Radius.Value.ToString())           

 

Hope this helps !


Comments

Leave a Reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading