Only the top level model itself has (and “owns”) the collection of layer objects that the model contains.
Layers in SketchUp are not used exactly like CAD layers. In SketchUp layers are simply shared display behaviors, that are “used” by multiple drawing objects. SketchUp layers do not have a geometry entity collection, and are not used to separate SketchUp’s “sticky” geometry. Component Instances and Groups are the objects that separate geometry.
The scene pages will keep a collection of layer visibility states, if the scene page is set to do so, but do not “own” any of the layers in this list.
Sketchup::Layer
objects do not own a scene page collection.
Only the top level model itself has a collection of scene pages.
As said above, these are created by the ACT extension, so most likely there are ACT extension specific attribute dictionaries attached to the ACT camera entities and/or ACT generated scenes.
The layers created by the ACT extension do not as said above “own” geometry, but geometry, groups or component instances can be set to honor the visibility setting of these layers. It looks to me that all ACT camera entities share the “Lines” and “Volume” layers, so they’ll ALL be hidden or visible depending upon the setting for these layers.
Meaning that each ACT camera does not have it’s own set of layers.
A scene page in SketchUp can be set to remember the visibility state of layers and the view API camera (which is a low level API entity, not the geometric ACT camera entities that the extension creates… This is likely to cause you some confusion.)
As I mentioned above, scene pages have a layers collection used to remember visibility states for the scene if the “use Hidden Layers” flag is set true. If it is false, then this collection is probably empty. Again this layers collection is not a set of layers that a scene “owns”, it is only a subset of the model’s layers that are in a certain visibility state (either hidden or shown, I don’t know which myself, test if you wish to know yourself,) … and only if the “use Hidden Layers” flag is set.
I second what Christina said. But it might not hurt to simply attach custom attribute dictionaries to ACT camera instances so that your extension could create a report for example.
But as always, if Trimble changes the ACT extension in the future, your extension could break.