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


Leave a Reply