Annoying "Reference to a deleted page"
-
Hi guys,
After an extensive search here (and there), I didn't find an answer to this problem:
Suppose I have a scene named "Plan" in my model,
@model=Sketchup.active_model @pages=@model.pages @pages.erase(@pages["Plan"]) #... some code here ... @pages.add("Plan", 127, 0)
cause this error message:
@unknownuser said:
Error: #<TypeError: reference to deleted Page>
C:\Program Files\Google\Google SketchUp 8\Plugins...I tried to rename the page to delete before erasing it but no luck.
Saving the file also doesn't solve the problem (was thinking some garbage collector or similar would clean the memory and SKP )
Even creating a brand new file doesn't work, it seems that deleted objects remains through SKP's that are edited...)Any idea someone ???
Thanks in advance, -
almost sounds like a hash value pointing to the deleted page is embedded in the doc - perhaps preserved because of a layer or component value? maybe clear layers and purge the file?
-
I just replicated your code... but with NO problems.
Page erased 'by name', later on a new page with its name was added - with no issues...
v8M2 Vista
-
Thanks guys,
You pointed me to my error, which were elsewhere in the code. Solved !
Advertisement