Author Topic: BCOUNT - DYNAMIC BLOCKS  (Read 11305 times)

0 Members and 2 Guests are viewing this topic.

CADEC70

  • Guest
BCOUNT - DYNAMIC BLOCKS
« on: February 13, 2008, 09:54:54 AM »
I can count my blocks if I did it individually. How do you count your blocks if it's a dynamic block?

ronjonp

  • Needs a day job
  • Posts: 7527
Re: BCOUNT - DYNAMIC BLOCKS
« Reply #1 on: February 13, 2008, 10:04:34 AM »
Here's half the answer from one of the 'tards... :-D

Code: [Select]
      (if names
(progn
  (setq names (acad_strlsort names)
names (reverse names)
  )
  (mapcar '(lambda (x)
     (mapcar '(lambda (y)
(if (= (vla-get-effectivename y) x)
  (setq lst (cons y lst))
)
      )
     ss
     )
     (if lst
       (setq str (strcat "\n"
x
" ........... "
(itoa (length lst))
str
)
     lst nil
       )
     )
   )
  names
  )
  (princ str)
)
      )
    )
    (princ "\nNo blocks...")
  )
  (princ)
)

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

CADEC70

  • Guest
Re: BCOUNT - DYNAMIC BLOCKS
« Reply #2 on: February 13, 2008, 10:50:00 AM »
Sorry I'm not sure about your post..
how does this work
please explain..thanks

Josh Nieman

  • Guest
Re: BCOUNT - DYNAMIC BLOCKS
« Reply #3 on: February 13, 2008, 11:11:05 AM »
*refrains from making a comment about the intelligence of the poster not knowing what to do with a simple lsp routine*

*edit*
oops.

ronjonp

  • Needs a day job
  • Posts: 7527
Re: BCOUNT - DYNAMIC BLOCKS
« Reply #4 on: February 13, 2008, 11:17:25 AM »
Sorry I'm not sure about your post..
how does this work
please explain..thanks

Like my post above states...it's only half of a working routine. After your stupid CTB\STB comment...I'm more motivated to poke fun at you rather than offer help.

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: BCOUNT - DYNAMIC BLOCKS
« Reply #5 on: February 13, 2008, 11:30:44 AM »
Okay, warm enough, let's not fan this one anymore. :)
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

ronjonp

  • Needs a day job
  • Posts: 7527
Re: BCOUNT - DYNAMIC BLOCKS
« Reply #6 on: February 13, 2008, 11:39:41 AM »
Okay, warm enough, let's not fan this one anymore. :)

Done.  :kewl:

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: BCOUNT - DYNAMIC BLOCKS
« Reply #7 on: February 13, 2008, 11:54:03 AM »
Thanks Ron.  :-)
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

CADEC70

  • Guest
Re: BCOUNT - DYNAMIC BLOCKS
« Reply #8 on: February 13, 2008, 11:59:21 AM »
ctb stb is just my rant..thats why i post it on the 'rant' post...to vent. But dont take it personal. i can't believe that somebody would react like that. unbelievable!

Josh Nieman

  • Guest
Re: BCOUNT - DYNAMIC BLOCKS
« Reply #9 on: February 13, 2008, 12:02:44 PM »
ctb stb is just my rant..thats why i post it on the 'rant' post...to vent. But dont take it personal. i can't believe that somebody would react like that. unbelievable!

guess it must just be the retard in us all.

deegeecees

  • Guest
Re: BCOUNT - DYNAMIC BLOCKS
« Reply #10 on: February 13, 2008, 12:08:31 PM »
Timah!

Guest

  • Guest
Re: BCOUNT - DYNAMIC BLOCKS
« Reply #11 on: February 13, 2008, 12:10:16 PM »
ctb stb is just my rant..thats why i post it on the 'rant' post...to vent. But dont take it personal. i can't believe that somebody would react like that. unbelievable!

guess it must just be the retard in us all.

"Wiggle worm! Wiggle worm! Wiggle worm!"

(I hope somebody get's this)

CADEC70

  • Guest
Re: BCOUNT - DYNAMIC BLOCKS
« Reply #12 on: February 13, 2008, 12:21:51 PM »
truth hurts

Josh Nieman

  • Guest
Re: BCOUNT - DYNAMIC BLOCKS
« Reply #13 on: February 13, 2008, 12:24:01 PM »
truth hurts

and you're asking -us- for free help while going on like this?

 :lol:

ronjonp

  • Needs a day job
  • Posts: 7527
Re: BCOUNT - DYNAMIC BLOCKS
« Reply #14 on: February 13, 2008, 12:37:22 PM »
*gunshot*

"MY FOOT!"

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC