Draw a rectangle around objects with known HANDLE ID

Draw a rectangle around objects with known HANDLE ID

Anonymous
Not applicable
857 Views
2 Replies
Message 1 of 3

Draw a rectangle around objects with known HANDLE ID

Anonymous
Not applicable

Hi all,

 

I need a lisp and I have no idea how to achieve that.

 

I have a long list containing object IDs & their correspondant drawing number (1200+ items). I would like to draw a red rectangle around the object ID with that particualr ID (true color red). Below is an example my list:

 

 

.
.
.
HCX-021363.dwg	1C13
HCX-021363.dwg	1C12
HCX-021368.dwg	1C0F
HCX-021367.dwg	1C0E
.
.
.

 

 

The task is to check the current drawing name. If it is HCX-021363.dwg for instance, then draw a red rectangle around object with the ID of 1C13.

 

I don't care about layer whatsoever. I just want a red rectangle to be drawn around that particular handle.

Objects are mix of Dtext, Mtext and block attributes.

No need to check the existance of the handle. They do exist in their correspondant drawings.

 

Thanks heaps for your assistance.

0 Likes
858 Views
2 Replies
Replies (2)
Message 2 of 3

Kent1Cooper
Consultant
Consultant

1200+ is a lot, but it should be achievable.  What is the form of that list?  A .txt file?  A .csv file?  Something else?

Kent Cooper, AIA
0 Likes
Message 3 of 3

Anonymous
Not applicable

It can be anything. It's currently in CSV format but I can manipulate it with Notepad++ easily.

PS.
I think our generous friend LeeMac has already done half of the work here. I just don't know how to feed my list into his code.

0 Likes