Translations:FreeCAD Scripting Basics/33/en

You could try storing the cube inside the property of the  object, but it will return an error. That is because each properties is made to store only a certain type. In a property, you can only save stuff created with the  module. Note that most modules also have a shortcut to add their geometry to the document: