A general question for the correct way to do something: I have noticed that if I have a Face (named f), and I call:
If I then subsequently attempt to reference that face, I get the following error:
Error: #<TypeError: reference to deleted DrawingElement>
Why does this happen? And what is the proper way to then reference this face?
For a simple example:
model = Sketchup.active_model face = model.entities.add_face([0, 0], [20, 0], [20, 20], [0, 20]) face.pushpull(1.0, false) face.material
in a script will trigger the error. Doing this manually line by line in the command line, interestingly, does not. (Might this have something to do with cleanup?)