Add the following line:
config.ChildComponentDisplayInBOM = swChildComponentInBOMOption_e.swChildComponent_Promote
After the line:
config = swConfMgr.AddConfiguration("DRAWINGS", "Comment", swModel.GetTitle, swConfigurationOptions2_e.swConfigOption_DoDisolveInBOM , "", "Desc")
I have tried it and it worked for me.
Thank you. I didn`t even know that this option is available.... where did you find it? API help?
Yes, There is an example in API help 'Add Configuration and Promote Child Components in BOM Example'.