autocad - auto lisp to retrieve project names from drawings -


i have client hard drive has crashed. able recover data in enumerated files, no dates, sizes or kind of naming scheme. these drawing files autocad, , there literally tens of thousands of these files. drawings have title blocks opening , renaming hand, take century. know of lisp can use open drawings , grab text title block? have tried myself have failed miserably.

if text require in same location based on absolute coordinates , possibly layer/text style/text height/etc., might still have chance.

you follow type of pattern:

  1. open document,
  2. zoom extents,
  3. select text entities given coordinates need search @ using bounding or crossing selection window,
  4. loop through returned selection set (possibly comparing contents of text string regular expression validation),
  5. extract value if it's located correctly,
  6. store current file name , extracted text value in csv, xml, xls file,
  7. close document,
  8. repeat.

this give complete list of documents current name , required name. after check duplicates, errors, or other issues, easy enough write function in excel vba (or language) rename each file required.


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -