DWG files scanning and extracting coordinates

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, I'd like your opinion on how to best approach the following task:
I'm looking for an automated way to get the mean coordinate of lines, blocks from each DWG file (model space only) in my computer (mean and not centroid in order to get the approximate coordinates of the "central mass") and to write the mean coordinate + the file adress to a txt file (or any other file type I can later work with without AutoCad).
I need to do that in order to later search my DWG files by location/nearest to given (x, y). If there is an easier way please let me know!
I tried to approach the problem using python but the dwg format is a problem. ( I can write a scrips to do that with dxf files but that not the case)
Is it possible to do using autolisp? is it worth learning the language from 0 or should I try to manipulate some existing code?
I'd really appreciate any help 🙂
Roy.