The axis jumps when you add a page

Hello.
Found an oddity when creating a scene and Sketchup.active_model.active_path.nil? return false. The axes are jumping.
I reproduced this in the video below:


Now before Sketchup.active_model.pages.add, I use Sketchup.active_model.active_path=nil
Is this correct?

What you show in the video is different from:

pniladdpage

(Ps: Otherwise, as you video shows - the UI works (almost) as expected, but for some reason it only updates the location of the axes when we switch from one to the other…)

It seems to me it would be more logical not to update the position of the axes in the parent path when the user creates scenes in the child.

In theory, saving the axes that are current at the time of saving is logical.
What is not logical is that it does not update the UI immediately, so when you exit the editing context, it deceptively shows the “old” axes.

I agree this looks like a bug. I reproduced it in SketchUp 2024 on Win 11.

  • BTW, I reproduced it manually with the GUI, not with the API.

By the way, axes is the plural form. An axis is singular as in “the x axis”. Ie, the axes is made up of three axis and an origin.

I just reproduced this in SketchUp 2017 Pro. So, it appears it has been like this for quite some time.

We can easily exit the editing context in the new scene, right-click the drawing axes, and reset them, then update the scene and the drawing axes are back to default with the model axes.

@colin Is there anything on this in your internal issues? Or is there any notes in the code that explains why this is the way it is?