The Reinforcement BarShapeCutList tool can be used in macros and from the Python console by using the following function: