How to create an Anonymous block, but keep effective name the same as the origin

How to create an Anonymous block, but keep effective name the same as the origin

oneMSN
Advocate Advocate
955 Views
3 Replies
Message 1 of 4

How to create an Anonymous block, but keep effective name the same as the origin

oneMSN
Advocate
Advocate

I know how to make an anonymous block by naming the blocks BlockTableRecord = "*U" but when the block is inserted into the drawing it's EffectiveName is not that of the original BlockDefinition.

When AutoCAD creates an anonymous block for a dynamic block say, it manages to keep the effective name the same as the BlockDefinition.

 

I would like to be able to do that too.

Anyone any Ideas on how that magic is done?

0 Likes
Accepted solutions (1)
956 Views
3 Replies
Replies (3)
Message 2 of 4

ActivistInvestor
Mentor
Mentor
Accepted solution

@oneMSN wrote:

I know how to make an anonymous block by naming the blocks BlockTableRecord = "*U" but when the block is inserted into the drawing it's EffectiveName is not that of the original BlockDefinition.

When AutoCAD creates an anonymous block for a dynamic block say, it manages to keep the effective name the same as the BlockDefinition.

 

I would like to be able to do that too.

Anyone any Ideas on how that magic is done?


The 'effective name' comes from the BlockReference's DynamicBlockTableRecord property.  

 

For block references that are not dynamic, the DynamicBlockTableRecord's value is the same as their BlockTableRecord property's value. You can't change that.

 

You can store a reference to another BlockTableRecord's objectid within an Xrecord attached to a BlockReference, and use it the same way dynamic blocks use the DynamicBlockTableRecord property.

 

 

 

Message 3 of 4

oneMSN
Advocate
Advocate

Can I convert my source block to dynamic and get the result I want that way?

0 Likes
Message 4 of 4

ActivistInvestor
Mentor
Mentor

@oneMSN wrote:

Can I convert my source block to dynamic and get the result I want that way?


I don't believe there's any API that can convert a non-dynamic block into a dynamic block.

0 Likes