I beta tested your Etable function and it returned the following error.
ActiveX Server returned an error: Parameter not optional
I selected "Insert (Block)" and checked "Name" and "Select objects manually". I tried a few other Entity types and it still gives me that error. I am using AutoCAD 2005.
ETABLE Send AutoCAD entity properties to an AutoCAD Table entity
The error happens during the VLA-ADDTABLE statement. I checked the help files and found it exactly matches the information in AutoCAD 2007. It works in AutoCAD 2006 and 2007 but not in 2005. Although, I can't find any differences concerning the vla-addtable statement between the three versions.
I've attached an image showing the code in question and a Watch window showing the values of the variables. Does anyone know what the problem is here?
JPS
ETABLE Send AutoCAD entity properties to an AutoCAD Table entity
One of the Engineers let me test it on his computer with AutoCAD 2006. It works with the blocks, but crashed when we selected lwpolylines. Thanks for the AutoCAD 2005 info. Now maybe I can convince them that we need to upgrade.
I had one suggestion though. It would be nice if you had it remember the last choices when someone re-runs the program.
ETABLE Send AutoCAD entity properties to an AutoCAD Table entity
I did find and fix an error. Variable TXTSZ was nil unless you selected the "Label Entities" check box. This caused the program to crash and may have been the reason you crashed on LWPOLYLINES. I've attached the latest version.
JPS
ETABLE Send AutoCAD entity properties to an AutoCAD Table entity
JPS,
I am using 2006. Do I need 2007 for your program to run? Sorry I haven't read all the posts here yet. I keep getting the same error message no matter what I select. The message is: AutoCAD variable setting rejected: "useri3" nil. Do I need to set this variable to some certain value before running your program?
ETABLE Send AutoCAD entity properties to an AutoCAD Table entity