Display full version of the post: xy coordinate and text extractor Lisp

gugamg
09.09.2014, 13:21
I'm sorry if I'm posting this question on the wrong place, it's my first one on the forum :PI have a drawing in which there are some polylines/objects drawn (usually rectangles) with some text next to them. I'm using a lisp to get their x and y coordinates to excel, but my problem is that I have to associate them to the text somehow.Just so you'll understand, I'm doing this because I'm trying to automatize my project drawings, in which I have to paste blocks to the center of each of these rectangles. I’ll use excel to build the command lines for a script with the block name and x,y coordinates, and the script will paste the blocks on these coordinates provided by the lisp. But without the text there’s no reference of which block belongs to which line on excel.I have a simple drawing to illustrate it, along with the lisps and script I'm using. If anybody could help me I would really appreciate it, since these projects can sometimes add up to more than a 100 rectangles. If you have any other solutions I’ll be happy to try them.Thank you very much PS: The  forum doesn't attach the other files, but I can email them if they'll help.uploads/498319/409-OC-E01R0_-_Planta_de_cargas_-_Formas_-_SALAO.dwguploads/498319/Center_Extract.lsp