.. algorithm:: .. summary:: .. relatedalgorithms:: .. properties:: Description ----------- Creates a shape object that defines the sample and sets the sample for the given workspace. Shapes are defined using XML descriptions that can be found :ref:`here `. .. note:: It is recommended that you use :ref:`SetSample ` instead. Usage ----- **Example - A Sphere** .. testcode:: Sphere ws = CreateSampleWorkspace("Histogram",BankPixelWidth=1) shape_xml = ''' ''' CreateSampleShape(ws,shape_xml) **Example - A ball with a cylinder carved out of the middle** .. testcode:: BallwithHole ws = CreateSampleWorkspace("Histogram",BankPixelWidth=1) shape_xml = ''' ''' CreateSampleShape(ws,shape_xml) .. categories:: .. sourcelink::