Civil3D python script GetSettings() method

HI everyone.

I’m trying to transform example from Civil 3D Developer’s Guide in C#(http://docs.autodesk.com/CIV3D/2014/ENU/Developers_Guide/index.html?_ga=2.233647070.1562846937.1578673800-572716807.1575813176):

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


to Python script

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

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

Why?

I had the same issue. Anyone have an answer?