Use model.component(<ctag>).mesh(<tag>).create(<ftag>,"BndLayer") to create a boundary layer mesh in 2D or 3D.
Use model.component(<ctag>).mesh(<tag>).feature(<ftag>).selection() to specify the domain selection. If you do not specify the selection, the feature operates on all domains.
Use model.component(<ctag>).mesh(<tag>).feature(<ftag>).create(<ftag1>,"BndLayerProp") to add a
BndLayerProp attribute feature defining the locations and properties of the boundary layers.