Set scene properties - FloorAlignment and FloorOffset

I'm trying to set the FloorAlignment and FloorOffset properties for a scene in my macro. When I run the code below nothing changes. Am I missing something obvious?

<p>Dim swApp As Object</p><p>Dim swModel As Object</p><p>Dim swConfig As Configuration</p><p>Dim Scene As swScene</p><p></p><p>Sub main()</p><p></p><p>Set swApp = Application.SldWorks</p><p>Set swModel = swApp.ActiveDoc</p><p>Set swConfig = swModel.GetActiveConfiguration</p><p>Set Scene = swConfig.GetScene</p><p></p><p>Scene.FloorAlignment = 0</p><p>Scene.FloorOffset = 0</p><p></p><p>End Sub</p>

I have the same issue with several properties from here​. How can I set these properties?

The following are also not working correctly:

<p>Scene.FitToSWWindow = True</p><p>Scene.FloorOffset = 0</p><p>Scene.FixedAspectRatio = False</p><p>Scene.EnvironmentRotation = 0</p>
SolidworksApi macros