Limit the number of shapes that can be drawn on a figure

Is there a way to set the maximum number of shapes that can be drawn on a figure? I want the user to not be able to draw anymore shapes on a figure after the first shape is drawn on the figure, as shown on the screenshot below.

Hi @ray26 ,

you could check the length of the list which contains the shapes

1 Like

Hi @AIMPED thanks a lot!

1 Like