Change the attribute Tag

Change the attribute Tag

Henrik_Lo
Collaborator Collaborator
1,047 Views
5 Replies
Message 1 of 6

Change the attribute Tag

Henrik_Lo
Collaborator
Collaborator

Hi
Dose somebody having a lisp code dos following.
Insert a block multiple times, and change the attribute Tag with defriend numbers each time a new block is insert.

I can do most of the code, but can’t remember how to change attribute tag.

 

Regards

Henrik

0 Likes
Accepted solutions (1)
1,048 Views
5 Replies
Replies (5)
Message 2 of 6

ВeekeeCZ
Consultant
Consultant
Accepted solution

Really change attribute tag or rather its value? If the latter then 

(setpropertyvalue ent "tag" "value")

0 Likes
Message 3 of 6

Henrik_Lo
Collaborator
Collaborator

Hi

sorry, it is the value i need change.

Regards

Henrik

0 Likes
Message 4 of 6

pbejse
Mentor
Mentor

@ВeekeeCZ wrote:

Really change attribute tag or rather its value? If the latter then 

(setpropertyvalue ent "tag" "value")


Yeah, odd isn't it?

 

EDIT: oops, the OP already replied to it. 😁

 

So, every instance of block that you insert, follow it up with what @ВeekeeCZ said at post #2

Easy peasy 

 

 

0 Likes
Message 5 of 6

Henrik_Lo
Collaborator
Collaborator

Hi

This seem to work for me, fantastic thangs
Regards
Henrik

0 Likes
Message 6 of 6

Sea-Haven
Mentor
Mentor

A good idea is find all the blocks of a name  and get the last number then you don't have 2 the same. Handy when you stop start inserting.

 

Pretty sure Lee-mac has a autonumbering which updates if you remove a block by renumbering all.

0 Likes