@tig said:
Since a SectionPlane is a DrawingElelment you should be able to do most things with it like Move, Rotate etc. You also have two extra methods to 'set' and 'get' a SectionPlane's 'plane'...
You can't make a SectionPlane - unfortunately there is not equivalent method to entities.add_section_plane(plane) - though the trick of importing an 'empty' component that contains only a SectionPlane and then exploding it works - you can get it's id and then change it's location/plane...
The BIG problem is that there is no entities.active_section_plane [returning a SectionPlane or nil if none is active] or entities.active_section_plane=SectionPlane [setting that active and all others not - equivalent to model.active_layers/= but entities based as there can be one active SectionPlane in each set], also SectionPlane.active? to see if a particular one is active and SectionPlane.deactivate to switch it 'off', would be good. Note that hiding/showing active/visible SectionPlanes can already be done though Display settings... and you can already search through an entities set and make an array of its SectionPlanes - though then you can't do that much to them... 
If these simple methods were added to the Ruby API it would open up loads of possibilities... 
It's beyond a mere scripter to hack into the SKP format and get/set the entities's active SectionPlane BUT it must be possible 
Why does the green color lenses of your geek sunglasses shine like light at the tunnel's end?