TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: cadmoogle on November 21, 2008, 09:50:46 AM

Title: Counter Needed
Post by: cadmoogle on November 21, 2008, 09:50:46 AM
CAB,
As I sit here and type with tremendous lag. Would it be possible to build a counter like you did with this command for the one Wizman built for the dangler lisp

http://forums.cadalyst.com/showpost.php?p=22905&postcount=11

If needed I could ask Wiz, but I wasn't sure if he would know what I was talking about.

I ran the command on 11901 objects and I'm not sure how much counter I have to go. You spoiled me with that counter on BreakAll  :-D.

Thanks in advance
Title: Re: Counter Needed
Post by: CAB on November 21, 2008, 10:18:24 AM
Counters are easy.

Initialize the counter to 0.
Update the counter within the loop.

Here is the loop.
Code: [Select]
(foreach dang_final_pt ronnil3
    (command "._insert" bname dang_final_pt "" "" "")
) ;_ end_foreach

No more time this morning. 8-)
Title: Re: Counter Needed
Post by: cadmoogle on November 22, 2008, 09:10:37 AM
Wizman has added the feature to his code.

http://forums.cadalyst.com/showthread.php?p=22955#post22955

Topic closed :)