AUTO UPDATE SMART BLOCK

AUTO UPDATE SMART BLOCK

AIR_123
Collaborator Collaborator
456 Views
8 Replies
Message 1 of 9

AUTO UPDATE SMART BLOCK

AIR_123
Collaborator
Collaborator

Hi Guys,

 

I have issue.

I have a smart block with block properties table inside. Block contains 100ths of parameters.

Sometimes I need to modify block and change parameters in the block table.

The issue is when block editor closed, blocks are not populated with new information immediately.

You have to select the block, choose dropdown arrow and select same predefined configuration of smart block again, in order for changes to be shown.

My question: Is there a way to automate smart block update (or what ever this process should be named), to "reselect" block configuration and show new info from smart block table? Thx

0 Likes
457 Views
8 Replies
Replies (8)
Message 2 of 9

Moshe-A
Mentor
Mentor

@AIR_123 ,

 

Surly we need some interpetation here 😀

 

Smart block is a block with attributes? a dynamic block?

parameters is attributes?

block table is AutoCAD table?

 

to populate changes in attribute block you need to use ATTSYNC or BATTMAN command this will update every attribute properties but not attributes value.

 

Moshe

 

 

0 Likes
Message 3 of 9

AIR_123
Collaborator
Collaborator

Smart block is a block with attributes? a dynamic block?


Yes. block has attributes. Dynamic block.

 


parameters is attributes?


Some attributes are parameters in the block table.

 


block table is AutoCAD table?


Not ACAD table, but block properties table

 

Table extract look like this

AIR_123_0-1678183689527.png

 

Selection of configuration looks as following

AIR_123_0-1678183946118.png

 

0 Likes
Message 4 of 9

Moshe-A
Mentor
Mentor

First, are you aware of ATTSYNC?

 

Second, dynamic blocks can some times be tricky and need to be replaced them as whole. so maybe for that you need some lisp to read + delete the existing and insert new.

 

Moshe

 

 

0 Likes
Message 5 of 9

AIR_123
Collaborator
Collaborator

 

First, are you aware of ATTSYNC?


yes I'm aware of attsync, but that one only updates attributes.

I have attributes linked with parameters. And parameters don't change with attsync.

 


you need some lisp to read + delete the existing and insert new.

yes, that's why I'm on lisp forum to see if there might be programmatic solution to this issue.

 

0 Likes
Message 6 of 9

Moshe-A
Mentor
Mentor

@AIR_123 ,

 

i do not think there is a general solution to this, it totally depend on your blocks name, attributes tag name, dynamic parameters name it must be tailored for you 🤔

 

??

 

Moshe

 

0 Likes
Message 7 of 9

dbroad
Mentor
Mentor

So you're editing the block table that controls the geometry of the dynamic block and want the changes to be updated in all the block references as soon as you exit bedit? That wouldn't happen automatically as you've discovered. To code a lisp, it depends on whether you would like it to be automatic (involving reactors) or semi-automatic.

Like the others, I don't think there is a solution other than the one you've already found, unless you want to tailor one for a specific block. I don't even think that would work well since editing the block table just changes individual settings and it appears when you insert the block that those settings are related.  You might get better results with a lookout table instead. 

Architect, Registered NC, VA, SC, & GA.
0 Likes
Message 8 of 9

Sea-Haven
Mentor
Mentor

Dbroad agree with your comments, using bedit you know the "Effective" name of the dynamic block, so you would need to get all dynamic blocks and look at there "effective name" if match then get all current dynamic block properties, delete block and insert a new 1 with correct dynamic  properties. 

0 Likes
Message 9 of 9

AIR_123
Collaborator
Collaborator

OK guys, clear. Not a simple task.
I was thinking of following logic in the script
Select block by name
Loop over ID's
Reassign (re-select) configuration option

Is that something can be implemented? 

0 Likes