Numerical Increment of specific attribute in a multi attribute block

Numerical Increment of specific attribute in a multi attribute block

alxnds5
Enthusiast Enthusiast
708 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)
709 Views
4 Replies
Replies (4)
Message 2 of 5

Libbya
Mentor
Mentor

This doesn't have anything to do with the dynamic properties of Dynamic Blocks.  It has to do with LISP.  Because of this, it is a question that would be more appropriate on the AutoCAD Customization - Visual LISP, AutoLISP and General Customization forum.  

0 Likes
Message 3 of 5

vinodkl
Mentor
Mentor
Accepted solution

Here is the lisp that does what you asked for and its more advanced (see attachment)

--------------------------------------------------------------------------------------------------------------------------
ವಿನೋದ್ ಕೆ ಎಲ್( System Design Engineer)
Likes is much appreciated if the information I have shared is helpful to you and/or others.

Please mark "Accept as Solution" if my reply resolves the issue or answers your question, to help others in the community.
--------------------------------------------------------------------------------------------------------------------------
Message 4 of 5

rmarchandYXUEE
Explorer
Explorer

It almost works. I need it to allow osnaps to like the center of a circle.

0 Likes
Message 5 of 5

rmarchandYXUEE
Explorer
Explorer

SORRY! I see it now.

0 Likes