how to change the name of a blockref object in vba

how to change the name of a blockref object in vba

Anonymous
Not applicable
416 Views
6 Replies
Message 1 of 7

how to change the name of a blockref object in vba

Anonymous
Not applicable
hi,
i thought it is simple to change the name of a blockref object in vba

but to failed.name property failed to changed.

why.

THANK YOU
0 Likes
417 Views
6 Replies
Replies (6)
Message 2 of 7

Anonymous
Not applicable
from the help file:
BlockRef: A block reference can only be assigned the name of a valid block
definition in the drawing. Assigning a block reference a unique name will
not automatically create a new block definition. To create a new block
definition, use the Add method to add a new Block object to the Blocks
collection.


--
Saludos, Ing. Jorge Jimenez, SICAD S.A., Costa Rica


"youngman" wrote in message
news:4859455@discussion.autodesk.com...
hi,
i thought it is simple to change the name of a blockref object in vba

but to failed.name property failed to changed.

why.

THANK YOU
0 Likes
Message 3 of 7

Anonymous
Not applicable
THANKS
but how to changed a blockrefs name made before,
why autocad makes a simple thing complicated.
thanks.


"Jorge Jimenez" wrote in message
news:4859475@discussion.autodesk.com...
from the help file:
BlockRef: A block reference can only be assigned the name of a valid block
definition in the drawing. Assigning a block reference a unique name will
not automatically create a new block definition. To create a new block
definition, use the Add method to add a new Block object to the Blocks
collection.


--
Saludos, Ing. Jorge Jimenez, SICAD S.A., Costa Rica


"youngman" wrote in message
news:4859455@discussion.autodesk.com...
hi,
i thought it is simple to change the name of a blockref object in vba

but to failed.name property failed to changed.

why.

THANK YOU
0 Likes
Message 4 of 7

Anonymous
Not applicable
If you have blocks A and B defined in the blocks collection, and you have a
blockreference in modelspace of Block A, the only thing you can rename the
insert to is B....which will also change the objects to match Block B's
definition. If you want to rename it to C, then change the name of the
Block, not the BlockRef.

"youngman" wrote in message
news:4859493@discussion.autodesk.com...
THANKS
but how to changed a blockrefs name made before,
why autocad makes a simple thing complicated.
thanks.
0 Likes
Message 5 of 7

Anonymous
Not applicable
Thank you.
why autocad makes a simple thing complicated.
maybe there is sth i have not come across.




"Jeff Mishler" wrote in message
news:4859462@discussion.autodesk.com...
If you have blocks A and B defined in the blocks collection, and you have a
blockreference in modelspace of Block A, the only thing you can rename the
insert to is B....which will also change the objects to match Block B's
definition. If you want to rename it to C, then change the name of the
Block, not the BlockRef.

"youngman" wrote in message
news:4859493@discussion.autodesk.com...
THANKS
but how to changed a blockrefs name made before,
why autocad makes a simple thing complicated.
thanks.
0 Likes
Message 6 of 7

Anonymous
Not applicable
youngman wrote:

> maybe there is sth i have not come across.

Doubtful. Block references take their cues from definitions so it
follows that the name assigned to a reference must belong to an existing
definition.
0 Likes
Message 7 of 7

Anonymous
Not applicable
Maybe there is something we haven't understood
about what you want to do.

Could you explain in detail what is it you want to do and why ??

--
Saludos, Ing. Jorge Jimenez, SICAD S.A., Costa Rica

"youngman" wrote in message
news:4859825@discussion.autodesk.com...
Thank you.
why autocad makes a simple thing complicated.
maybe there is sth i have not come across.




"Jeff Mishler" wrote in message
news:4859462@discussion.autodesk.com...
If you have blocks A and B defined in the blocks collection, and you have a
blockreference in modelspace of Block A, the only thing you can rename the
insert to is B....which will also change the objects to match Block B's
definition. If you want to rename it to C, then change the name of the
Block, not the BlockRef.

"youngman" wrote in message
news:4859493@discussion.autodesk.com...
THANKS
but how to changed a blockrefs name made before,
why autocad makes a simple thing complicated.
thanks.
0 Likes