Hi,
This may sound fairly simple and I'm sure it is, but for some reason I can't seem to figure it out.
Can someone who has some time tell me why I get an error when trying to quit the loop below?
(while
(setq obj (vlax-ename->vla-object (car (entsel))))
(if (= (vla-get-ObjectName obj) "AcDbBlockReference")
(vla-put-rotation
obj
(dtr (+ (rtd (vla-get-rotation obj)) 180))
)
(princ
"\nSelected Object was not a block!.......Please try again: "
)
)
)
Whenever I hit enter it returns :
error: bad argument type: lentityp nil
Any guidance would be gratefully accepted.
John