<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: When choose text ,put text into a table. in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/when-choose-text-put-text-into-a-table/m-p/12000462#M29388</link>
    <description>&lt;P&gt;att.gif&lt;/P&gt;</description>
    <pubDate>Wed, 31 May 2023 07:39:11 GMT</pubDate>
    <dc:creator>ramoneramone</dc:creator>
    <dc:date>2023-05-31T07:39:11Z</dc:date>
    <item>
      <title>When choose text ,put text into a table.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/when-choose-text-put-text-into-a-table/m-p/11989975#M29377</link>
      <description>&lt;P&gt;I would like to choose text, then put text into a table by lisp.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="att.jpg" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1219502iFE38FB128440BEB1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="att.jpg" alt="att.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 22:40:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/when-choose-text-put-text-into-a-table/m-p/11989975#M29377</guid>
      <dc:creator>ramoneramone</dc:creator>
      <dc:date>2023-05-25T22:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: When choose text ,put text into a table.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/when-choose-text-put-text-into-a-table/m-p/11990548#M29378</link>
      <description>&lt;P&gt;give this a try.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;;*********************************************************************************************************************************************************

;	komondormrex, may 2023

;*********************************************************************************************************************************************************

(defun put_cell_value (string / cell_picked table_selected_object row_number column_number checking_vector table_sset)
	(setq checking_vector (vlax-3d-point (getvar 'viewdir)))
	(while (null cell_picked)
		(setq picked_point (vl-catch-all-apply 'getpoint (list (strcat "\nPick a cell of a table to put \"" string "\" into: "))))
		(cond
			(
				(vl-catch-all-error-p picked_point)
					(setq cell_picked t)
			)
			(
				(null picked_point)
			)
			(
				t
					(setq table_sset (ssget "_f" (list
									  					picked_point
									  					(list (car picked_point) (+ (cadr (getvar 'viewctr)) (/ (getvar 'viewsize) 2.0)))
								 				 )
								 				'((0 . "ACAD_TABLE"))
									 )
					)
					(cond
						(
							(null table_sset)
						)
						(
							(and
								(= :vlax-true (vla-hittest (setq table_selected_object (vlax-ename-&amp;gt;vla-object (ssname table_sset 0)))
														   (vlax-3d-point picked_point) checking_vector 'row_number 'column_number
											  )
								)
								(or
									(= :vlax-true (vla-get-titlesuppressed table_selected_object))
									(and
										 (= :vlax-false (vla-get-titlesuppressed table_selected_object))
										 (not (zerop row_number))
									)
								)
							)
								(setq cell_picked t)
								(vla-setcellvalue table_selected_object row_number column_number string)
						)
						(
							t
						)
					)
			)
		)
	)
)

;*********************************************************************************************************************************************************

(defun c:put_text_to_table_cell nil
	(put_cell_value (cdr (assoc 1 (entget (car (entsel "\nPick text entity to copy text string: "))))))
	(princ)
)

;*********************************************************************************************************************************************************&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 06:45:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/when-choose-text-put-text-into-a-table/m-p/11990548#M29378</guid>
      <dc:creator>komondormrex</dc:creator>
      <dc:date>2023-05-26T06:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: When choose text ,put text into a table.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/when-choose-text-put-text-into-a-table/m-p/11994938#M29379</link>
      <description>&lt;P&gt;Thank you for your cooperation. I did.&lt;/P&gt;&lt;P&gt;Is it possible for this program to function on the Autocad LT version?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If possible, I would like to run this program on the Autocad LT version.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 May 2023 22:40:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/when-choose-text-put-text-into-a-table/m-p/11994938#M29379</guid>
      <dc:creator>ramoneramone</dc:creator>
      <dc:date>2023-05-28T22:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: When choose text ,put text into a table.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/when-choose-text-put-text-into-a-table/m-p/11995453#M29380</link>
      <description>&lt;P&gt;Did you test it ? If it did not work post screen captures etc of the error messages.&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 07:05:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/when-choose-text-put-text-into-a-table/m-p/11995453#M29380</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2023-05-29T07:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: When choose text ,put text into a table.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/when-choose-text-put-text-into-a-table/m-p/11995477#M29381</link>
      <description>&lt;P&gt;unfortunately it would not work in autocad lt, even in autocad 2024 lt, since it has no support for visual lisp vl* functionality.&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 07:32:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/when-choose-text-put-text-into-a-table/m-p/11995477#M29381</guid>
      <dc:creator>komondormrex</dc:creator>
      <dc:date>2023-05-29T07:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: When choose text ,put text into a table.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/when-choose-text-put-text-into-a-table/m-p/11997026#M29382</link>
      <description>&lt;P&gt;Thank you to everyone who replied. I am currently using the LT version.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 23:12:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/when-choose-text-put-text-into-a-table/m-p/11997026#M29382</guid>
      <dc:creator>ramoneramone</dc:creator>
      <dc:date>2023-05-29T23:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: When choose text ,put text into a table.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/when-choose-text-put-text-into-a-table/m-p/11997573#M29383</link>
      <description>&lt;P&gt;Do you have LT 2024, cut and paste sections of code to test and what does not work which bit of the code ? It may be possible to do a work around.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am guessing Hit-test.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it is this then remove it. Hopefully no errors will occur.&lt;/P&gt;&lt;PRE&gt;vl-catch-all-apply&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2023 07:23:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/when-choose-text-put-text-into-a-table/m-p/11997573#M29383</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2023-05-30T07:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: When choose text ,put text into a table.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/when-choose-text-put-text-into-a-table/m-p/11997960#M29384</link>
      <description>I don't have Autocad 24 LT.&lt;BR /&gt;Simple processing is available in menu macros and command line input on LT version.&lt;BR /&gt;Since it has no support for visual lisp vl* functionality.</description>
      <pubDate>Tue, 30 May 2023 10:02:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/when-choose-text-put-text-into-a-table/m-p/11997960#M29384</guid>
      <dc:creator>ramoneramone</dc:creator>
      <dc:date>2023-05-30T10:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: When choose text ,put text into a table.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/when-choose-text-put-text-into-a-table/m-p/12000093#M29385</link>
      <description>&lt;P&gt;What I said was a possible work around may be needed, need to know which bit of code is failing VL* is just to broad a statement. There is support for a lot of VL in LT 2024, check out comments about what does not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because LT 24 does not have VLIDE you need to copy and paste to command line the code in small sections and test.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;test 1 if this line works then catch-all is probably ok.&lt;/P&gt;&lt;PRE&gt;(setq picked_point (vl-catch-all-apply 'getpoint (list (strcat "\nPick a cell of a table to put \"" string "\" into: "))))
		&lt;/PRE&gt;&lt;P&gt;Thinking about hit-test check.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 03:55:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/when-choose-text-put-text-into-a-table/m-p/12000093#M29385</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2023-05-31T03:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: When choose text ,put text into a table.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/when-choose-text-put-text-into-a-table/m-p/12000383#M29386</link>
      <description>I understand what you said.&lt;BR /&gt;I pasted the code into the command line.&lt;BR /&gt;&lt;BR /&gt;Autocad LT version 2013.&lt;BR /&gt;&lt;BR /&gt;The following message appeared.&lt;BR /&gt;"; エラー: 引数の型が違います: stringp nil"</description>
      <pubDate>Wed, 31 May 2023 06:59:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/when-choose-text-put-text-into-a-table/m-p/12000383#M29386</guid>
      <dc:creator>ramoneramone</dc:creator>
      <dc:date>2023-05-31T06:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: When choose text ,put text into a table.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/when-choose-text-put-text-into-a-table/m-p/12000459#M29387</link>
      <description>&lt;P&gt;I tried to run your program on trial full version(Not Lt version), then it did work well.&lt;/P&gt;&lt;P&gt;Your program is no problrem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 07:38:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/when-choose-text-put-text-into-a-table/m-p/12000459#M29387</guid>
      <dc:creator>ramoneramone</dc:creator>
      <dc:date>2023-05-31T07:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: When choose text ,put text into a table.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/when-choose-text-put-text-into-a-table/m-p/12000462#M29388</link>
      <description>&lt;P&gt;att.gif&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 07:39:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/when-choose-text-put-text-into-a-table/m-p/12000462#M29388</guid>
      <dc:creator>ramoneramone</dc:creator>
      <dc:date>2023-05-31T07:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: When choose text ,put text into a table.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/when-choose-text-put-text-into-a-table/m-p/12000475#M29389</link>
      <description>&lt;P&gt;well, i was wrong stating that autocad 2024 lt does not support visual lisp vl* functionality. it does with some limitations(. but every vanilla version of autocad lt prior to 2024 lt as far as i know does not support autolisp in any form. yours 2013 lt too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="komondormrex_0-1685519237166.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1221439i3ABDB06BC90666C0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="komondormrex_0-1685519237166.png" alt="komondormrex_0-1685519237166.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 07:48:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/when-choose-text-put-text-into-a-table/m-p/12000475#M29389</guid>
      <dc:creator>komondormrex</dc:creator>
      <dc:date>2023-05-31T07:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: When choose text ,put text into a table.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/when-choose-text-put-text-into-a-table/m-p/12002606#M29390</link>
      <description>Thank you for your reply.&lt;BR /&gt;It appears that Autolisp is not supported on any LT version.&lt;BR /&gt;If possible, I would like to run this program on the Autocad LT version.</description>
      <pubDate>Wed, 31 May 2023 22:30:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/when-choose-text-put-text-into-a-table/m-p/12002606#M29390</guid>
      <dc:creator>ramoneramone</dc:creator>
      <dc:date>2023-05-31T22:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: When choose text ,put text into a table.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/when-choose-text-put-text-into-a-table/m-p/12002995#M29391</link>
      <description>&lt;P&gt;As stated lisp has only been added to LT 2024 any earlier version and it will not work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would suggest try select text then Ctrl+C, select cell then Ctrl+V.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 03:15:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/when-choose-text-put-text-into-a-table/m-p/12002995#M29391</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2023-06-01T03:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: When choose text ,put text into a table.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/when-choose-text-put-text-into-a-table/m-p/12003130#M29392</link>
      <description>&lt;P&gt;I&amp;nbsp; always pasted the code to the command line on LT VERSION.&lt;/P&gt;&lt;P&gt;For example, the command to copy the following text is pasted.&lt;/P&gt;&lt;P&gt;If VL is included, an error has occurred.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 04:35:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/when-choose-text-put-text-into-a-table/m-p/12003130#M29392</guid>
      <dc:creator>ramoneramone</dc:creator>
      <dc:date>2023-06-01T04:35:48Z</dc:date>
    </item>
  </channel>
</rss>

