Numerical Increment of specific attribute in a multi attribute block

Numerical Increment of specific attribute in a multi attribute block

alxnds5
Enthusiast Enthusiast
1,689 Views
4 Replies
Message 1 of 5

Numerical Increment of specific attribute in a multi attribute block

alxnds5
Enthusiast
Enthusiast

I currently have a block with 3 attributes, lets call them A, B, C.  When I try to use a numerical increment lisp on the block the increments happen to attribute A but I need this to happen to attribute B instead. I understand the system is choosing A because it is going alphabetically but is there any way to bypass this?  I know I can simply rename the attributes but I'm looking to see if there is another way. 

0 Likes
Accepted solutions (1)
1,690 Views
4 Replies
Replies (4)
Message 2 of 5

pbejse
Mentor
Mentor

@alxnds5 wrote:

I currently have a block with 3 attributes, lets call them A, B, C. ...


You mind showing us the lisp and the attribute block. and what it supposed to look like

0 Likes
Message 3 of 5

alxnds5
Enthusiast
Enthusiast

This is the block, so the number I am trying to increment is the center value. But the top left is the one that is incrementing. I know this is happening because the name of the attribute comes before the other alphabetically. I'm sorry I don't have access to the lisp at this time and I'm not even sure...maybe the lisp is the problem. Thank you for replying by the way any help is appreciated.

0 Likes
Message 4 of 5

pbejse
Mentor
Mentor

@alxnds5 wrote:

This is the block, so the number I am trying to increment is the center value. But the top left is the one that is incrementing. I know this is happening because the name of the attribute comes before the other alphabetically. I'm sorry I don't have access to the lisp at this time and I'm not even sure...maybe the lisp is the problem. Thank you for replying by the way any help is appreciated.


 

 

If the name TAGS are all different, then its not going to be issue or even any other properties that is unique can be use to identify which one to increment, via selection., etc..   easy fix is what i'm saying. 

 

 

 

 

Message 5 of 5

_gile
Consultant
Consultant
Accepted solution

Hi,

 

If you're looking for an out of the box solution, you can try the Increment plugin.

It allows to use a prefix and a suffix around the incremented part, and much more.



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub