Block Attribute updated to differents files

Block Attribute updated to differents files

F.Camargo
Advisor Advisor
1,056 Views
10 Replies
Message 1 of 11

Block Attribute updated to differents files

F.Camargo
Advisor
Advisor

Hi guys,

 

I've created a block with attribute and I inserted it into some dwg files.

And I'd like to change the attribute value from that block and update to all the files automatically.

 

I don't know how to do. Anybody can help me, please?

 

 

I was trying to use this lisp from Lee Mac http://lee-mac.com/batte.html

But I don't know how to do use it properly.

 

Thank in advance Block attached.

 

Fabricio

0 Likes
Accepted solutions (2)
1,057 Views
10 Replies
Replies (10)
Message 2 of 11

EricStiles
Advocate
Advocate

To run the lisp program.

Type APPLOAD and go find where ever you saved the file to and the load it.

Now type BATTE to run the program.

In the Block Name box type: MARGEM

In the Attribute Tag box type: PROPRIETARIOS

In the Attribute Value type: your new value, whatever that may be.

 

Then hit the [Add Item] button.

click the [Next] button.

 

Now set the folder where all of you file are.

from the list on the right pick on the files that you want to change the attribute on and pick the [Add Files] button.

After your list on the right has all of the file that you need then it the [Run] button.

 

 

 

Message 3 of 11

john.vellek
Alumni
Alumni

Hi @F.Camargo,

 

Did the excellent help from @EricStiles get the attribute value updated across your drawing?  Please add a post with your results.


John Vellek


Join the Autodesk Customer Council - Interact with developers, provide feedback on current and future software releases, and beta test the latest software!

Autodesk Knowledge Network | Autodesk Account | Product Feedback
0 Likes
Message 4 of 11

F.Camargo
Advisor
Advisor

@Anonymous wrote:

To run the lisp program.

Type APPLOAD and go find where ever you saved the file to and the load it.

Now type BATTE to run the program.

In the Block Name box type: MARGEM

In the Attribute Tag box type: PROPRIETARIOS

In the Attribute Value type: your new value, whatever that may be.

 

Then hit the [Add Item] button.

click the [Next] button.

 

Now set the folder where all of you file are.

from the list on the right pick on the files that you want to change the attribute on and pick the [Add Files] button.

After your list on the right has all of the file that you need then it the [Run] button.

 

 

 


Hi @EricStiles

Thank you for the excellent workflow!

 

But I couldn't do that yet, maybe I'm doing something wrong.

 

Have you tried to do that with the block?

 

I'm inserting that block in two differents dwg files and trying to change the attribute value from the lisp.

 

Thank in advance

Fabricio

0 Likes
Message 5 of 11

EricStiles
Advocate
Advocate

In my instructions change PROPRIETARIOS to PROPRIETÁ­­RIOS 

 

The tag name has a colon in it.  Make sure you add the : at the end.   but you should really think about taking that out of your block, that's confusing.  Plus don't forget you have the Á and not A but I assumed you new to change that.

 

I did try it with the : at the end and it works.

0 Likes
Message 6 of 11

F.Camargo
Advisor
Advisor

@EricStiles

 

I'm attaching 2 differente files:

 

1- Is my wblock

2- That file I inserted the block. (test)

 

OP: I have several dwg files lilke that test file. All this files I insert the wblock.

 

I'm trying to make a change into a wblock file, and try to update to the test.dwg.

But couldn't do it.

 

Fabricio

 

 

 

 

0 Likes
Message 7 of 11

john.vellek
Alumni
Alumni
Accepted solution

Hi @F.Camargo,

 

I made a quick Screencast for you.  When you update the Wblock file and try to insert it, you will only get the version of the block that is already defined in the drawing already. So, you can use a block substitution to insert the newer version. This can be done with the Insert command and window. I like to do it manually though using -Insert.

 

You will see in  my video that I substitute (redefine) the block and then I use Battman to sync it with the block that is already showing in the file.

 

Please select the Accept as Solution button if my post solves your issue or answers your question.

 

 


John Vellek


Join the Autodesk Customer Council - Interact with developers, provide feedback on current and future software releases, and beta test the latest software!

Autodesk Knowledge Network | Autodesk Account | Product Feedback
Message 8 of 11

EricStiles
Advocate
Advocate
Accepted solution

@F.Camargo

Your block name has changed.   Now you would have to replace MARGEM to WBLOCK.  Also do NOT have any of the file open!

 

To run the lisp program.

Type APPLOAD and go find where ever you saved the file to and the load it.

Now type BATTE to run the program.

In the Block Name box type: WBLOCK

In the Attribute Tag box type: PROPRIETÁRIOS:

In the Attribute Value type: your new value, whatever that may be.

 

Then hit the [Add Item] button.

click the [Next] button.

 

Now set the folder where all of you file are.

from the list on the right pick on the files that you want to change the attribute on and pick the [Add Files] button.

After your list on the right has all of the file that you need then it the [Run] button.

 

 

 

Message 9 of 11

F.Camargo
Advisor
Advisor

@Anonymous wrote:

@F.Camargo

Your block name has changed.   Now you would have to replace MARGEM to WBLOCK.  Also do NOT have any of the file open!

 

To run the lisp program.

Type APPLOAD and go find where ever you saved the file to and the load it.

Now type BATTE to run the program.

In the Block Name box type: WBLOCK

In the Attribute Tag box type: PROPRIETÁRIOS:

In the Attribute Value type: your new value, whatever that may be.

 

Then hit the [Add Item] button.

click the [Next] button.

 

Now set the folder where all of you file are.

from the list on the right pick on the files that you want to change the attribute on and pick the [Add Files] button.

After your list on the right has all of the file that you need then it the [Run] button.

 

 

 


@EricStiles

It's just amazing!!

 

I wanna say thanks to you for your kindness and patience to help me out.

 

God Bless you!!

 

Fabricio

0 Likes
Message 10 of 11

F.Camargo
Advisor
Advisor

@john.vellek wrote:

Hi @F.Camargo,

 

I made a quick Screencast for you.  When you update the Wblock file and try to insert it, you will only get the version of the block that is already defined in the drawing already. So, you can use a block substitution to insert the newer version. This can be done with the Insert command and window. I like to do it manually though using -Insert.

 

You will see in  my video that I substitute (redefine) the block and then I use Battman to sync it with the block that is already showing in the file.

 

Please select the Accept as Solution button if my post solves your issue or answers your question.

 

 

 

Hi @john.vellek

 

Excellent screencast, really helpfull!! Smiley Happy

 

Thank you very much you too.

 

I've learnt a lot with you. Now I have two ways to do my task,

I'm really happy with the goal.

 

Thanks

Fabricio

0 Likes
Message 11 of 11

EricStiles
Advocate
Advocate

I have to admit that is a really cool program you found and the programmer LeeMac is an amazing programmer.  I'm a bit of a programmer but not even close to his caliber.

0 Likes