TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: rogman on September 23, 2014, 05:49:46 PM

Title: Insert block with a counter attribute
Post by: rogman on September 23, 2014, 05:49:46 PM
Dear all:

I want to make a block that has an attribute that I'll call Counter.

I want that counter would be updated just the moment the block is inserted. For example, if the block was inserted 3 times, the attribute will be updated to 4 and then insert the block.

Any ideas?

Thanks in advance.

Regards
Title: Re: Insert block with a counter attribute
Post by: Lee Mac on September 23, 2014, 05:59:56 PM
Welcome to the Swamp! :)

Here's an old 'demo' program showing one possible way to accomplish this: Automatically Label Attributes (http://bit.ly/HLwSXT).
Title: Re: Insert block with a counter attribute
Post by: CAB on September 23, 2014, 06:16:45 PM
Welcome to the Swamp.