Civil3D python script GetSettings() method

HI everyone.

I’m trying to transform example from Civil 3D Developer’s Guide in C#(

SettingsCmdCreateAlignmentLayout alignLayoutCmdSettings = doc.Settings.GetSettings();
ed.WriteMessage(@"Alignment Layout Command settings: AlignmentType: {0} ",

to Python script

but i have issue:
Traceback (most recent call last):

  • File “”, line 29, in *
    AttributeError: ‘bool’ object has no attribute ‘AlignmentTypeOption’


I had the same issue. Anyone have an answer?