Open MrPaulch opened 3 years ago
1.5 Save the model to a SKP file.
5.5 Resave the model to the same SKP filepath.
- Move at least one Entity from the first to the second Scene.
FTR, SketchUp scene pages do not have an entities collection, but do keep lists of whether entities are visible in their scene. (Meaning that you cannot actually move entities from or to a scene page.)
Can you explain what "UB" stands for here?
Move at least one Entity from the first to the second Scene
How do you move an entity between scenes in SketchUp?
Do you have a small snippet that reproduce the steps above?
1.5 Save the model to a SKP file.
5.5 Resave the model to the same SKP filepath.
- Move at least one Entity from the first to the second Scene.
FTR, SketchUp scene pages do not have an entities collection, but do keep lists of whether entities are visible in their scene. (Meaning that you cannot actually move entities from or to a scene page.)
Moving the entity from one scene to another was just an example. In my use case the scenes had mutually exclusive view ports. I should have put this more simple: The point is to make any change to something visible in a scene. I will clarify this with a code snippet.
Can you explain what "UB" stands for here?
Move at least one Entity from the first to the second Scene
How do you move an entity between scenes in SketchUp?
Do you have a small snippet that reproduce the steps above?
With "UB" I mean "Undefined Behavior" as this bug does not produce an error or a crash, but unexpected and false results. In addition, sometimes after generating the bug, updating the scene in Layout will show another completely unrelated viewport. I could not reliably reproduce the second mentioned behavior.
I've updated my original report to include step by step instructions to reproduce the bug. I hope this helps you identify the problem
Logged as: SKEXT-2867
I can reproduce this type of problem, where Creating a new Layout::SketchUpModel
from a Sketchup model refers to the cached information if the Sketchup Model was referred to in the Layout document. In particular the list of scenes is the one of the cached model.
Bug
The Layout file shows both SketchUpModel Entities as they are now in the SketchUp Document. However, the PDF Export of the modified Layout Document is now corrupted. The first Scene contains the Entities from before, the new Scene does not contain anything.
Chose the first or second SketchUpModel and right click on "Update Model Reference" The "corruption" is now visible in Layout itself.
Reproduce with:
The Setup:
At this point you should have the files; test.skp, test.layout and test_first.pdf Inspecting test.layout and test_first.pdf shows a circle on the first and single page
Now for the Bug: (Don't forget to close the layout file before proceeding)
Now we should have another file called test_second.pdf
Open test.layout Notice a triangle on the first and a circle on the second page This is as expected
Open test_second.pdf Notice a circle on the first and nothing on the second page This is faulty
Suspicion
Layout::Document.remove_entity(...)
andLayout::Layers.delete_entities(..., delete_entities=true)
do not remove the internaly stored SketchUp Document. Creating a new SketchUpModel Entity in the Layout Document uses the cached SketchUp Document instead of the updated one.