<?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: divide with block in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/divide-with-block/m-p/9698679#M71160</link>
    <description>&lt;P&gt;Sounds like a custom divide take length divide by a spacing, then start 1st block at a distance from start end is same distance. Plenty of code examples provide the required spacing.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screenshot243.png" style="width: 825px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/808703i3544349AE50BDBD6/image-size/large?v=v2&amp;amp;px=999" role="button" title="screenshot243.png" alt="screenshot243.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Aug 2020 23:56:59 GMT</pubDate>
    <dc:creator>Sea-Haven</dc:creator>
    <dc:date>2020-08-18T23:56:59Z</dc:date>
    <item>
      <title>divide with block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/divide-with-block/m-p/9693781#M71155</link>
      <description>&lt;P&gt;&lt;STRONG&gt;iam using below mentioned code for divide option.but iam getting the point style only. I need to place "selected block" instead of point style.&lt;/STRONG&gt;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(defun c:div ()
  (setq val (getint " no of POINTS"))
  (setq val (* 2 val))
  (command "divide" pause val)
  (setq ss (ssget "p"))
  (setq co 1)
  (setq len (sslength ss))
  (repeat len
    (setq en (ssname ss co))
    (setq det (entget en))
    (entdel en)
    (setq co (+ co 2))
  )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 17 Aug 2020 13:03:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/divide-with-block/m-p/9693781#M71155</guid>
      <dc:creator>shefipmoosa</dc:creator>
      <dc:date>2020-08-17T13:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: divide with block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/divide-with-block/m-p/9694147#M71156</link>
      <description>&lt;P&gt;There is a Block option in DIVIDE command. No need lisp.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 382px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/807840i5DCF384A43588DA9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Aug 2020 20:44:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/divide-with-block/m-p/9694147#M71156</guid>
      <dc:creator>3wood</dc:creator>
      <dc:date>2020-08-16T20:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: divide with block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/divide-with-block/m-p/9694150#M71157</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2985840"&gt;@shefipmoosa&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt;iam using below mentioned code for divide option.but iam getting the point style only. I need to place "selected block" instead of point style.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;(defun c:div ()&lt;BR /&gt;&amp;nbsp; (setq val (getint " no of POINTS"))&lt;BR /&gt;&amp;nbsp; (setq val (* 2 val))&lt;BR /&gt;&amp;nbsp; (command "divide" pause val)&lt;BR /&gt;&amp;nbsp; (setq ss (ssget "p"))&lt;BR /&gt;&amp;nbsp; (setq co 1)&lt;BR /&gt;&amp;nbsp; (setq len (sslength ss))&lt;BR /&gt;&amp;nbsp; (repeat len&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setq en (ssname ss co))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setq det (entget en))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (entdel en)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setq co (+ co 2))&lt;BR /&gt;&amp;nbsp; )&lt;BR /&gt;)&lt;/FONT&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You are not telling it to divide with a block&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;replace&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(command "divide" pause val)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(command "divide" pause "_B" "xxx" ("_Y" or "_N") val)

replace "xxx" with the name of the block you want to divide the line with
delete "_Y" or "_N" depending on whether you want to align the blocks "_Y" or not "_N"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure what the rest of you code is trying to do&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Aug 2020 20:44:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/divide-with-block/m-p/9694150#M71157</guid>
      <dc:creator>dlanorh</dc:creator>
      <dc:date>2020-08-16T20:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: divide with block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/divide-with-block/m-p/9696736#M71158</link>
      <description>&lt;P&gt;autocad divide option are different,This code iam using for placing no.of lights.( if 3 lights lighting placement methord is starting point point to x, next two point are 2x ,and 3rd to end x ) this code already customized as per this requirement. but I gave number of point its coming to point style, I need to add selected block / block name instead of point style.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 07:39:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/divide-with-block/m-p/9696736#M71158</guid>
      <dc:creator>shefipmoosa</dc:creator>
      <dc:date>2020-08-18T07:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: divide with block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/divide-with-block/m-p/9697199#M71159</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2985840"&gt;@shefipmoosa&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;.... if 3 lights lighting placement methord is starting point point to x, next two point are 2x ,and 3rd to end x .....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You can use the &lt;FONT color="#000000"&gt;&lt;STRONG&gt;DIV+&lt;/STRONG&gt;&lt;/FONT&gt; command in &lt;FONT color="#000000"&gt;&lt;STRONG&gt;DivideMeasurePlus.lsp&lt;/STRONG&gt;&lt;/FONT&gt;, available &lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/share-your-favorite-usefull-lisp-files/m-p/8071104/highlight/true#M370151" target="_blank" rel="noopener"&gt;&amp;gt;here&amp;lt;&lt;/A&gt;.&amp;nbsp; One of its many enhancements over ordinary DIVIDE is that it has an option to place the markers [with Blocks as one of the options] at the &lt;EM&gt;midpoints&lt;/EM&gt;&amp;nbsp; of the divided segments, rather than at the dividing points.&amp;nbsp; You would use the Block option and use that midpoints option with 3 as the number of divisions.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 11:54:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/divide-with-block/m-p/9697199#M71159</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2020-08-18T11:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: divide with block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/divide-with-block/m-p/9698679#M71160</link>
      <description>&lt;P&gt;Sounds like a custom divide take length divide by a spacing, then start 1st block at a distance from start end is same distance. Plenty of code examples provide the required spacing.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screenshot243.png" style="width: 825px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/808703i3544349AE50BDBD6/image-size/large?v=v2&amp;amp;px=999" role="button" title="screenshot243.png" alt="screenshot243.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 23:56:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/divide-with-block/m-p/9698679#M71160</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2020-08-18T23:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: divide with block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/divide-with-block/m-p/9699725#M71161</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6254908"&gt;@Sea-Haven&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;... take length divide by a spacing, then start 1st block at a distance from start end is same distance. ....&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screenshot243.png" style="width: 314px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/808703i3544349AE50BDBD6/image-dimensions/314x129?v=v2" width="314" height="129" role="button" title="screenshot243.png" alt="screenshot243.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If I understood the OP's description correctly, this is what they're really looking for:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DivX-2X.PNG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/808907iD5ACF08E61751687/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DivX-2X.PNG" alt="DivX-2X.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;DIV+&lt;/STRONG&gt;&lt;/FONT&gt; will do that.&amp;nbsp; Here's the command sequence that did the above [&lt;FONT color="#0000FF"&gt;dark blue&lt;/FONT&gt; are typed-in entries]:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Command: &lt;FONT size="4" color="#0000FF"&gt;&lt;STRONG&gt;DIV+&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Divide with Points/Blocks/Lines/Selection ? &amp;lt;P&amp;gt;: &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;S&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;For Selection set with which to Divide,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;Select objects: &lt;FONT color="#00CCFF"&gt;&lt;EM&gt;{select the Circle, which can be anywhere}&lt;/EM&gt;&lt;/FONT&gt; 1 found&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Select objects: &lt;EM&gt;&lt;FONT color="#00CCFF"&gt;{Enter to complete selection}&lt;/FONT&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;Base point in relation to Selection: &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;CEN&lt;/STRONG&gt;&lt;/FONT&gt; of &lt;EM&gt;&lt;FONT color="#00CCFF"&gt;{pick on the Circle to get its center}&lt;/FONT&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;Selection rotation, or Aligned with path or Relative angle to path [angle/A/R] &amp;lt;A&amp;gt;: &lt;EM&gt;&lt;FONT color="#00CCFF"&gt;{enter to accept default -- doesn't matter in this case}&lt;/FONT&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Enter number of Segments, or M for Maximum spacing &amp;lt;M&amp;gt;: &lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;3&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Place Selection at division points (Standard) or at Midpoints of divisions [S/M]? &amp;lt;S&amp;gt;: &lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;M&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Select object to Divide: &lt;EM&gt;&lt;FONT color="#00CCFF"&gt;{select the Line}&lt;/FONT&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Select object to Divide: &lt;FONT color="#00CCFF"&gt;&lt;EM&gt;{enter to end command}&lt;/EM&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 13:26:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/divide-with-block/m-p/9699725#M71161</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2020-08-19T13:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: divide with block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/divide-with-block/m-p/9699737#M71162</link>
      <description>&lt;P&gt;... and note that in line with the original request, &lt;FONT color="#000000"&gt;&lt;STRONG&gt;DIV+&lt;/STRONG&gt;&lt;/FONT&gt; offers a &lt;STRONG&gt;&lt;FONT color="#000000"&gt;Blocks&lt;/FONT&gt;&lt;/STRONG&gt; option, also, and if that is chosen, the rotation [which doesn't matter for a Circle] has several options [more than regular Divide offers].&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 13:35:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/divide-with-block/m-p/9699737#M71162</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2020-08-19T13:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: divide with block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/divide-with-block/m-p/9701162#M71163</link>
      <description>&lt;P&gt;Your right just need the poster now to respond its nice to know if it matched their needs.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 00:33:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/divide-with-block/m-p/9701162#M71163</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2020-08-20T00:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: divide with block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/divide-with-block/m-p/9710691#M71164</link>
      <description>&lt;P&gt;GREAT SIR, THANKS&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 14:03:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/divide-with-block/m-p/9710691#M71164</guid>
      <dc:creator>shefipmoosa</dc:creator>
      <dc:date>2020-08-25T14:03:04Z</dc:date>
    </item>
  </channel>
</rss>

