You are updating the space in the right way. It has to be done via the
"system.setProperty" call, as this will correctly notify the other
objects in the system that the space property has changed. You can do
the same thing in C++ by calling;
PeriodicBox space = system.property("space").asA<PeriodicBox>();
space.setDimensions( Vector(a,b,c) );
system.setProperty("space", space);
As you can see, in C++ there is no implicit casting, so you have to
explicitly cast the returned property to the type you want
(PeriodicBox in this case, I think).
Best wishes,
Christopher