I have a script that is doing layer booleans, modifiy, deleting shapes. I need a way to test if the variable has a valid shape. I am getting the message in the ciw dbGetq: object is a purged/freed object - db:0x2ab1132fa2.
I know the shape it is specifying has been deleted.
Is there clean way of testing if a shape/variable is valid in a boolean statement or a script that returns a boolean?
I have tried some various uses of getWarn, errset, ~>isShape, symeval, and maybe some others.
Have you tried this?
=> t / nil
Returns t if the argument is a valid database object ID, otherwise,
it returns nil.
In reply to tweeks:
Nope, I did not and it returns the value I want