Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rename Blocks

Status
Not open for further replies.

slegge007

Programmer
Feb 28, 2002
2
GB
Is there anyway to rename a block in the following situation:

The drawing file (.dwg) has multiple tabs with a title block on each tab. The title block is currently named "A0_title_block" and has approx 15 attributes. The values of the attributes are different on each tab. To interface with our document management system and use the title blocks, the interface requires each title block to have a unique name. So in a document with 5 tabs how would I rename the title blocks "A0_title_block_1", "A0_title_block_2", "A0_title_block_3", "A0_title_block_4", "A0_title_block_5".

I have used the "rename" command but this renames all the instances of the title block. I don't really want to WBLOCK and export the block, re-insert it with a different name and then re-create all the attribute values.

Any suggestions?

Thanks
 
How about add a 16th attribute, which would be the titleblock name? Teach your DMS to use that attribute for the sheet name. Then the block name has no significance.

Don't know an easy way to give a block a new name other than the wblock process.


 
The DMS uses a mapping table to integrate with Autocad - the mapping table must be in the format:

TitleBlockName.AttributeName -> dmsCategoryName.AttributeName

Therefore there is no way to use a "sheet name" attribute as the "control".

The wblock process is the only way we know too and with drawings that have 30 or 40 title blocks it's very time consuming!

Thanks anyway.....
 
If it's worth the time to program...
you could write a routine to read the block table of the titleblock, then 'entmake' new block definitions of the new names, and read the attributes of the original inserts, and create new block inserts of the new name with the existing attributes. Seems doable at the pre-pseudo code level :)
 
How many drawings do you have like this?
what DMS are you using?
Do you use templates when creating new drawings?

Kevin Petursson
--
"Everyone says quotable things everyday, but their not famous... so nobody cares."... Some Person
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top