Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

No. of blocks to text

1 REPLY 1
Reply
Message 1 of 2
herreraj13
156 Views, 1 Reply

No. of blocks to text

I’m looking for a way to count the number of blocks in a drawing by clicking on the block and output it to text in the drawing. I’m trying to make a schedule that lists the parts and the quantity. I’m using the TABLE command to make the schedule and found a FIELD that allows you to click on the block and it displays the block name in the cell. Is there not a simple way of getting the count like you can get the name? I don’t care if it is DIESLE/FIELD command or a LISP, I just need to get the count to text somehow.

I've tried searching thru the post for the answer but can not seem to find it. The closest I can find is displaying the amount in the command line. I am using 2005.

Thanks,

John
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: herreraj13

(sslength (ssget "X" '((0 . "INSERT")(2 . "YourBlockNameHere"))))

....or something like that should work.

wrote in message news:5228839@discussion.autodesk.com...
I'm looking for a way to count the number of blocks in a drawing by clicking
on the block and output it to text in the drawing. I'm trying to make a
schedule that lists the parts and the quantity. I'm using the TABLE command
to make the schedule and found a FIELD that allows you to click on the block
and it displays the block name in the cell. Is there not a simple way of
getting the count like you can get the name? I don't care if it is
DIESLE/FIELD command or a LISP, I just need to get the count to text
somehow.

I've tried searching thru the post for the answer but can not seem to find
it. The closest I can find is displaying the amount in the command line. I
am using 2005.

Thanks,

John

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost