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

LISP - Parts list output from Atributes

2 REPLIES 2
Reply
Message 1 of 3
robertscragg3894
388 Views, 2 Replies

LISP - Parts list output from Atributes

Hello,

About 10 or so years ago I was trying to write a LISP routine to automatically draw a
parts list table after reading Block Attribute information.

Someone at work asked if it would be possible to extract data from the blocks on
a drawing automatically so I thought I would have another look at what I had started
all those years ago.

From what I can remember the original routine was written on a system called DOGS
and was a "PARAMETRIC SYMBOL"

I have managed to get the information out of the Blocks and onto the drawing but
I am having problems grouping the various bit together in the table.

The ZIP file attached contains the Drawing, the Lisp file and the Attribute Extraction
Template.

There is probably some VBA code that makes sorting and grouping the results easy,
but I wouldn't know wher to start.

Does anyone out there have a routine for grouping the items together ?
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: robertscragg3894


If you have a newer version of AutoCAD, try using EATTEXT. You can make a
table of all blocks, including the attributes and it'll update if quantities
change.


--

Jason Rhymes
3D Solid Power Toys
Multi Solid
Stretch

href="http://www.acadianagraphics.com">http://www.acadianagraphics.com

 


 


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
Hello,
About 10 or so years ago I was trying to write a LISP routine to automatically
draw a parts list table after reading Block Attribute information. Someone at
work asked if it would be possible to extract data from the blocks on a
drawing automatically so I thought I would have another look at what I had
started all those years ago. From what I can remember the original routine was
written on a system called DOGS and was a "PARAMETRIC SYMBOL" I have managed
to get the information out of the Blocks and onto the drawing but I am having
problems grouping the various bit together in the table. The ZIP file attached
contains the Drawing, the Lisp file and the Attribute Extraction Template.
There is probably some VBA code that makes sorting and grouping the results
easy, but I wouldn't know wher to start. Does anyone out there have a routine
for grouping the items together ?
Message 3 of 3
stevor
in reply to: robertscragg3894

My remote guess is that you want to:
A. filter, group, and order some text that is gleaned from ATTs.
B. make either a TEXT table, or an excel-compatible-Table object.


For making an Autocad TABLE object try inspecting Dean Saadallah 's reply:
http://www.brianmorse.com/ASCII%20Point%20file%20from%20blocks.php
http://www.findarticles.com/p/articles/mi_m0BLL/is_4_21/ai_n6354615
An Oldie:
http://www4.dogus.edu.tr/bim/bil_kay/pak_prog/autocad14/ch14.htm
A standalone:
http://www.intelcad.com/pages/attext/

For using Autodwg's ATTEXT to extract the data to a file, if it works...

For a text table, there are easier ways to make border lines than the
"(setq p1 (strcat (rtos"
method, by using foreach loops or others.

For sorting, etc, look at the ssget filters and explicit sorting and filtering by characters, all have examples here and thru google, etc.

For getting examples offered, maybe post more defined requirements.
S

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

Post to forums  

Autodesk Design & Make Report

”Boost