AutoCAD 2007/2008/2009 DWG Format
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Dynamic blocks and anonymous names
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
have noticed that for some odd reason, some of the blocks have anonymous
names and others do not. They can have the same effective name, but they
may not always have an anonymous name. How can we make dynamic blocks so
that they do NOT have anonymous names?
--
_________________________
Bill DeShawn
bdeshawn@nospamsterling.net
http://my.sterling.net/~bdeshawn
Notice: New LISP tool for Landscape
Design and for ATTEXT users.
Measure and Divide with attributes!!
Re: Dynamic blocks and anonymous names
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Re: Dynamic blocks and anonymous names
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
is anonymous?
--
_________________________
Bill DeShawn
bdeshawn@nospamsterling.net
http://my.sterling.net/~bdeshawn
Notice: New LISP tool for Landscape
Design and for ATTEXT users.
Measure and Divide with attributes!!
Whenever you change anything about a dynamic block (such as its visibility
state) it automatically changes to an anonymous block. There is no way to
stop it.
Re: Dynamic blocks and anonymous names
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Re: Dynamic blocks and anonymous names
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I need to be able to easily rename the blocks in my block library to eliminate (reduce) the errors that occur when my team uses cut&paste to take blocks from an old drawing into a drawing with the new library in it. When they do this and blocks already exist in the new drawing that also exist (name-wise) in the drawing they are cutting&pasting from the blocks update incorrectly. If I could do an automated renaming of the blocks in the new library this would solve the issue. Alas... I cannot get access to the "Block Name:" of any blocks that are Dynamic.
So... okay... I understand the concept of needing "anonymous" block names to accurately depict differing visibility states etc... but if you "list" a dynamic blocks data using the "LIST" command you get this:
BLOCK REFERENCE Layer: "P-Fixt-Symb"
Space: Model space
Handle = 25b22
Block Name: "Tub-Std-32x60-Dyn"
Anonymous Name: "*U286"
at point, X=-202'-8 47/64" Y=124'-0 63/64" Z= 0'-0"
X scale factor: 1.000000
Y scale factor: 1.000000
rotation angle: 0.00
Z scale factor: 1.000000
InsUnits: Inches
Unit conversion: 1.000000
Scale uniformly: No
Allow exploding: Yes
Flip state: Flipped
You will note that you get BOTH the Block Name: and the Anonymous Name: yet we cannot access the "Block Name:" programatically in order to automate "renaming" the dynamic block... yet you CAN rename the dynamic blocks using the "RENAME" command... so it is obviously possible to do it... you just don't seem to be able to easily do this with a LISP file etc.
We need to be able to access the "Block Name:" programatically. Does anyone know of a way to do this?
Thanks,
Mike
Re: Dynamic blocks and anonymous names
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
maybe this will help
this will return the block's name (actually the effective name)
(vl-load-com) (setq obj (vlax-ename->vla-object (car (entsel "Select block: ")))) (setq blkame (vlax-get obj 'Effectivename))
this will edit the block's name (the anonymous name) to be the same as the effective name
(vl-load-com) (setq obj (vlax-ename->vla-object (car (entsel "Select block: ")))) (vlax-put obj 'Name (vlax-get obj 'Effectivename))
Re: Dynamic blocks and anonymous names
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Thanks!!!
That worked great...
;; Renames Dynamic Blocks with "-Dyn" suffix added
;; Need to add routine to check for existing prefix)
(defun c:RBlk (/)
(vl-load-com)
(setq obj (vlax-ename->vla-object (car (entsel "Select block: ")))
Eblkname (vlax-get obj 'Effectivename)
Nblkname (strcat (vlax-get obj 'Effectivename) "-Dyn")
)
(prompt (strcat "\n\nDynamic block " Eblkname "\nhas been renamed to: " Nblkname "\n"))
(command "_.rename" "b" Eblkname Nblkname)
(princ)
); EOF
You are my hero...
Mike
Re: Dynamic blocks and anonymous names
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
when i list a dynamic block i have created i get the following:
Select objects:
BLOCK REFERENCE Layer: "TC-OUTLET_BACKBOX"
Space: Model space
Transparency: 2
Handle = 71238
Block Name: "WALL OUTLET"
Anonymous Name: "*U12"
at point, X=15'-6 13/16" Y=4'-10 3/8" Z= 0'-0"
X scale factor: 1.0000
Y scale factor: 1.0000
rotation angle: 0.00
Z scale factor: 1.0000
InsUnits: Inches
Unit conversion: 1.0000
Scale uniformly: Yes
Allow exploding: Yes
Visibility1: NONE
Rotate Symbol: 0.00
Position1 X: 0'-0 1/16"
Position1 Y: 0'-0 3/16"
Position2 X: 0'-0 3/16"\
I am using the export attributes via express tool for my count of items but my data extrat reads the Anonymous Name: "*U12" rather that the name of the block? Can you help me?

