Results 1 to 2 of 2

Thread: Anonymous Block Name

  1. #1
    Member
    Join Date
    2008-08
    Posts
    7
    Login to Give a bone
    0

    Default Anonymous Block Name

    I am having issues with some of my Dynamic blocks. I understand that the Anonymous names are Autocads way of keeping the block definitions separate. Is there anyway to rename these Anonymous names to something that makes sense instead of *U11, *U4..etc.

    I have found a few lisp routines that will pull out a count of blocks for me, straight to excel with the format that I want. My Dynamic blocks that a lot of time has been invested in are coming up as the Anonymous names not what the Visibility State that they actually are, or even the name of the block. I would rather spend the time adjusting the Anonymous names to mean something rather then recreate all my blocks as not dynamic.

  2. #2
    Administrator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    5,625
    Login to Give a bone
    0

    Default Re: Anonymous Block Name

    You might consider feeding the EffectiveName Property value (of the Block's Vla-Object) to your Excel spreadsheet.

    EffectiveName Property example
    Code:
    (defun c:TEST (/ e)
      (vl-load-com)
      (if (and (setq e (car (entsel "\n  >>  Select a Block: ")))
               (= "INSERT" (cdr (assoc 0 (entget e)))))
        (prompt (strcat "\n  >>  EffectiveName = \""
                        (vla-get-effectivename
                          (vlax-ename->vla-object e))
                        "\""))
        (prompt "\n  <!>  Object Selected is Not a Block  <!>"))
      (princ))
    Hope this helps!
    "How we think determines what we do, and what we do determines what we get."

    Sincpac C3D ~ Autodesk Exchange Apps

    Computer Specs:
    Dell Precision 3630, Core i9-9900K 5.0GHz, 128GB RAM, Samsung 970 Pro M.2, 8GB NVIDIA Quadro P4000

Similar Threads

  1. test for anonymous block
    By KevinBarnett in forum VBA/COM Interop
    Replies: 9
    Last Post: 2016-03-08, 04:50 PM
  2. Anonymous Block Names Stumping SSX and BLOCKREPLACE...
    By swojtynek408932 in forum CAD Management - General
    Replies: 4
    Last Post: 2013-09-16, 07:52 PM
  3. Replies: 14
    Last Post: 2010-03-15, 02:42 PM
  4. Anonymous Block Created when exploding or pasting
    By limartin in forum AutoCAD General
    Replies: 4
    Last Post: 2009-10-08, 01:51 PM
  5. Anonymous block ?!!
    By Algyyys in forum AutoCAD General
    Replies: 3
    Last Post: 2009-05-18, 10:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •