Sqlite Autocad ^hot^ -
This approach gives you flexible reporting from SQLite directly within AutoCAD, whether you need simple data extraction or complex formatted reports with calculations and summaries.
# Insert table at point (10,10,0) table = acad.model.AddTable(APoint(10, 10), table_height, table_width, 5, # row height 20) # column width sqlite autocad
;; Extract attributes (setq idx 0) (repeat (sslength ss) (setq ent (ssname ss idx)) (setq att_list (get_attributes ent)) (foreach att att_list (sqlite:exec db (strcat "INSERT INTO attributes VALUES ('" (vla-get-effectivename (vlax-ename->vla-object ent)) "','" (car att) "','" (cdr att) "')"))) (setq idx (1+ idx)) ) This approach gives you flexible reporting from SQLite