R2005: Why do I need to run this line of code more than once to get unused layers and blocks out of a drawng? (vla-purgeall (vla-get-activeDocument (vlax-get-acad-object))) The first time I run it, a block is deleted with one layer, then I have to run it again to get another block deleted and the rest of the layers. I thought this was supposed to purgeall in one fell swoop. TIA Bill