Add Lookup Propertie to an attribute dynamic block

Add Lookup Propertie to an attribute dynamic block

djurk_haas
Advocate Advocate
1,189 Views
6 Replies
Message 1 of 7

Add Lookup Propertie to an attribute dynamic block

djurk_haas
Advocate
Advocate

Hello,

I have made an adjustment to an existing  dynamic block -> I added an Lookup.

What I'm trying to achieve is that the Lookup property shows up in an attribute.

I succeeded this by adding a field after the block is inserted in the drawing.  Since have a lot of drawing which each contain more than a hundred of these blocks it's not an option to add this field separately by each block.

I have tried the lisp routine CopyFieldV1-1 (from LeeMac) this routine does its job very good but in my case the attributes of all existing blocks will be linked to the same field expression of the original block.

 

Is there a way to show the Lookup property inside the block-attribute?

I have also tried is with different visibility-states but that doesn’t work either for me because I have already an visibility-state inside the block.

 

Thank you in advance.

 

 

 

0 Likes
Accepted solutions (1)
1,190 Views
6 Replies
Replies (6)
Message 2 of 7

ojuris
Advisor
Advisor

hi!

may be I don't understand correctly what you need

but if you create field in attribute not in drawing but in block editor space, I think it working as you need - see attached file. Don't forget after create field in attribute in block editor, use command Attsync and after change Classificatie - use Regen

0 Likes
Message 3 of 7

djurk_haas
Advocate
Advocate

Thanks for youre fast answer1

 

I think you do the same thing as I have done after inserting and redefine the modified (added Lookup) block. But this way I have to create a field in every existing block and that’s no option because there are over a hundred existing blocks in more than 150 drawings.

0 Likes
Message 4 of 7

ojuris
Advisor
Advisor

no - it's a small difference

you create field in attribute when you are in drawing space, I create field in attribute in block editor space (where you can add lookup tables, parameters etc.). Therefore in that case that field in attribute will update in all blocks in drawing. Just after you create block and close block editor use command ATTSYNC.

0 Likes
Message 5 of 7

ojuris
Advisor
Advisor
Accepted solution

I create screencast about what I mean

 

 

0 Likes
Message 6 of 7

djurk_haas
Advocate
Advocate

Thanks works great now!

I think the attsyn did the trick.

0 Likes
Message 7 of 7

ojuris
Advisor
Advisor

Attsync - of course but

if you add field to attribute in drawing mode (not block editor mode) then this field is only for that block but if you add field to attribute in block editor mode that this is for all blocks in drawing

0 Likes