PDA

View Full Version : Deleting Annotation Geometry by Box


jkramer
04-15-2005, 05:50 AM
Hi,

I'm trying to write a Lisp routine that deletes an old logo on an Annotation drawing, and replaces it with a new one. Therefore, I want to delete all geometry with a box. I tried this line:

(AM_DELETE2 :GEO :by_box_docu_geo prikd1 prikd2)

where prikd1 and prikd2 are predefined gpnt2d points (based on the paper format).
If I use this line, only one line gets deleted; it looks as if only the first pick point is used, and the item closest to this point gets deleted....
Does anyone have a clue what's wrong???
I can't find anything on this in the helpfiles :-(

Thanks!
Ragards,
Jaap

bdining
04-21-2005, 08:57 AM
Your code looks OK but how you feed the points could be the problem.
Verify how you points are defined and compare to below.

(AM_DELETE2 :GEO :by_box_docu_geo (gpntdocu 1000.0 1000.0 "Annotation")(gpntdocu -1000.0 -1000.0 "Annotation"))

Have A Good Day
Bill Dining