Print Page | Close Window

xy coordinate and text extractor Lisp

Printed From: CAD Forum
Category: EN
Forum Name: AutoCAD
Forum Description: Discussion about AutoCAD and AutoCAD LT, viewers, DWG and DWF formats, Design Review, AutoCAD 360, add-ons
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10663
Printed Date: 18.Apr.2026 at 02:03


Topic: xy coordinate and text extractor Lisp
Posted By: gugamg
Subject: xy coordinate and text extractor Lisp
Date Posted: 09.Sep.2014 at 13:21
I'm sorry if I'm posting this question on the wrong place, it's my first one on the forum :P

I 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.dwg" rel="nofollow - uploads/498319/409-OC-E01R0_-_Planta_de_cargas_-_Formas_-_SALAO.dwg uploads/498319/Center_Extract.lsp" rel="nofollow - uploads/498319/Center_Extract.lsp



Print Page | Close Window