<?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: Entities inside a block in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/entities-inside-a-block/m-p/875468#M162825</link>
    <description>I need to be able to do it without user input.  I want to write it so that I can run it on a group of drawings.&lt;BR /&gt;
&lt;BR /&gt;
Attributes are easy compared to this.  I can not for the life of me figure out how to get to a subentity of a block...like text, and change that text width.&lt;BR /&gt;
Sure I can redefine it with insert=, but this block will have title area info in it that will be different from drawing to drawing.  I just need to change a specific text string's (I know the value) width.  I also know the block name.&lt;BR /&gt;
&lt;BR /&gt;
Thanks, Tim</description>
    <pubDate>Wed, 04 Apr 2007 19:48:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2007-04-04T19:48:58Z</dc:date>
    <item>
      <title>Entities inside a block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/entities-inside-a-block/m-p/875463#M162820</link>
      <description>When issuing a call to SSGET, I want to be able to search inside of the&lt;BR /&gt;
defined blocks in the drawing and look for a text object with for example&lt;BR /&gt;
the text "FOUNDME". I then want to change this text value to something else&lt;BR /&gt;
such as "NEWTEXT". Issuing (ssget "x" '((1 . "FOUNDME"))) does not search&lt;BR /&gt;
blocks defined in the drawing.  I suspect that I need to search through the&lt;BR /&gt;
block table using (TBLSEARCH).  Thanks,&lt;BR /&gt;
&lt;BR /&gt;
                        Ryan Small&lt;BR /&gt;
-- &lt;BR /&gt;
Visit our website at http://www.braemarbldg.com&lt;BR /&gt;
E-Mail: braemar@braemarbldg.com</description>
      <pubDate>Thu, 11 Nov 1999 21:50:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/entities-inside-a-block/m-p/875463#M162820</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>1999-11-11T21:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: Entities inside a block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/entities-inside-a-block/m-p/875464#M162821</link>
      <description>Yep.&lt;BR /&gt;
&lt;BR /&gt;
Kind of.&lt;BR /&gt;
&lt;BR /&gt;
Have to walk the block table, and then descend thru each block definition.&lt;BR /&gt;
&lt;BR /&gt;
__________________________________&lt;BR /&gt;
&lt;BR /&gt;
Michael Puckett&lt;BR /&gt;
programmer@cadvision.com&lt;BR /&gt;
&amp;gt; Not &amp;lt; an Autodesk hall monitor.&lt;BR /&gt;
Imagination makes all things possible.&lt;BR /&gt;
__________________________________&lt;BR /&gt;
&lt;BR /&gt;
Ryan Small &lt;RSMALL&gt; wrote in message&lt;BR /&gt;
news:01bf2c8e$6043d6a0$a3a43dcf@user3...&lt;BR /&gt;
When issuing a call to SSGET, I want to be able to search inside of the&lt;BR /&gt;
defined blocks in the drawing and look for a text object with for example&lt;BR /&gt;
the text "FOUNDME". I then want to change this text value to something else&lt;BR /&gt;
such as "NEWTEXT". Issuing (ssget "x" '((1 . "FOUNDME"))) does not search&lt;BR /&gt;
blocks defined in the drawing.  I suspect that I need to search through the&lt;BR /&gt;
block table using (TBLSEARCH).  Thanks,&lt;BR /&gt;
&lt;BR /&gt;
                        Ryan Small&lt;BR /&gt;
--&lt;BR /&gt;
Visit our website at http://www.braemarbldg.com&lt;BR /&gt;
E-Mail: braemar@braemarbldg.com&lt;/RSMALL&gt;</description>
      <pubDate>Thu, 11 Nov 1999 22:00:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/entities-inside-a-block/m-p/875464#M162821</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>1999-11-11T22:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: Entities inside a block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/entities-inside-a-block/m-p/875465#M162822</link>
      <description>Ssget doesn't search inside of blocks, so you're forced to&lt;BR /&gt;
do this manually. If you're using AutoCAD 2000, you could&lt;BR /&gt;
do it much faster with ActiveX. Otherwise, you'd have to&lt;BR /&gt;
iterate through the block table and manually examine each&lt;BR /&gt;
entity in each block's definition.&lt;BR /&gt;
&lt;BR /&gt;
This will replace all text in every block, that matches a&lt;BR /&gt;
wildcard pattern with a specified replacement string:&lt;BR /&gt;
&lt;BR /&gt;
(defun replace-nested-text (pattern replacetext / block ent data)&lt;BR /&gt;
   (while (setq block (tblnext block (not block)))&lt;BR /&gt;
      (setq ent (cdr (assoc -2 block)))&lt;BR /&gt;
      (while ent&lt;BR /&gt;
         (setq data (entget ent))&lt;BR /&gt;
         (if (and (eq (cdr (assoc 0 data)) "TEXT")&lt;BR /&gt;
                  (wcmatch (cdr (assoc 1 data)) pattern)&lt;BR /&gt;
             )&lt;BR /&gt;
             (entmod (list (cons -1 ent) (cons 1 replacetext)))&lt;BR /&gt;
         )&lt;BR /&gt;
      )&lt;BR /&gt;
   )&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
(replace-nested-text "FOUNDME" "NEWTEXT")&lt;BR /&gt;
&lt;BR /&gt;
Ryan Small wrote:&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; When issuing a call to SSGET, I want to be able to search inside of the&lt;BR /&gt;
&amp;gt; defined blocks in the drawing and look for a text object with for example&lt;BR /&gt;
&amp;gt; the text "FOUNDME". I then want to change this text value to something else&lt;BR /&gt;
&amp;gt; such as "NEWTEXT". Issuing (ssget "x" '((1 . "FOUNDME"))) does not search&lt;BR /&gt;
&amp;gt; blocks defined in the drawing.  I suspect that I need to search through the&lt;BR /&gt;
&amp;gt; block table using (TBLSEARCH).  Thanks,&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt;                         Ryan Small&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Visit our website at http://www.braemarbldg.com&lt;BR /&gt;
&amp;gt; E-Mail: braemar@braemarbldg.com&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
/*********************************************************/&lt;BR /&gt;
/*    Tony Tanzillo     Design Automation Consulting     */&lt;BR /&gt;
/* Programming &amp;amp; Customization for AutoCAD &amp;amp; Compatibles */&lt;BR /&gt;
/* ----------------------------------------------------- */&lt;BR /&gt;
/*            tony.tanzillo@worldnet.att.net             */&lt;BR /&gt;
/*    http://ourworld.compuserve.com/homepages/tonyt     */&lt;BR /&gt;
/*********************************************************/</description>
      <pubDate>Fri, 12 Nov 1999 04:55:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/entities-inside-a-block/m-p/875465#M162822</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>1999-11-12T04:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Entities inside a block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/entities-inside-a-block/m-p/875466#M162823</link>
      <description>How would I modify this routine to look for a certain block name and a certain text string and change the width of the text string?&lt;BR /&gt;
&lt;BR /&gt;
Tim</description>
      <pubDate>Wed, 04 Apr 2007 19:19:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/entities-inside-a-block/m-p/875466#M162823</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-04-04T19:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Entities inside a block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/entities-inside-a-block/m-p/875467#M162824</link>
      <description>How are you getting the block?  If it is text, then you can just select it&lt;BR /&gt;
with 'nenetsel' and then change it from there, and since it is a peace of&lt;BR /&gt;
text it will update all the blocks that are inserted.  If it is an&lt;BR /&gt;
attribute, then you will have to search the whole drawing for that block,&lt;BR /&gt;
then seach each attribute to find the correct tag, and change all the&lt;BR /&gt;
widths.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
&lt;BR /&gt;
Tim&lt;BR /&gt;
"A blind man lets nothing block his vision."&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;TSPARKS&gt; wrote in message news:5541717@discussion.autodesk.com...&lt;BR /&gt;
How would I modify this routine to look for a certain block name and a&lt;BR /&gt;
certain text string and change the width of the text string?&lt;BR /&gt;
&lt;BR /&gt;
Tim&lt;/TSPARKS&gt;</description>
      <pubDate>Wed, 04 Apr 2007 19:31:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/entities-inside-a-block/m-p/875467#M162824</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-04-04T19:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Entities inside a block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/entities-inside-a-block/m-p/875468#M162825</link>
      <description>I need to be able to do it without user input.  I want to write it so that I can run it on a group of drawings.&lt;BR /&gt;
&lt;BR /&gt;
Attributes are easy compared to this.  I can not for the life of me figure out how to get to a subentity of a block...like text, and change that text width.&lt;BR /&gt;
Sure I can redefine it with insert=, but this block will have title area info in it that will be different from drawing to drawing.  I just need to change a specific text string's (I know the value) width.  I also know the block name.&lt;BR /&gt;
&lt;BR /&gt;
Thanks, Tim</description>
      <pubDate>Wed, 04 Apr 2007 19:48:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/entities-inside-a-block/m-p/875468#M162825</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-04-04T19:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Entities inside a block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/entities-inside-a-block/m-p/875469#M162826</link>
      <description>Okay here is how I would do it.&lt;BR /&gt;
&lt;BR /&gt;
(defun ChangeTextWidth (BlkName TextStr TextWid)&lt;BR /&gt;
&lt;BR /&gt;
(vlax-for Blk (vla-get-Blocks (vla-get-ActiveDocument&lt;BR /&gt;
(vlax-get-Acad-Object)))&lt;BR /&gt;
 (if (= (strcase (vla-get-Name Blk)) (strcase BlkName))&lt;BR /&gt;
  (vlax-for Obj Blk&lt;BR /&gt;
   (if&lt;BR /&gt;
    (and&lt;BR /&gt;
     (=(vla-get-ObjectName Obj) "AcDbText")&lt;BR /&gt;
     (= (vla-get-TextString Obj) TextStr)&lt;BR /&gt;
    )&lt;BR /&gt;
    (vla-put-ScaleFactor Obj TextWid)&lt;BR /&gt;
   )&lt;BR /&gt;
  )&lt;BR /&gt;
 )&lt;BR /&gt;
)&lt;BR /&gt;
(princ)&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
Or even better, since this one won't search the whole block collection.&lt;BR /&gt;
&lt;BR /&gt;
(defun ChangeTextWidth-v02 (BlkName TextStr TextWid / Blk)&lt;BR /&gt;
&lt;BR /&gt;
(if (not (vl-catch-all-error (setq Blk (vl-catch-all-apply 'vla-Item (list&lt;BR /&gt;
(vla-get-Blocks (vla-get-ActiveDocument (vlax-get-Acad-Object))))))))&lt;BR /&gt;
 (vlax-for Obj Blk&lt;BR /&gt;
  (if&lt;BR /&gt;
   (and&lt;BR /&gt;
    (= (vla-get-ObjectName Obj) "AcDbText")&lt;BR /&gt;
    (= (vla-get-TextString Obj) TextStr)&lt;BR /&gt;
   )&lt;BR /&gt;
   (vla-put-ScaleFactor Obj TextWid)&lt;BR /&gt;
  )&lt;BR /&gt;
 )&lt;BR /&gt;
)&lt;BR /&gt;
(princ)&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
Watch for word wrap.&lt;BR /&gt;
-- &lt;BR /&gt;
&lt;BR /&gt;
Tim&lt;BR /&gt;
"A blind man lets nothing block his vision."&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;TSPARKS&gt; wrote in message news:5541768@discussion.autodesk.com...&lt;BR /&gt;
I need to be able to do it without user input.  I want to write it so that I&lt;BR /&gt;
can run it on a group of drawings.&lt;BR /&gt;
&lt;BR /&gt;
Attributes are easy compared to this.  I can not for the life of me figure&lt;BR /&gt;
out how to get to a subentity of a block...like text, and change that text&lt;BR /&gt;
width.&lt;BR /&gt;
Sure I can redefine it with insert=, but this block will have title area&lt;BR /&gt;
info in it that will be different from drawing to drawing.  I just need to&lt;BR /&gt;
change a specific text string's (I know the value) width.  I also know the&lt;BR /&gt;
block name.&lt;BR /&gt;
&lt;BR /&gt;
Thanks, Tim&lt;/TSPARKS&gt;</description>
      <pubDate>Wed, 04 Apr 2007 20:03:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/entities-inside-a-block/m-p/875469#M162826</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-04-04T20:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: Entities inside a block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/entities-inside-a-block/m-p/875470#M162827</link>
      <description>Getting this error...&lt;BR /&gt;
&lt;BR /&gt;
; error: no function definition: VL-CATCH-ALL-ERROR&lt;BR /&gt;
&lt;BR /&gt;
Thanks, Tim</description>
      <pubDate>Wed, 04 Apr 2007 20:15:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/entities-inside-a-block/m-p/875470#M162827</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-04-04T20:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Entities inside a block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/entities-inside-a-block/m-p/875471#M162828</link>
      <description>vl-catch-all-error-p&lt;BR /&gt;
&lt;BR /&gt;
&lt;TSPARKS&gt; wrote in message news:5541811@discussion.autodesk.com...&lt;BR /&gt;
Getting this error...&lt;BR /&gt;
&lt;BR /&gt;
; error: no function definition: VL-CATCH-ALL-ERROR&lt;BR /&gt;
&lt;BR /&gt;
Thanks, Tim&lt;/TSPARKS&gt;</description>
      <pubDate>Wed, 04 Apr 2007 20:28:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/entities-inside-a-block/m-p/875471#M162828</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-04-04T20:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Entities inside a block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/entities-inside-a-block/m-p/875472#M162829</link>
      <description>Here is what I ran...&lt;BR /&gt;
&lt;BR /&gt;
(ChangeTextWidth-v02 "PDMS_BACK" "SHELL EASTERN PETROLEUM (PTE) LTD." "0.9")&lt;BR /&gt;
&lt;BR /&gt;
It ran now without errors, but the text did not change.&lt;BR /&gt;
I verified  the block name and text string.  They are both valid.&lt;BR /&gt;
&lt;BR /&gt;
Ideas?</description>
      <pubDate>Wed, 04 Apr 2007 20:48:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/entities-inside-a-block/m-p/875472#M162829</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-04-04T20:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Entities inside a block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/entities-inside-a-block/m-p/875473#M162830</link>
      <description>The text width is a real, not a string.  Try it again without the quotes&lt;BR /&gt;
around the 0.9.&lt;BR /&gt;
&lt;BR /&gt;
Thanks Michael for catching the typo.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
&lt;BR /&gt;
Tim&lt;BR /&gt;
"A blind man lets nothing block his vision."&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;TSPARKS&gt; wrote in message news:5541848@discussion.autodesk.com...&lt;BR /&gt;
Here is what I ran...&lt;BR /&gt;
&lt;BR /&gt;
(ChangeTextWidth-v02 "PDMS_BACK" "SHELL EASTERN PETROLEUM (PTE) LTD." "0.9")&lt;BR /&gt;
&lt;BR /&gt;
It ran now without errors, but the text did not change.&lt;BR /&gt;
I verified  the block name and text string.  They are both valid.&lt;BR /&gt;
&lt;BR /&gt;
Ideas?&lt;/TSPARKS&gt;</description>
      <pubDate>Wed, 04 Apr 2007 20:58:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/entities-inside-a-block/m-p/875473#M162830</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-04-04T20:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: Entities inside a block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/entities-inside-a-block/m-p/875474#M162831</link>
      <description>I had already tried that and it didn't make a difference.&lt;BR /&gt;
&lt;BR /&gt;
Is there something else [like (vl-load-com)] that you may be assuming that I have loaded that needs to be loaded?&lt;BR /&gt;
&lt;BR /&gt;
Thanks....</description>
      <pubDate>Wed, 04 Apr 2007 21:31:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/entities-inside-a-block/m-p/875474#M162831</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-04-04T21:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Entities inside a block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/entities-inside-a-block/m-p/875475#M162832</link>
      <description>Did you regen after the command?&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
&lt;BR /&gt;
Tim&lt;BR /&gt;
"A blind man lets nothing block his vision."&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;TSPARKS&gt; wrote in message news:5541922@discussion.autodesk.com...&lt;BR /&gt;
I had already tried that and it didn't make a difference.&lt;BR /&gt;
&lt;BR /&gt;
Is there something else [like (vl-load-com)] that you may be assuming that I&lt;BR /&gt;
have loaded that needs to be loaded?&lt;BR /&gt;
&lt;BR /&gt;
Thanks....&lt;/TSPARKS&gt;</description>
      <pubDate>Wed, 04 Apr 2007 21:37:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/entities-inside-a-block/m-p/875475#M162832</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-04-04T21:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Entities inside a block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/entities-inside-a-block/m-p/875476#M162833</link>
      <description>yes</description>
      <pubDate>Wed, 04 Apr 2007 21:42:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/entities-inside-a-block/m-p/875476#M162833</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-04-04T21:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: Entities inside a block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/entities-inside-a-block/m-p/875477#M162834</link>
      <description>Here is the DXF data for the text entity...&lt;BR /&gt;
&lt;BR /&gt;
100 &lt;BR /&gt;
AcDbEntity&lt;BR /&gt;
  8&lt;BR /&gt;
PDMS_BACK&lt;BR /&gt;
 62&lt;BR /&gt;
     2&lt;BR /&gt;
100&lt;BR /&gt;
AcDbText&lt;BR /&gt;
 10&lt;BR /&gt;
661.17075&lt;BR /&gt;
 20&lt;BR /&gt;
26.4877&lt;BR /&gt;
 30&lt;BR /&gt;
0.0&lt;BR /&gt;
 40&lt;BR /&gt;
3.75&lt;BR /&gt;
  1&lt;BR /&gt;
SHELL EASTERN PETROLEUM (PTE) LTD.&lt;BR /&gt;
 41&lt;BR /&gt;
0.9&lt;BR /&gt;
  7&lt;BR /&gt;
O8111901&lt;BR /&gt;
 72&lt;BR /&gt;
     1&lt;BR /&gt;
 11&lt;BR /&gt;
702.177&lt;BR /&gt;
 21&lt;BR /&gt;
28.3627&lt;BR /&gt;
 31&lt;BR /&gt;
0.0&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
BTW: Thanks for the help......</description>
      <pubDate>Wed, 04 Apr 2007 21:48:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/entities-inside-a-block/m-p/875477#M162834</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-04-04T21:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Entities inside a block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/entities-inside-a-block/m-p/875478#M162835</link>
      <description>If you were using v02, which I would, there was another typo.  I forgot to&lt;BR /&gt;
add the block name to the search.  Here you go.  Tested and works.  Sorry&lt;BR /&gt;
about that.&lt;BR /&gt;
&lt;BR /&gt;
(defun ChangeTextWidth-v02 (BlkName TextStr TextWid / Blk)&lt;BR /&gt;
&lt;BR /&gt;
(if (not (vl-catch-all-error-p (setq Blk (vl-catch-all-apply 'vla-Item (list&lt;BR /&gt;
(vla-get-Blocks (vla-get-ActiveDocument (vlax-get-Acad-Object)))&lt;BR /&gt;
BlkName)))))&lt;BR /&gt;
 (vlax-for Obj Blk&lt;BR /&gt;
  (if&lt;BR /&gt;
   (and&lt;BR /&gt;
    (= (vla-get-ObjectName Obj) "AcDbText")&lt;BR /&gt;
    (= (vla-get-TextString Obj) TextStr)&lt;BR /&gt;
   )&lt;BR /&gt;
   (vla-put-ScaleFactor Obj TextWid)&lt;BR /&gt;
  )&lt;BR /&gt;
 )&lt;BR /&gt;
)&lt;BR /&gt;
(vla-Regen (vla-get-ActiveDocument (vlax-get-Acad-Object)) acActiveViewport)&lt;BR /&gt;
(princ)&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
&lt;BR /&gt;
Tim&lt;BR /&gt;
"A blind man lets nothing block his vision."&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;TSPARKS&gt; wrote in message news:5541964@discussion.autodesk.com...&lt;BR /&gt;
yes&lt;/TSPARKS&gt;</description>
      <pubDate>Wed, 04 Apr 2007 21:49:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/entities-inside-a-block/m-p/875478#M162835</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-04-04T21:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Entities inside a block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/entities-inside-a-block/m-p/875479#M162836</link>
      <description>bingo...thnx.....ura genuis....&lt;BR /&gt;
&lt;BR /&gt;
I may come back at you for explanations as to what is doing what so I understand better.&lt;BR /&gt;
&lt;BR /&gt;
Again...thanks for the help...&lt;BR /&gt;
&lt;BR /&gt;
Tim</description>
      <pubDate>Wed, 04 Apr 2007 21:56:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/entities-inside-a-block/m-p/875479#M162836</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-04-04T21:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Entities inside a block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/entities-inside-a-block/m-p/875480#M162837</link>
      <description>You're welcome.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
&lt;BR /&gt;
Tim&lt;BR /&gt;
"A blind man lets nothing block his vision."&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;TSPARKS&gt; wrote in message news:5541974@discussion.autodesk.com...&lt;BR /&gt;
bingo...thnx.....ura genuis....&lt;BR /&gt;
&lt;BR /&gt;
I may come back at you for explanations as to what is doing what so I&lt;BR /&gt;
understand better.&lt;BR /&gt;
&lt;BR /&gt;
Again...thanks for the help...&lt;BR /&gt;
&lt;BR /&gt;
Tim&lt;/TSPARKS&gt;</description>
      <pubDate>Wed, 04 Apr 2007 22:03:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/entities-inside-a-block/m-p/875480#M162837</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-04-04T22:03:07Z</dc:date>
    </item>
  </channel>
</rss>

