<?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: Insert Block and automatic break lines in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-block-and-automatic-break-lines/m-p/10359267#M59804</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10819474"&gt;@niceDYZP5&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;thanks for the reply. I have this LISP downloaded already. I think its really good, but we were looking for a LISP that will break lines as you insert the block on a line. Lee Macs LISP, from what I see, you select all objects then you break the lines.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not really true. Load his lisp once more and try this line copy-paste to the command line.&lt;/P&gt;
&lt;P&gt;(progn (initdia) (command-s "classicinsert") (LM:AUTOBLOCKBREAK (entlast) t))&lt;/P&gt;</description>
    <pubDate>Wed, 02 Jun 2021 20:22:42 GMT</pubDate>
    <dc:creator>ВeekeeCZ</dc:creator>
    <dc:date>2021-06-02T20:22:42Z</dc:date>
    <item>
      <title>Insert Block and automatic break lines</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-block-and-automatic-break-lines/m-p/10358477#M59795</link>
      <description>&lt;P&gt;Hi all, I am looking for a LISP that will break or trim lines when inserting a block onto a line or polyline.&lt;/P&gt;&lt;P&gt;I have tried many different LISP routines&amp;nbsp; I found online, but not seeming to do exactly what I want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to be able to insert a block (onto line or polyline) and have it break upon insertion.&lt;/P&gt;&lt;P&gt;I have tried Lee Macs "Automatic Block Break" which is awesome, but I didn't like how you have to manually type in a block name or browse to the folder where the block resides.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I generally use "Design Center" to insert blocks.&lt;/P&gt;&lt;P&gt;Any ideas???&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 14:11:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-block-and-automatic-break-lines/m-p/10358477#M59795</guid>
      <dc:creator>niceDYZP5</dc:creator>
      <dc:date>2021-06-02T14:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Block and automatic break lines</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-block-and-automatic-break-lines/m-p/10358528#M59796</link>
      <description>&lt;P&gt;Put a Wipeout in the Block.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 14:36:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-block-and-automatic-break-lines/m-p/10358528#M59796</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2021-06-02T14:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Block and automatic break lines</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-block-and-automatic-break-lines/m-p/10358628#M59797</link>
      <description>&lt;P&gt;Thank you Kent, I have been considering this. I thought a wipeout would be better, due to the fact you can move the object and not have to extend or fix broken lines.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But my co-workers have a different view on this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As it was explained to me by co-workers, they'd rather have a break in the line because one side of the symbol might need to be a different line type or layer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 15:20:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-block-and-automatic-break-lines/m-p/10358628#M59797</guid>
      <dc:creator>niceDYZP5</dc:creator>
      <dc:date>2021-06-02T15:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Block and automatic break lines</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-block-and-automatic-break-lines/m-p/10358692#M59798</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10819474"&gt;@niceDYZP5&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;.... they'd rather have a break in the line because one side of the symbol might need to be a different line type or layer.&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Well, that can be done, but how satisfactorily depends a lot on the particular shapes of the Blocks, where their insertion points are, and the directions the linework runs in.&amp;nbsp; If a Block is &lt;EM&gt;circular&lt;/EM&gt;, and its insertion point is &lt;EM&gt;at its center&lt;/EM&gt;, then its diameter can be known and a Line [or Polyline] can be Broken the correct distance from the center in each direction, no matter what the Line direction or the Block rotation.&amp;nbsp; But if the same Block is &lt;EM&gt;square&lt;/EM&gt;, and you want the broken ends of the Line to &lt;EM&gt;meet its perimeter&lt;/EM&gt;, the Line should be broken for a &lt;EM&gt;different&lt;/EM&gt; distance depending on its direction relative to the Block rotation.&amp;nbsp; The difference would be greater with more irregular shapes.&amp;nbsp; If a Block is bounded by a &lt;EM&gt;single closed outline object&lt;/EM&gt; [Circle, Ellipse, Polyline], it may be possible to get that picked on in a TRIM command, and Trim out the part of the Line within it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you can post a small sample drawing with some typical linework and typical Blocks, it may be more apparent how to approach it, or what compromises you may need to accept [such as broken Lines maybe ending short of the Block in some cases and maybe penetrating slightly into it in others].&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suspect there are similar topics in the Forums, and it is worth a little Searching -- something may already be available.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 15:46:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-block-and-automatic-break-lines/m-p/10358692#M59798</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2021-06-02T15:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Block and automatic break lines</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-block-and-automatic-break-lines/m-p/10358949#M59799</link>
      <description>&lt;P&gt;Kent, I attached a drawing that shows common symbols and lines.&lt;/P&gt;&lt;P&gt;I highlighted the blocks in yellow. As you can see, there are cases where the wipeout would work, but when we need to change linetype, layer, etc, we would need to break the line at that point.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 17:30:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-block-and-automatic-break-lines/m-p/10358949#M59799</guid>
      <dc:creator>niceDYZP5</dc:creator>
      <dc:date>2021-06-02T17:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Block and automatic break lines</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-block-and-automatic-break-lines/m-p/10359047#M59800</link>
      <description>&lt;P&gt;Removed by the user.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 18:09:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-block-and-automatic-break-lines/m-p/10359047#M59800</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2021-06-02T18:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Block and automatic break lines</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-block-and-automatic-break-lines/m-p/10359056#M59801</link>
      <description>&lt;P&gt;thanks for the reply. I have this LISP downloaded already. I think its really good, but we were looking for a LISP that will break lines as you insert the block on a line. Lee Macs LISP, from what I see, you select all objects then you break the lines.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 18:11:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-block-and-automatic-break-lines/m-p/10359056#M59801</guid>
      <dc:creator>niceDYZP5</dc:creator>
      <dc:date>2021-06-02T18:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Block and automatic break lines</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-block-and-automatic-break-lines/m-p/10359233#M59802</link>
      <description>&lt;P&gt;Would you be willing to change the Block definitions so that the insertion points are &lt;EM&gt;in the middle&lt;/EM&gt; of each Block?&amp;nbsp; It would make a routine infinitely easier.&amp;nbsp; With the insertion points at the midpoint of the left side, placing the Blocks would require calculation from the picked Line/Polyline, affected by scale if that ever varies, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, do the ones with an Attribute above [TB1 in your sample] ever occur on &lt;EM&gt;vertical&lt;/EM&gt; Lines?&amp;nbsp; If so, should the break encompass the Attribute, or only the rectangle box?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 19:47:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-block-and-automatic-break-lines/m-p/10359233#M59802</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2021-06-02T19:47:39Z</dc:date>
    </item>
    <item>
      <title>Ynt: Insert Block and automatic break lines</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-block-and-automatic-break-lines/m-p/10359241#M59803</link>
      <description>&lt;P&gt;I would definitely consider changing the insertion point in the blocks. We do not have a large library yet, so that would be no issue. As far as your question regarding the TB1 attribute, yes, there are times this block would be placed on a vertical line. I would think the lines should be broke round the box and not the attribute.&lt;/P&gt;&lt;P&gt;I have downloaded and tested many "block line break" LISP's and none of them seem to work. Would it be because the insertion point of the blocks is typically on the left?&lt;/P&gt;&lt;P&gt;Also, if you agree with my comment above, which LISP routine would you recommend would be best to use? We would like to have line broken at insertion, not afterwards.....if that makes any sense??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 19:52:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-block-and-automatic-break-lines/m-p/10359241#M59803</guid>
      <dc:creator>niceDYZP5</dc:creator>
      <dc:date>2021-06-02T19:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Block and automatic break lines</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-block-and-automatic-break-lines/m-p/10359267#M59804</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10819474"&gt;@niceDYZP5&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;thanks for the reply. I have this LISP downloaded already. I think its really good, but we were looking for a LISP that will break lines as you insert the block on a line. Lee Macs LISP, from what I see, you select all objects then you break the lines.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not really true. Load his lisp once more and try this line copy-paste to the command line.&lt;/P&gt;
&lt;P&gt;(progn (initdia) (command-s "classicinsert") (LM:AUTOBLOCKBREAK (entlast) t))&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 20:22:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-block-and-automatic-break-lines/m-p/10359267#M59804</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2021-06-02T20:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Block and automatic break lines</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-block-and-automatic-break-lines/m-p/10359361#M59805</link>
      <description>&lt;P&gt;Thanks for this tip! When you say copy that line into the command line, do you mean at the command prompt in AutoCAD? Or in the Lisp file itself?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 21:22:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-block-and-automatic-break-lines/m-p/10359361#M59805</guid>
      <dc:creator>niceDYZP5</dc:creator>
      <dc:date>2021-06-02T21:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Block and automatic break lines</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-block-and-automatic-break-lines/m-p/10359948#M59806</link>
      <description>&lt;P&gt;Was looking at &lt;STRONG&gt;boundary&lt;/STRONG&gt; around block but text out side is a problem need to think harder and better solution than bounding box. maybe a bounding box of block elements then a outer boundary.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As suggested call Lee's program he does state though "&lt;SPAN&gt;with all objects surrounding the block trimmed to the rectangular block outline" So a triangle will have bigger gaps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screenshot398.png" style="width: 981px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/925971iFCACC5215C9A4501/image-size/large?v=v2&amp;amp;px=999" role="button" title="screenshot398.png" alt="screenshot398.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 04:08:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-block-and-automatic-break-lines/m-p/10359948#M59806</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2021-06-03T04:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Block and automatic break lines</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-block-and-automatic-break-lines/m-p/10360293#M59807</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10819474"&gt;@niceDYZP5&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks for this tip! When you say copy that line into the command line, do you mean at the command prompt in AutoCAD...&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes, that was just to prove the concept.&lt;/P&gt;
&lt;P&gt;Anyway, here's the regular lisp.&lt;/P&gt;
&lt;P&gt;Add this to the Lee's *.lsp file at the very end, load the file, run the InsertBreak command.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun c:InsertBreak ()
  (initdia)
  (command-s "classicinsert")
  (LM:AUTOBLOCKBREAK (entlast) t)
  (princ)
  )
&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Jun 2021 07:31:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-block-and-automatic-break-lines/m-p/10360293#M59807</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2021-06-03T07:31:18Z</dc:date>
    </item>
    <item>
      <title>Ynt: Insert Block and automatic break lines</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-block-and-automatic-break-lines/m-p/10362060#M59808</link>
      <description>&lt;P&gt;Thank you all for your guidance. I think I can get Lee's program to work for us now. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 19:07:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-block-and-automatic-break-lines/m-p/10362060#M59808</guid>
      <dc:creator>niceDYZP5</dc:creator>
      <dc:date>2021-06-03T19:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Block and automatic break lines</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-block-and-automatic-break-lines/m-p/10362717#M59809</link>
      <description>&lt;P&gt;May have found a way for odd shapes draw a circle around block, trim line left right, then do extend use BLOCK, then left right lines. Have to go now but will try later.&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="screenshot400.png" style="width: 680px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/926466iF61D37BE5C20B68D/image-size/large?v=v2&amp;amp;px=999" role="button" title="screenshot400.png" alt="screenshot400.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 01:29:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-block-and-automatic-break-lines/m-p/10362717#M59809</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2021-06-04T01:29:33Z</dc:date>
    </item>
  </channel>
</rss>

