- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to make a table, then populate that table using lisp. Manually I can use "tabledit", select the first cell, type, then press the tab key to go to the next cell, and so on. The table will even add lines until I press return.
I can create a table with a simple line of lisp:
first set filedia to zero
(command "_table" 3 1 "S" "Standard" "W" "0.74" "H" 1 "6,-2") ; last argument is coordinates to place table
But here the wheels come off, as I am unable to force the table to recognize a tab. The following command is one of many I have tried, and comes closest to working... but it interprets the \t as 2 spaces INSIDE THE FIRST CELL, not as a command to jump to the next cell!
(command "_tabledit" "6.5,-2.1" (princ "TITLE\tHEADING1\tHEADING2"))
Is there any way to make CAD recognize a keyboard tab? Or is there a variable format that expresses itself as tab delimited? If not, do I need to select and populate each cell individually? Thanks in advance.
Solved! Go to Solution.