Jump to content

Changing an attrtibute tag definition without BATTMAN.


Recommended Posts

Is there any way to rename a tag without using battman? I need to replace some drawing borders and some of the attribute tags on the new border are named differently from the tags on the old border.

 

I'd like to be able to use transparent commands to make a script file to do it automatically instead of calling up battman, clicking through and typing on every single one.

 

original?v=mpbl-1&px=-1

Link to comment
Share on other sites

Hi, I'm not sure if you've used my old code over at AUGI. If so here's an update. I can't check since AUGI is down at the moment.

 

The file contains 2 commands:

 

  1. RenAttrSet - this opens a dialog listing all the blocks containing attributes in the current drawing. You can then add these blocks to the renaming settings. Note it even incorporated block references which have attributes not found in the definition (i.e. those attributes which would disappear with AttSync / BAttMan). After you've added the blocks you wish to "fix" select the relevant block / attrib in the right (note duplicate names are listed as well). Then enter the new name below and click "Save". If you start this command again, your previous settings should already be listed, adding other blocks simply adds to these - so you can build up multiple renaming settings globally accross various files. After you've finished, click OK and these settings are saved into a file for future reference.
  2. RenAttr - this reads the settings from the file created above. It steps though the entire drawing (including nested blocks and block definitions) renaming attributes as setup in the above command.

So it basically gives a less geeky method of creating the rename list, and then a simple command to perform the rename globally. Easier to run in a script, as after you've setup the renaming settings once, you have the script load the LSP file and run RenAttr.

 

 

HTH ;)

RenAttrib.LSP

Edited by irneb
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...