cubit.subtract

I cannot figure out how to use the command cubit.subtract. I always get a message error such as :
return _cubit.subtract(*args)
NotImplementedError: Wrong number or type of arguments for overloaded function ‘subtract’.
At the beginning I wanted to do :
subtract body 1 from body 2 imprint keep
in order to get the numbers of the generated volumes
but even cubit.subtract(1,2) generates an error
Thank you

You could use cubit.cmd() in your script like this:

cubit.cmd(‘subtract body 2 from body 1 imprint keep’)