<?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: Text and Block in One Table Cell in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-and-block-in-one-table-cell/m-p/13638786#M14105</link>
    <description>&lt;P&gt;komondormrex,&lt;/P&gt;&lt;P&gt;Thank you for commenting the section ";inserting the block record "111" into the cell 1 1 with autofitting set to true"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The autofit part is just what I was looking for.&lt;/P&gt;</description>
    <pubDate>Mon, 19 May 2025 18:17:35 GMT</pubDate>
    <dc:creator>dvertz</dc:creator>
    <dc:date>2025-05-19T18:17:35Z</dc:date>
    <item>
      <title>Text and Block in One Table Cell</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-and-block-in-one-table-cell/m-p/12765707#M14097</link>
      <description>&lt;P&gt;I have a cell with text and a block, and when I select it and check it's properties (Ctrl+1) I'm seeing:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Content&lt;/P&gt;&lt;P&gt;Cell Type | Multi (greyed out/non-selectable)&lt;/P&gt;&lt;P&gt;Layout | Flow (selectable with options for Horz/Vert Stacked)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How would I set a cell to this (Multi) using LISP?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know there's vla-SetCellType, which is either acBlockCell, acTextCell, or acUnknownCell, but that sets it to only one of those.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been combing through this and haven't found what I need:&lt;/P&gt;&lt;P&gt;&lt;A href="http://entercad.ru/acadauto.en/" target="_blank"&gt;http://entercad.ru/acadauto.en/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 19:56:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-and-block-in-one-table-cell/m-p/12765707#M14097</guid>
      <dc:creator>DGCSCAD</dc:creator>
      <dc:date>2024-05-10T19:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Text and Block in One Table Cell</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-and-block-in-one-table-cell/m-p/12766176#M14098</link>
      <description>&lt;P&gt;Post dwg need to look at it sounds like a merged cell.&lt;/P&gt;</description>
      <pubDate>Sat, 11 May 2024 03:51:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-and-block-in-one-table-cell/m-p/12766176#M14098</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-05-11T03:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Text and Block in One Table Cell</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-and-block-in-one-table-cell/m-p/12766290#M14099</link>
      <description>&lt;P&gt;in fact it is not.&lt;/P&gt;</description>
      <pubDate>Sat, 11 May 2024 06:25:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-and-block-in-one-table-cell/m-p/12766290#M14099</guid>
      <dc:creator>komondormrex</dc:creator>
      <dc:date>2024-05-11T06:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Text and Block in One Table Cell</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-and-block-in-one-table-cell/m-p/12766295#M14100</link>
      <description>&lt;P&gt;check this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;(setq table (vlax-ename-&amp;gt;vla-object (car (entsel "\nPick your table: "))))
(setq b (vla-item (vla-get-blocks (vla-get-activedocument (vlax-get-acad-object))) "111")) ;getting the block record "111"
(setq bid (vla-get-objectid b))	;getting the block record "111" id
(vla-setblocktablerecordId table 1 1 bid :vlax-true)	;inserting the block record "111" into the cell 1 1 with autofitting set to true
(setq sid1 (vla-createcontent table 1 1 0))	;creating content id for the cell 1 1
(vla-settextstring table 1 1 sid1 "Multi")	; adding text "Multi" to the text content of the cell 11 &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 May 2024 06:48:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-and-block-in-one-table-cell/m-p/12766295#M14100</guid>
      <dc:creator>komondormrex</dc:creator>
      <dc:date>2024-05-11T06:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Text and Block in One Table Cell</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-and-block-in-one-table-cell/m-p/12767134#M14101</link>
      <description>&lt;P&gt;As I often say learn something new every day, knew about insert block into cells.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just a comment needed to do&amp;nbsp;(vla-put-regeneratetablesuppressed table :vlax-false) to see result, somewhere regenerate is turned off.&lt;/P&gt;</description>
      <pubDate>Sat, 11 May 2024 23:32:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-and-block-in-one-table-cell/m-p/12767134#M14101</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-05-11T23:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Text and Block in One Table Cell</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-and-block-in-one-table-cell/m-p/12770200#M14102</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13423916"&gt;@komondormrex&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;check this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;(setq table (vlax-ename-&amp;gt;vla-object (car (entsel "\nPick your table: "))))
(setq b (vla-item (vla-get-blocks (vla-get-activedocument (vlax-get-acad-object))) "111")) ;getting the block record "111"
(setq bid (vla-get-objectid b))	;getting the block record "111" id
(vla-setblocktablerecordId table 1 1 bid :vlax-true)	;inserting the block record "111" into the cell 1 1 with autofitting set to true
(setq sid1 (vla-createcontent table 1 1 0))	;creating content id for the cell 1 1
(vla-settextstring table 1 1 sid1 "Multi")	; adding text "Multi" to the text content of the cell 11 &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;&lt;HR /&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Not sure why it's not accepting formatting in the text string though.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the end result of what I'm trying to accomplish:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Note_CCTS.PNG" style="width: 203px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1361486iF6FCFA2329F02BB8/image-size/small?v=v2&amp;amp;px=200" role="button" title="Note_CCTS.PNG" alt="Note_CCTS.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The red outline (the cell border), and the green block are both colored just for explanation purposes, but the text needs to have everything bylayer except for the blue string in parenthesis. It needs to be blue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The text string would be:&lt;/P&gt;&lt;P&gt;"NOTE:\\PTHIS LINE AND AND THEN THIS {\\C5;(BLUE STUFF)} SOME OTHER STUFF HERE."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's formatted correctly in a text cell, but it seems to behave differently when it's a mixed cell.&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2024 18:09:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-and-block-in-one-table-cell/m-p/12770200#M14102</guid>
      <dc:creator>DGCSCAD</dc:creator>
      <dc:date>2024-05-13T18:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: Text and Block in One Table Cell</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-and-block-in-one-table-cell/m-p/12770397#M14103</link>
      <description>&lt;P&gt;dunno, it does for me.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="komondormrex_0-1715629332710.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1361527i1049704BBD3F7556/image-size/medium?v=v2&amp;amp;px=400" role="button" title="komondormrex_0-1715629332710.png" alt="komondormrex_0-1715629332710.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="komondormrex_1-1715629366509.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1361528i158CD68672E817D3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="komondormrex_1-1715629366509.png" alt="komondormrex_1-1715629366509.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2024 19:43:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-and-block-in-one-table-cell/m-p/12770397#M14103</guid>
      <dc:creator>komondormrex</dc:creator>
      <dc:date>2024-05-13T19:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Text and Block in One Table Cell</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-and-block-in-one-table-cell/m-p/12770422#M14104</link>
      <description>&lt;P&gt;Well... I guess I had something funky going on in my test string when ran it earlier. It's fully functional now. Thank you again, komondormrex.&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2024 19:57:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-and-block-in-one-table-cell/m-p/12770422#M14104</guid>
      <dc:creator>DGCSCAD</dc:creator>
      <dc:date>2024-05-13T19:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Text and Block in One Table Cell</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-and-block-in-one-table-cell/m-p/13638786#M14105</link>
      <description>&lt;P&gt;komondormrex,&lt;/P&gt;&lt;P&gt;Thank you for commenting the section ";inserting the block record "111" into the cell 1 1 with autofitting set to true"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The autofit part is just what I was looking for.&lt;/P&gt;</description>
      <pubDate>Mon, 19 May 2025 18:17:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-and-block-in-one-table-cell/m-p/13638786#M14105</guid>
      <dc:creator>dvertz</dc:creator>
      <dc:date>2025-05-19T18:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: Text and Block in One Table Cell</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-and-block-in-one-table-cell/m-p/13845233#M167171</link>
      <description>&lt;P&gt;How would I retrieve the block name from a table cell?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Oct 2025 14:17:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-and-block-in-one-table-cell/m-p/13845233#M167171</guid>
      <dc:creator>DGCSCAD</dc:creator>
      <dc:date>2025-10-09T14:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: Text and Block in One Table Cell</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-and-block-in-one-table-cell/m-p/13845284#M167173</link>
      <description>&lt;P&gt;Here's where I'm stuck:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Command: (setq IMG_name (vlax-invoke-method tbl_ename 'GetCellValue 5 4))&lt;BR /&gt;#&amp;lt;variant 0 &amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Command: (setq IMG_name (vlax-invoke-method tbl_ename 'GetCellType 5 4))&lt;BR /&gt;2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure what 'Get... to use, or do I have to dig deeper?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Oct 2025 14:47:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-and-block-in-one-table-cell/m-p/13845284#M167173</guid>
      <dc:creator>DGCSCAD</dc:creator>
      <dc:date>2025-10-09T14:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Text and Block in One Table Cell</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-and-block-in-one-table-cell/m-p/13845286#M167174</link>
      <description>&lt;P&gt;the following will retrieve block name from a table cell, row 1 column 3. where table is a table like in message 6.&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;(vla-get-name (vla-objectidtoobject (vla-get-activedocument (vlax-get-acad-object)) (itoa (vla-getblocktablerecordId table 1 3))))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Oct 2025 14:58:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-and-block-in-one-table-cell/m-p/13845286#M167174</guid>
      <dc:creator>komondormrex</dc:creator>
      <dc:date>2025-10-09T14:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: Text and Block in One Table Cell</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-and-block-in-one-table-cell/m-p/13845290#M167175</link>
      <description>&lt;P&gt;I was hoping someone would pop in and answer this for you. There are certainly people better at lisp than myself. But here's what I have. Code to set the block. Maybe it can help you come up the getting the block.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(vla-SetBlockTableRecordId VLA:ACTABLE INT:TBLROW 1 (vla-get-objectid (vla-item (vla-get-blocks VLA:ACTDOC) (vl-filename-base PATHFILENAME))) :vlax-true)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know the command "vla-GetBlockTableRecordId" exists, but I have not used it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Oct 2025 14:53:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-and-block-in-one-table-cell/m-p/13845290#M167175</guid>
      <dc:creator>dvertz</dc:creator>
      <dc:date>2025-10-09T14:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Text and Block in One Table Cell</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-and-block-in-one-table-cell/m-p/13845329#M167178</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13423916"&gt;@komondormrex&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once again, you've found the solution. I was way off. Thanks again!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/393249"&gt;@dvertz&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you! I appreciate any and all help I can get. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Oct 2025 15:13:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-and-block-in-one-table-cell/m-p/13845329#M167178</guid>
      <dc:creator>DGCSCAD</dc:creator>
      <dc:date>2025-10-09T15:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Text and Block in One Table Cell</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-and-block-in-one-table-cell/m-p/13845341#M167179</link>
      <description>&lt;P&gt;komondormrex, Thanks for getting this for DGCSCAD.&lt;/P&gt;&lt;P&gt;I had the "vla-getblocktablerecordId". I had no clue about the "vla-objectidtoobject" part.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Oct 2025 15:18:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-and-block-in-one-table-cell/m-p/13845341#M167179</guid>
      <dc:creator>dvertz</dc:creator>
      <dc:date>2025-10-09T15:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: Text and Block in One Table Cell</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-and-block-in-one-table-cell/m-p/13845516#M167181</link>
      <description>&lt;P&gt;hey guys, you are much welcome!)&lt;/P&gt;&lt;P&gt;when it sets, it undeniably gets!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Oct 2025 16:49:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/text-and-block-in-one-table-cell/m-p/13845516#M167181</guid>
      <dc:creator>komondormrex</dc:creator>
      <dc:date>2025-10-09T16:49:35Z</dc:date>
    </item>
  </channel>
</rss>

