Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/05/2020 in all areas

  1. I changed the thread title and added code tags. Please use relevant thread titles.
    2 points
  2. Not to cut topic but: I just find: https://areatester.com/ looks nice. Free.
    2 points
  3. I have moved your post to the AutoLISP, Visual LISP & DCL Forum. Please post in the appropriate Forum.
    1 point
  4. Assuming that the blocks are not attributed or dynamic, then the following should work: (defun c:test ( / doc new pat ) (setq pat (strcase "*SM_Annotation*") new (strcase "SM_Annotation") doc (vla-get-activedocument (vlax-get-acad-object)) ) (vlax-for blk (vla-get-blocks doc) (if (and (= :vlax-false (vla-get-isxref blk)) (/= new (strcase (vla-get-name blk))) ) (vlax-for obj blk (if (and (= "AcDbBlockReference" (vla-get-objectname obj)) (wcmatch (strcase (vla-get-name obj)) pat) ) (vla-put-name obj new) ) ) ) ) (vla-regen doc acallviewports) (princ) ) (vl-load-com) (princ)
    1 point
×
×
  • Create New...