Dill Posted July 22, 2010 Share Posted July 22, 2010 hi, i have never done anything with autocad and most likely i never will. but now i have to write a little script that does the following: find all block references (representing lamps) and see for each of them if they are in one of the polygons (representing rooms). it is no problem to find the blockrefs, but the insertionPoint of all the lamp blocks is (0,0,0). the blocks geometry seems to be only relative to itself or what!? how can i get absolute coordinates of the blocks so i can determine if a block is inside a polygon? thank you Quote Link to comment Share on other sites More sharing options...
SanganakSakha Posted July 24, 2010 Share Posted July 24, 2010 (cdr (assoc 10 (entget (car (entsel "Select the ref.: "))))) Will return a list of co-ordinates of insertion point. Quote Link to comment Share on other sites More sharing options...
10west Posted July 26, 2010 Share Posted July 26, 2010 you could also select by polygon, and use the polygon's dim for the selection set window Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.