<?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: I'm looking to incorporate a LISP command into a dynamic block in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-m-looking-to-incorporate-a-lisp-command-into-a-dynamic-block/m-p/13767013#M165865</link>
    <description>&lt;P&gt;Moshe made a wonderful LISP, hats off.&lt;BR /&gt;Though I do want to point out this can be done easier with dynamic blocks as I said earlier but since I don't think you took the time to check out the thread I linked I will refer to message 19 in that thread where JPalme posted this block, which is almost exactly what you are after..&lt;BR /&gt;&lt;BR /&gt;In that thread he also explains with videos how to do it yourself.&lt;BR /&gt;&lt;A href="https://forums.autodesk.com/t5/dynamic-blocks-forum/object-in-dynamic-block-should-be-stretch-equally-but-on-400-or/m-p/9021017/highlight/true#M14893" target="_blank"&gt;https://forums.autodesk.com/t5/dynamic-blocks-forum/object-in-dynamic-block-should-be-stretch-equally-but-on-400-or/m-p/9021017/highlight/true#M14893&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Aug 2025 07:43:23 GMT</pubDate>
    <dc:creator>Brock_Olly</dc:creator>
    <dc:date>2025-08-14T07:43:23Z</dc:date>
    <item>
      <title>I'm looking to incorporate a LISP command into a dynamic block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-m-looking-to-incorporate-a-lisp-command-into-a-dynamic-block/m-p/13762656#M165788</link>
      <description>&lt;P&gt;So I'm very new to LISP Commands and think I have something that will do what I want it to do, however I want it inside a dynamic block that will update as I stretch it, (basically I want to associate a line with a divide command making equal parts at or under 12" on center) I have no idea how to do that, so any help would be greatly appreciated. (the line in question is the gray line with the drill holes on each end)&lt;/P&gt;&lt;P&gt;Attached are both the block and LISP&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Mon, 11 Aug 2025 13:39:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-m-looking-to-incorporate-a-lisp-command-into-a-dynamic-block/m-p/13762656#M165788</guid>
      <dc:creator>cclawsonD6QHU</dc:creator>
      <dc:date>2025-08-11T13:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: I'm looking to incorporate a LISP command into a dynamic block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-m-looking-to-incorporate-a-lisp-command-into-a-dynamic-block/m-p/13762708#M165789</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/17769601"&gt;@cclawsonD6QHU&lt;/a&gt;&amp;nbsp; hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Post a sample dwg with origin block and 1 or 2 examples beside it stretched so we can understand what do you mean/want?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Moshe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Aug 2025 14:14:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-m-looking-to-incorporate-a-lisp-command-into-a-dynamic-block/m-p/13762708#M165789</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2025-08-11T14:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: I'm looking to incorporate a LISP command into a dynamic block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-m-looking-to-incorporate-a-lisp-command-into-a-dynamic-block/m-p/13762729#M165791</link>
      <description>&lt;P&gt;is this sort of what your asking?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Aug 2025 14:31:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-m-looking-to-incorporate-a-lisp-command-into-a-dynamic-block/m-p/13762729#M165791</guid>
      <dc:creator>cclawsonD6QHU</dc:creator>
      <dc:date>2025-08-11T14:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: I'm looking to incorporate a LISP command into a dynamic block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-m-looking-to-incorporate-a-lisp-command-into-a-dynamic-block/m-p/13762882#M165793</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/17769601"&gt;@cclawsonD6QHU&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i see you been in Dynamic Block forum and you got an advice to come here but as i see this it could be solved with dynamic block tools&lt;/P&gt;&lt;P&gt;all you need for each pair of lines (hor/ver) is a linear parameter and a stretch action&amp;nbsp;&lt;/P&gt;&lt;P&gt;and another linear parameter (again for pair) and array action on the last circle (actually two)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;first on the base block (before it's stretched) scatter the circles along the horizontal lines (equally distance)&lt;/P&gt;&lt;P&gt;than apply the array action on the last 2 circle (1 on each line)&lt;/P&gt;&lt;P&gt;do the same for the vertical&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;that's should do the trick&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Moshe&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;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Aug 2025 17:03:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-m-looking-to-incorporate-a-lisp-command-into-a-dynamic-block/m-p/13762882#M165793</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2025-08-11T17:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: I'm looking to incorporate a LISP command into a dynamic block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-m-looking-to-incorporate-a-lisp-command-into-a-dynamic-block/m-p/13762928#M165794</link>
      <description>&lt;P&gt;not sure I follow... I need it to have a tolerance of no greater than 12" O.C. but maintain equal distances should said panel be something like 2'6" thus making the center 3 equal segments with drill holes 10" O.C. hence the reason for the divide command and Script. as far as I know an array has a set interval it has to be...&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Aug 2025 17:33:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-m-looking-to-incorporate-a-lisp-command-into-a-dynamic-block/m-p/13762928#M165794</guid>
      <dc:creator>cclawsonD6QHU</dc:creator>
      <dc:date>2025-08-11T17:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: I'm looking to incorporate a LISP command into a dynamic block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-m-looking-to-incorporate-a-lisp-command-into-a-dynamic-block/m-p/13763303#M165799</link>
      <description>&lt;P&gt;Can you post a dwg with multiple panels of say different overall lengths so can see what your trying to do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eg length 25 so 3 panels = 8.33333 wide. This is a simple divide 25 by 12 = 2.08333 so as has remainder&amp;nbsp; 0.0833 which is &amp;gt; 0.0 so add 1 to the integer ie = 3 required.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Aug 2025 00:11:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-m-looking-to-incorporate-a-lisp-command-into-a-dynamic-block/m-p/13763303#M165799</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2025-08-12T00:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: I'm looking to incorporate a LISP command into a dynamic block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-m-looking-to-incorporate-a-lisp-command-into-a-dynamic-block/m-p/13763933#M165812</link>
      <description>&lt;P&gt;Is this what you would like?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Aug 2025 11:10:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-m-looking-to-incorporate-a-lisp-command-into-a-dynamic-block/m-p/13763933#M165812</guid>
      <dc:creator>cclawsonD6QHU</dc:creator>
      <dc:date>2025-08-12T11:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: I'm looking to incorporate a LISP command into a dynamic block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-m-looking-to-incorporate-a-lisp-command-into-a-dynamic-block/m-p/13765001#M165827</link>
      <description>&lt;P&gt;I don't do a lot with dynamic blocks, rather just draw what you want as objects blocks lines circles etc, say based on enter height and width. I take it you want more holes added when the line length exceeds 12". That is a dynamic block parameter so I can not help. But the dwg was useful for say others more experienced with dynamic blocks.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Aug 2025 00:32:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-m-looking-to-incorporate-a-lisp-command-into-a-dynamic-block/m-p/13765001#M165827</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2025-08-13T00:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: I'm looking to incorporate a LISP command into a dynamic block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-m-looking-to-incorporate-a-lisp-command-into-a-dynamic-block/m-p/13765300#M165833</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/17769601"&gt;@cclawsonD6QHU&lt;/a&gt;&amp;nbsp;hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a few questions for you&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Your drawing is set with Architectural units but you have a thickness attribute which would be in mm?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know what annotations is?&lt;/P&gt;&lt;P&gt;Your block is defined as annotative block and has annotation scale of 3"=1'-0" - are you aware of that?&amp;nbsp;annotation scale should be applied to annotation objects like texts, dimensions and blocks or&amp;nbsp;&lt;/P&gt;&lt;P&gt;symbols that are a&lt;SPAN&gt;ffected by the change of drawing scale. does&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;your Square panel block is affected by drawing scale?&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;i'm asking all that cause say you bring in a Square Panel in at 1'=1' and the drills holes are scattered 12" as you want them, what do you think would happen to the drill holes distance when you apply 3"=1'-0" annotation scale?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Moshe&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Aug 2025 07:18:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-m-looking-to-incorporate-a-lisp-command-into-a-dynamic-block/m-p/13765300#M165833</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2025-08-13T07:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: I'm looking to incorporate a LISP command into a dynamic block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-m-looking-to-incorporate-a-lisp-command-into-a-dynamic-block/m-p/13765371#M165835</link>
      <description>&lt;P&gt;Moshe is correct you can do this within a block without LISP.&lt;BR /&gt;I created a similar block a while ago though the holes are on the inside.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I don't have access to full autocad right now so I cannot edit it though you can see the principle behind it.&lt;BR /&gt;You can create an array of your holes on the edge and calculate the required dimensions inside a parameter with named dimensions.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Aug 2025 08:22:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-m-looking-to-incorporate-a-lisp-command-into-a-dynamic-block/m-p/13765371#M165835</guid>
      <dc:creator>Brock_Olly</dc:creator>
      <dc:date>2025-08-13T08:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: I'm looking to incorporate a LISP command into a dynamic block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-m-looking-to-incorporate-a-lisp-command-into-a-dynamic-block/m-p/13765373#M165836</link>
      <description>&lt;P&gt;Check out this thread, which is where I learned it from, from Ojuris and J Palme.&lt;BR /&gt;&lt;A href="https://forums.autodesk.com/t5/dynamic-blocks-forum/object-in-dynamic-block-should-be-stretch-equally-but-on-400-or/td-p/8996971" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/dynamic-blocks-forum/object-in-dynamic-block-should-be-stretch-equally-but-on-400-or/td-p/8996971&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Aug 2025 08:24:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-m-looking-to-incorporate-a-lisp-command-into-a-dynamic-block/m-p/13765373#M165836</guid>
      <dc:creator>Brock_Olly</dc:creator>
      <dc:date>2025-08-13T08:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: I'm looking to incorporate a LISP command into a dynamic block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-m-looking-to-incorporate-a-lisp-command-into-a-dynamic-block/m-p/13765562#M165837</link>
      <description>&lt;P&gt;yes I know what annotative does and I always draw these at 3" = 1' as is the standard for the office and should I need to change that it is a simple matter of changing the block scale to what I need and deleting out the old scale. as to the thickness that is the text for the thickness of the panel, and so is just the orange text in the block that tag is called thickness and the text placeholder is MM to remind the drafter that that particular tag needs to be MM.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Aug 2025 11:18:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-m-looking-to-incorporate-a-lisp-command-into-a-dynamic-block/m-p/13765562#M165837</guid>
      <dc:creator>cclawsonD6QHU</dc:creator>
      <dc:date>2025-08-13T11:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: I'm looking to incorporate a LISP command into a dynamic block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-m-looking-to-incorporate-a-lisp-command-into-a-dynamic-block/m-p/13765624#M165839</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/17769601"&gt;@cclawsonD6QHU&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/17769601"&gt;@cclawsonD6QHU&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;yes I know what annotative does and I always draw these at 3" = 1' as i&lt;/FONT&gt;s the standard for the office and should I need to change that it is a simple matter of changing the block scale to what I need and deleting out the old scale. as to the thickness that is the text for the thickness of the panel, and so is just the orange text in the block that tag is called thickness and the text placeholder is MM to remind the drafter that that particular tag needs to be MM.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;And what do you achieve by scaling the panel to 3"=1'-0"?&amp;nbsp; assuming your goal is to plot it at that scale but in&amp;nbsp;AutoCAD real Material objects are drawn at 1:1 only annotative objects that may change due to plot scale gets annotation scales.&lt;/P&gt;&lt;P&gt;here is an example:&lt;/P&gt;&lt;P&gt;say your panel is 24" x 24" - ok? if you want it to be fit in A4/A3 sheet size you can plot it at 1"=10" (1:10) scale what you done is the opposite, you reduce the side of a real object in order to keep plot at 1"= 1" this could work only for your Square Panel it will&amp;nbsp;&lt;SPAN&gt;disrupt the real distance of the panel and the real distance between drill holes. also adding linear dimensions will be&amp;nbsp;disrupt - makes sense?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Moshe&lt;/P&gt;</description>
      <pubDate>Wed, 13 Aug 2025 11:59:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-m-looking-to-incorporate-a-lisp-command-into-a-dynamic-block/m-p/13765624#M165839</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2025-08-13T11:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: I'm looking to incorporate a LISP command into a dynamic block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-m-looking-to-incorporate-a-lisp-command-into-a-dynamic-block/m-p/13765728#M165842</link>
      <description>&lt;P&gt;to be honest with you this is a block someone else made and they asked me to fix it but it's looking like it might just be easier to build a brand new one. they now have to size it explode it then divide command to get the drill holes... I'm totally fine with making it un-annotative so long as the text and dims show up 1/8" in paper space. (using sheet sets)&lt;/P&gt;</description>
      <pubDate>Wed, 13 Aug 2025 13:06:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-m-looking-to-incorporate-a-lisp-command-into-a-dynamic-block/m-p/13765728#M165842</guid>
      <dc:creator>cclawsonD6QHU</dc:creator>
      <dc:date>2025-08-13T13:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: I'm looking to incorporate a LISP command into a dynamic block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-m-looking-to-incorporate-a-lisp-command-into-a-dynamic-block/m-p/13765966#M165848</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/17769601"&gt;@cclawsonD6QHU&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if the texts and the dimensions is annotative, and you draw them in model 1:1 , you can attach them to the right annotation scale to bring them to be any height in paper space, it is all about working right&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and again, geometric real objects are always need to be draw at 1:1 scale.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Moshe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Aug 2025 15:37:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-m-looking-to-incorporate-a-lisp-command-into-a-dynamic-block/m-p/13765966#M165848</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2025-08-13T15:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: I'm looking to incorporate a LISP command into a dynamic block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-m-looking-to-incorporate-a-lisp-command-into-a-dynamic-block/m-p/13766031#M165849</link>
      <description>&lt;P&gt;gotcha. guess I wasn't paying attention to that sort of thing just started fiddling with his block. thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Aug 2025 15:51:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-m-looking-to-incorporate-a-lisp-command-into-a-dynamic-block/m-p/13766031#M165849</guid>
      <dc:creator>cclawsonD6QHU</dc:creator>
      <dc:date>2025-08-13T15:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: I'm looking to incorporate a LISP command into a dynamic block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-m-looking-to-incorporate-a-lisp-command-into-a-dynamic-block/m-p/13766488#M165857</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/17769601"&gt;@cclawsonD6QHU&lt;/a&gt;&amp;nbsp; hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OK check this program. wrap this code lines in drills.lsp.&lt;/P&gt;&lt;P&gt;also attached sample_panel.dwg, test this on this file, load the lisp&lt;/P&gt;&lt;P&gt;the dwg contains a modified square panel block which is not annotative anymore (and it should stay&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;)&lt;/P&gt;&lt;P&gt;&lt;U&gt;do not try to run this on your existing blocks, simply it will not work&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once you stretch the block (by it's dynamic hor/ver grip handles) the drill holes will be scattered - job done&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note:&lt;/P&gt;&lt;P&gt;The first time you insert "square panel" block (still not stretched) it's name is "square panel". once you stretch it, it's name changes to *Unnn&lt;/P&gt;&lt;P&gt;this called Anonymous Block (it's copy of the origin) but AutoCAD know it's derived from origin . my lisp program works on the anonymous block.&lt;/P&gt;&lt;P&gt;manually updating the origin "square panel" (BEDIT \&amp;nbsp; block edit) all the drill holes are vanished, they are not part of the origin block.&lt;/P&gt;&lt;P&gt;so you need to take care about this.&amp;nbsp;each activation drags regenerating drawing to reflect the change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can also invoke DRILLS command to scatter drill holes (updating the block)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;; define some const global&lt;BR /&gt;(setq &lt;FONT color="#0000FF"&gt;MA:BLKNAME&lt;/FONT&gt; "square panel")&lt;BR /&gt;(setq &lt;FONT color="#0000FF"&gt;MA:DRILL_LINE_LAYER&lt;/FONT&gt; "guide lines")&lt;BR /&gt;(setq &lt;FONT color="#0000FF"&gt;MA:DRILL_HOLES_LAYER&lt;/FONT&gt; "+drill holes")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the above 3 variables, defines the block name + layers&lt;/P&gt;&lt;P&gt;if you need to change the block name and\or layers, you need to modify these lines.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the lisp adds an event (known in AutoLISP as Reactor) to monitor each stretch actions. if lisp is not responding, &lt;SPAN&gt;probably&lt;/SPAN&gt; the reactor is not&lt;/P&gt;&lt;P&gt;loaded \ installed. best practice is to close AutoCAD and start over.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;enjoy&lt;/P&gt;&lt;P&gt;Moshe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;(vl-load-com) ; load activex support

(defun process_drills (ss1 / clear_existing_drill_holes ; local function
		             adoc blocks ss radius-feet radius-inches AcDbBlkRef bname ; local variables
		             AcDbBlkTblRec AcDbEntity len n p0 p1 p2 d0 AcDbCircle)    ; local variables

 ; clear existing drills holes
 (defun clear_existing_drill_holes (ent / BlkRef bname BlkTblRec)
  (setq BlkRef (vlax-ename-&amp;gt;vla-object ent))
  (setq bname (vla-get-name BlkRef))
  (setq BlkTblRec (vla-item blocks bname))

  (vlax-for Entity BlkTblRec
   (if (and
	 (eq (vla-get-objectName Entity) "AcDbCircle")
	 (eq (strcase (vla-get-layer Entity)) (strcase MA:DRILL_HOLES_LAYER))
       )
    (vla-delete Entity)
   )

   (vlax-release-object Entity)
  )

  (vlax-release-object BlkTblRec)
  (vlax-release-object BlkRef)
 );  clear_existing_drill_holes
  
 
 ; here start (process_drills)
 (setq adoc (vla-get-activedocument (vlax-get-acad-object)))
 (vla-startUndoMark adoc)
  
 (setq blocks (vla-get-blocks adoc))
  
 (setq radius-feet (/ 1 16 12.0)) ; 1/16 inch expressed as feet
 (setq radius-inches (cvunit radius-feet "feet" "inches")) ; convert to inches decimal

 (foreach ename (vl-remove-if 'listp (mapcar 'cadr (ssnamex ss1)))
  (clear_existing_drill_holes ename)
     
  (setq AcDbBlkRef (vlax-ename-&amp;gt;vla-object ename))
  (setq bname (vla-get-name AcDbBlkRef))

  (if (eq (strcase (vla-get-effectiveName AcDbBlkRef)) (strcase MA:BLKNAME))
   (progn
    (setq AcDbBlkTblRec (vla-item blocks bname))

    (vlax-for AcDbEntity AcDbBlkTblRec
     (if (and
	   (eq (vla-get-objectName AcDbEntity) "AcDbLine")
           (setq len (vla-get-length AcDbEntity))
	   (&amp;gt; len 2.0)
	   (eq (strcase (vla-get-layer AcDbEntity)) (strcase MA:DRILL_LINE_LAYER))
         )
      (progn
       (if (= len 12)
        (setq n (/ len 12.0))
        (setq n (1+ (fix (/ len 12))))
       )
       
       (setq p0 (vlax-safearray-&amp;gt;list (vlax-variant-value (vla-get-startPoint AcDbEntity))))
       (setq p1 (vlax-safearray-&amp;gt;list (vlax-variant-value (vla-get-endPoint AcDbEntity))))
       (setq d0 0 step (/ len n))
       
       (while (&amp;lt;= d0 len)
        (setq p2 (polar p0 (angle p0 p1) d0))
        (setq AcDbCircle (vla-addCircle AcDbBlkTblRec (vlax-3d-point p2) radius-inches))
        (vla-put-layer AcDbCircle MA:DRILL_HOLES_LAYER)
        (vlax-release-object AcDbCircle)
        (setq d0 (+ d0 step))
       ); while
	 
      ); progn
     ); if

     (vlax-release-object AcDbEntity)
    ); vlax-for
    
   ); progn
  ); if
   
  (vlax-release-object AcDbBlkTblRec)
  (vlax-release-object AcDbBlkRef)
 ); foreach

 (vlax-release-object blocks)
 (vla-regen adoc acActiveViewport)

 (vla-endUndoMark adoc)
 (vlax-release-object adoc)

 (princ)
); process_drills


; define some const globals
(setq MA:BLKNAME "square panel")			; const
(setq MA:DRILL_LINE_LAYER "guide lines")		; const
(setq MA:DRILL_HOLES_LAYER "+drill holes")		; const


; for manual activate
(defun c:drills (/ ss0)
 (if (setq ss0 (ssget (list '(0 . "insert") (cons '2 (strcat MA:BLKNAME ",`*U*")))))
  (process_drills ss0)
 )
); c:drills


; callback
(defun MA:OnCommandEnded (Reactor cmd^)
 (if (and
       (eq (car cmd^) "GRIP_STRETCH")
       (setq ss (ssget "_P"))
     )
  (c:drills)
 )
); MA:OnCommandEnded


; install Reactor
(if (not MA:cmdReactor)
 (setq MA:cmdReactor (vlr-command-reactor nil '((:vlr-commandEnded . MA:OnCommandEnded))))
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Aug 2025 21:19:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-m-looking-to-incorporate-a-lisp-command-into-a-dynamic-block/m-p/13766488#M165857</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2025-08-13T21:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: I'm looking to incorporate a LISP command into a dynamic block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-m-looking-to-incorporate-a-lisp-command-into-a-dynamic-block/m-p/13766491#M165858</link>
      <description>&lt;P&gt;You are a hero of great renown and I shall sing your praises! Seriously thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Aug 2025 21:23:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-m-looking-to-incorporate-a-lisp-command-into-a-dynamic-block/m-p/13766491#M165858</guid>
      <dc:creator>cclawsonD6QHU</dc:creator>
      <dc:date>2025-08-13T21:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: I'm looking to incorporate a LISP command into a dynamic block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-m-looking-to-incorporate-a-lisp-command-into-a-dynamic-block/m-p/13766669#M165862</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/52747"&gt;@Moshe-A&lt;/a&gt;&amp;nbsp;a great program definitely&amp;nbsp;going to study how the bolt holes are added. I thought about this as a extra choice Drills2 allows entry of width and height plus atts all in one command.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun c:drills2 (/ ss0)

;; Set Dynamic Block Property Value  -  Lee Mac
;; Modifies the value of a Dynamic Block property (if present)
;; blk - [vla] VLA Dynamic Block Reference object
;; prp - [str] Dynamic Block property name (case-insensitive)
;; val - [any] New value for property
;; Returns: [any] New value if successful, else nil

(defun LM:setdynpropvalue ( blk prp val )
    (setq prp (strcase prp))
    (vl-some
       '(lambda ( x )
            (if (= prp (strcase (vla-get-propertyname x)))
                (progn
                    (vla-put-value x (vlax-make-variant val (vlax-variant-type (vla-get-value x))))
                    (cond (val) (t))
                )
            )
        )
        (vlax-invoke blk 'getdynamicblockproperties)
    )
)

 (setq wid (getreal "\nEnter Width ") Ht (getreal "\nheight "))
 (Command "-Insert" MA:BLKNAME "S" 1 (getpoint "\nPick point for block ") 0 pause pause pause pause "" "" "" "")
 (setq blk (vlax-ename-&amp;gt;vla-object (entlast)))
 (LM:setdynpropvalue blk "Width" wid)
 (LM:setdynpropvalue blk "height" ht)
 (setq ss0 (ssadd))
 (setq ss0 (ssadd (entlast)))
 (process_drills ss0)
 )
); c:drills2&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>Thu, 14 Aug 2025 01:16:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-m-looking-to-incorporate-a-lisp-command-into-a-dynamic-block/m-p/13766669#M165862</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2025-08-14T01:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: I'm looking to incorporate a LISP command into a dynamic block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-m-looking-to-incorporate-a-lisp-command-into-a-dynamic-block/m-p/13767013#M165865</link>
      <description>&lt;P&gt;Moshe made a wonderful LISP, hats off.&lt;BR /&gt;Though I do want to point out this can be done easier with dynamic blocks as I said earlier but since I don't think you took the time to check out the thread I linked I will refer to message 19 in that thread where JPalme posted this block, which is almost exactly what you are after..&lt;BR /&gt;&lt;BR /&gt;In that thread he also explains with videos how to do it yourself.&lt;BR /&gt;&lt;A href="https://forums.autodesk.com/t5/dynamic-blocks-forum/object-in-dynamic-block-should-be-stretch-equally-but-on-400-or/m-p/9021017/highlight/true#M14893" target="_blank"&gt;https://forums.autodesk.com/t5/dynamic-blocks-forum/object-in-dynamic-block-should-be-stretch-equally-but-on-400-or/m-p/9021017/highlight/true#M14893&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2025 07:43:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-m-looking-to-incorporate-a-lisp-command-into-a-dynamic-block/m-p/13767013#M165865</guid>
      <dc:creator>Brock_Olly</dc:creator>
      <dc:date>2025-08-14T07:43:23Z</dc:date>
    </item>
  </channel>
</rss>

