<?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: Programming Challenge 24-1 in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/programming-challenge-24-1/m-p/12480504#M19601</link>
    <description>&lt;P&gt;I would assume that in real life [let's say] 5 layers of material would measure more than 100 mils -- there's got to be some little bit of air layer or non-sticking-together dusting or surface irregularities or other don't-quite-lie-precisely aspect.&amp;nbsp; I assume that should be ignored, but maybe an extra mil or two per layer should be assumed.&lt;/P&gt;</description>
    <pubDate>Sat, 06 Jan 2024 12:40:10 GMT</pubDate>
    <dc:creator>Kent1Cooper</dc:creator>
    <dc:date>2024-01-06T12:40:10Z</dc:date>
    <item>
      <title>Programming Challenge 24-1</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/programming-challenge-24-1/m-p/12479825#M19600</link>
      <description>&lt;P&gt;Given a roll of 20 mil vinyl pool liner material, solve for how many feet of material are left if the outside diameter measures 11 inches and the hard cardboard core has an OD of 2.0 inches.&lt;/P&gt;
&lt;P&gt;All calculations shall be made using AutoLisp with all code submitted for review.&lt;/P&gt;
&lt;P&gt;It would be best written to accept input for each of the variables so that it could be used for any combination of conditions, and it must contain error trapping to report any invalid conditions, e.g. if the roll OD is less than the core OD (of course the answer could be 0 feet), or if any measurement is negative.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 21:48:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/programming-challenge-24-1/m-p/12479825#M19600</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2024-01-05T21:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Programming Challenge 24-1</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/programming-challenge-24-1/m-p/12480504#M19601</link>
      <description>&lt;P&gt;I would assume that in real life [let's say] 5 layers of material would measure more than 100 mils -- there's got to be some little bit of air layer or non-sticking-together dusting or surface irregularities or other don't-quite-lie-precisely aspect.&amp;nbsp; I assume that should be ignored, but maybe an extra mil or two per layer should be assumed.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jan 2024 12:40:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/programming-challenge-24-1/m-p/12480504#M19601</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2024-01-06T12:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Programming Challenge 24-1</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/programming-challenge-24-1/m-p/12481159#M19602</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Nope, I am talking real life as you might recall I wrote software for a swimming pool liner manufacturer and served some time as their general manager.&amp;nbsp; There are never any gaps nor is there any discernable stretching as we always checked every bolt of material for thickness with a micrometer.&amp;nbsp; Typical thicknesses are 16 mil, 20 mil, and 27 mil depending on the size of the pool.&amp;nbsp; Don't want to get gypped.&amp;nbsp; Plus, we have to be sure that each panel which is designed in AutoCAD and then cut on an Eastman automatic cutting machine has exact dimensions.&amp;nbsp; Each liner is designed, cut, and assembled to fit the pool exactly.&amp;nbsp; Wrinkles are taboo.&lt;/P&gt;
&lt;P&gt;Don't overthink it.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jan 2024 01:47:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/programming-challenge-24-1/m-p/12481159#M19602</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2024-01-07T01:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Programming Challenge 24-1</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/programming-challenge-24-1/m-p/12481337#M19603</link>
      <description>&lt;P&gt;My $0.05, ignores stuff like spiral step increase.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun JOHN:CH124 ( / ans rod tod thk rad num tot)
(if (not AH:getvalsm)(load "Multi Getvals.lsp"))

(setq ans (AH:getvalsm (list "Enter values" "Roll OD" 5 4 "10" "Thickness mil" 5 4 "20" "Tube OD" 5 4 "2")))

(setq rod (atof (car ans))
  Thk (/ (atof (cadr ans)) 1000.)
  tod (atof (caddr ans))
)

(cond 
  ((&amp;gt; tod (- rod 0.125))
    (progn (alert "Roll is to small for calulation \n\nWill now exit please run again")(exit))
  )
  ((&amp;gt; tod rod)
    (progn (alert "Inside roll tube  is set too large bigger than roll \n\nWill now exit please run again")(exit))
  )
  ((= thk 0.016)(princ))
  ((= thk 0.02)(princ))
  ((= thk 0.027)(princ))
  (alert "You have entered a incorrect thickness 16 20 or 27 are valid ")
)

(setq num (fix (/ (/ (- rod tod) 2.0) thk)))
(setq rad (+ (/ tod 2.0) (/ thk 2.0)))
(setq tot (* pi (* 2.0 rad)))

(repeat (- num 1)
  (setq rad (+ rad thk))
  (setq tot (+ tot (* pi (* 2.0 rad))))
)

(alert (strcat "You have " (rtos (/ tot 12) 2 1) " feet left"))

(princ)
)
(JOHN:CH124)&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;P&gt;&amp;nbsp;&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="SeaHaven_0-1704609977951.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1311076i94DDA5CFA74F050E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SeaHaven_0-1704609977951.png" alt="SeaHaven_0-1704609977951.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SeaHaven_1-1704609994557.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1311077iDD408E9123902FED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SeaHaven_1-1704609994557.png" alt="SeaHaven_1-1704609994557.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 22:50:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/programming-challenge-24-1/m-p/12481337#M19603</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-01-09T22:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Programming Challenge 24-1</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/programming-challenge-24-1/m-p/12482236#M19604</link>
      <description>&lt;P&gt;For those who are at all interested, stretch IS part of the consideration.&lt;/P&gt;
&lt;P&gt;In addition to panels being overlapped with heat "welded" seams, the manufacturer takes out another inch or more in length as part of the AutoCAD design because when the liner is placed within the pool walls, the water pressure will stretch the material to create a snug fit.&amp;nbsp; Remember, no wrinkles!&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;*** HINT ***&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;BTW #1, A 2 inch core is incorrect.&amp;nbsp; It's really a 3.5 inch core.&amp;nbsp; I guess I was&amp;nbsp;thinking about rolls of plotter paper.&lt;/P&gt;
&lt;P&gt;BTW #2, I doubt that you will develop the formula on your own.&amp;nbsp; I couldn't.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jan 2024 23:16:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/programming-challenge-24-1/m-p/12482236#M19604</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2024-01-07T23:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Programming Challenge 24-1</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/programming-challenge-24-1/m-p/12482308#M19605</link>
      <description>&lt;P&gt;11" dia 3.5" core 20 mil is this close ? You question was the length of the roll available.&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="SeaHaven_0-1704673636828.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1311268i01ED00CED5DDB245/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SeaHaven_0-1704673636828.png" alt="SeaHaven_0-1704673636828.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 00:28:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/programming-challenge-24-1/m-p/12482308#M19605</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-01-08T00:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Programming Challenge 24-1</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/programming-challenge-24-1/m-p/12482339#M19606</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6254908"&gt;@Sea-Haven&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(equal ans 1423.5 1069)&amp;nbsp; T&lt;/P&gt;
&lt;P&gt;Read BTW #2&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 00:56:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/programming-challenge-24-1/m-p/12482339#M19606</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2024-01-08T00:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Programming Challenge 24-1</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/programming-challenge-24-1/m-p/12482454#M19607</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3930636"&gt;@john.uhden&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;P&gt;BTW #2, I doubt that you will develop the formula on your own.&amp;nbsp; I couldn't.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Oh, I know the formula(s); it's just a matter of encoding them.&amp;nbsp; The number of layers [assuming you can realistically measure the outside diameter of the roll to the nearest &lt;EM&gt;fiftieth of an inch&lt;/EM&gt; with any precision, and the sheet material doesn't compress in the measurement, and so on] is easy enough, and the amount of additional sheet length for each successive layer.&amp;nbsp; There's a quite short formula for how much additional roll length is to be added beyond just the tube circumference x the number of layers, based on the number of layers but&amp;nbsp;&lt;EM&gt;not&lt;/EM&gt; involving (repeat)ing to add some for each layer, successively more for each, one at a time.&amp;nbsp; But I'll keep that to myself until I get to putting it all together.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To be even more unrealistically realistic to a greater precision than would ever be possible, the length of the first layer should be measured at&lt;FONT color="#FF0000"&gt;*&lt;/FONT&gt; the &lt;EM&gt;mid-way&lt;/EM&gt; line of the sheet thickness -- there would be slight compression inboard of that, and slight stretching outboard.&amp;nbsp; [&lt;FONT color="#FF0000"&gt;*&lt;/FONT&gt; The actual no-compression-or-stretch plane is really not &lt;EM&gt;exactly&lt;/EM&gt; at the mid-thickness line, but that's at least much closer than the inside face, i.e. than the tube surface for the first layer.&amp;nbsp; Getting it exactly I think would require specifics about the physical properties of the material.]&amp;nbsp; And I would think a general calculation has to be based on the assumption that all layers &lt;EM&gt;go all the way around&lt;/EM&gt;, and the last layer ends right over where the first one begins.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 03:54:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/programming-challenge-24-1/m-p/12482454#M19607</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2024-01-08T03:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Programming Challenge 24-1</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/programming-challenge-24-1/m-p/12482477#M19608</link>
      <description>&lt;P&gt;Yes used a 1/2 thickness plus tube rad for starting circle. Looked at slope where layer rises up over existing and it seemed to add marginal length increase, like 0.5" to total did not check very closely. I used a formula not CAD for answer.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 04:28:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/programming-challenge-24-1/m-p/12482477#M19608</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-01-08T04:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Programming Challenge 24-1</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/programming-challenge-24-1/m-p/12483713#M19609</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You are overthinking it.&lt;/P&gt;
&lt;P&gt;If there isn't at least 3 feet more than what's needed for the next liner, then they'll send the roll back for recycling.&amp;nbsp; Yeah, it's a loss, but not so great as the wasted labor cutting and seaming it again.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 15:48:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/programming-challenge-24-1/m-p/12483713#M19609</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2024-01-08T15:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Programming Challenge 24-1</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/programming-challenge-24-1/m-p/12483743#M19610</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6254908"&gt;@Sea-Haven&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;My apologies.&lt;/P&gt;&lt;P&gt;It's actually (equal ans 1423.5&amp;nbsp; 2937) ;; in inches, a factor of 2± short.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 15:57:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/programming-challenge-24-1/m-p/12483743#M19610</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2024-01-08T15:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Programming Challenge 24-1</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/programming-challenge-24-1/m-p/12483936#M19611</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3930636"&gt;@john.uhden&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;If there isn't at least 3 feet more than what's needed for the next liner, then they'll send the roll back ....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Your BTW #2 implies there's something hard-to-derive about the calculations, which implies a certain level of precision that I assumed, which 3' of "slop" argues against, but overthinking or not, here's my approach.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The formula I alluded to before is in line 49.&amp;nbsp; Think of the incremental increase in circumference per layer as billiard balls -- the cumulative total over the layers [beyond the first one] of one bit of extra to add for the second layer, two for the next, etc.&amp;nbsp; The formula for the total of a "pyramidal" stack like that, with X rows, is X times {half-of-X-plus-one-half}.&amp;nbsp; Just plug in X [X=5 gives you the 15 billiard balls], and no repeating X times, and adding up along the way, is needed.&amp;nbsp; One line of code sums up the whole thing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code assumes the 3 standard thicknesses you list are all that are allowed, but it could be made to allow additional values instead of limiting it to those 3.&amp;nbsp; It offers 20-mil as initial default.&amp;nbsp; It offers 3.5" as the tube initial default diameter, though for that it allows any positive size input.&amp;nbsp; It forbids invalid [including negative] inputs for tube diameter and outside roll diameter in relation to it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And in case one enters a roll diameter that is not a multiple of sheet thickness beyond the tube diameter [as is the case with your 11" vs. 3.5", which at 20 mils comes to 187&lt;EM&gt;&lt;STRONG&gt;.5&lt;/STRONG&gt;&lt;/EM&gt; layers], it (fix)es the result, since you can't have a half-layer in terms of thickness.&amp;nbsp; It could instead round it to the nearest value up or down, instead of (fix)ing [rounding downward only].&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 17:29:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/programming-challenge-24-1/m-p/12483936#M19611</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2024-01-08T17:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Programming Challenge 24-1</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/programming-challenge-24-1/m-p/12484595#M19612</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I am excruciatingly impressed!&lt;/P&gt;&lt;P&gt;I have to admit that I couldn't figure it out on my own so I found the formula on-line somewhere, and yes we got the same result within a foot.&amp;nbsp; Your only slight flaw is that you reported the length in inches, not feet.&amp;nbsp; And, yes, since we don't want precision &amp;gt;0 and don't want to round up, fixing the answer after conversion to feet is a sound idea.&lt;/P&gt;&lt;P&gt;Years ago I made an XLS for Maria in cutting so that they wouldn't load a roll onto the vertical carousel if there wasn't enough material for any jobs in the queue.&amp;nbsp; And if it was obvious that there wouldn't be enough material for any normal liner, then it was carted off to the recycling stack.&amp;nbsp; Understand that these rolls weigh hundreds of pounds so they have to use a forklift with a&amp;nbsp; 6' long 2.5" steel rod to move the rolls around.&amp;nbsp; The reason for a carousel is that there are dozens of patterns so they want to get the ones in the queue ready to go to reduce down time.&amp;nbsp; I remember that once the giant chain rotating the rolls into place broke a link.&amp;nbsp; It cost them 3 weeks and $28K to replace it.&amp;nbsp; Luckily they have more than one cutting machine.&amp;nbsp; And luckily no one was around the carousel when the link broke.&amp;nbsp; They said you could hear the rolls fall to the floor from down the street.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 23:11:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/programming-challenge-24-1/m-p/12484595#M19612</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2024-01-08T23:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Programming Challenge 24-1</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/programming-challenge-24-1/m-p/12486096#M19613</link>
      <description>&lt;P&gt;Using an online archimedies spiral calculator, this is what I get:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-01-09_9-55-44.jpg" style="width: 736px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1312034i07F6C82DFF586ED4/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-01-09_9-55-44.jpg" alt="2024-01-09_9-55-44.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Of course, the O &amp;amp; I diameters would need to be measured with a micrometer for the answer to be precise and I would assume that given that, there would be a minimum error of 2*pi*11/12 feet. Also, stretch couldn't be calcuated without more information such as the initial stretch from the factory, the stress in place, and the modulus of elasticity I believe. That doesn't even consider the fact that if it is stretched from the factory, then each layer would be slightly less thick than nominal.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 15:04:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/programming-challenge-24-1/m-p/12486096#M19613</guid>
      <dc:creator>dbroad</dc:creator>
      <dc:date>2024-01-09T15:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Programming Challenge 24-1</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/programming-challenge-24-1/m-p/12486300#M19614</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/411413"&gt;@dbroad&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Using an online archimedies spiral calculator, this is what I get:&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;....&amp;nbsp;&lt;SPAN&gt;the O &amp;amp; I diameters would need to be measured with a micrometer for the answer to be precise....&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Oh, so much stuff we can get over-picky about, but I find it fun to consider the details, however unrealistic.&amp;nbsp; This is why&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6254908"&gt;@Sea-Haven&lt;/a&gt;&amp;nbsp;in Message 4 said "ignores stuff like spiral step increase."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The spiral length can't be precise because of course the wrapping doesn't really follow a spiral path:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kent1Cooper_0-1704815789274.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1312092i887E8334DAE78ED9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kent1Cooper_0-1704815789274.png" alt="Kent1Cooper_0-1704815789274.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The true shape of the stepping would be affected by the flexibility of the material, and by how tight it's pulled in the winding.&amp;nbsp; And it would gradually broaden and smooth out as the number of layers increases.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If one actually had a need to account for such things in detail, it's hard to imagine how they could be calculated.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 16:07:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/programming-challenge-24-1/m-p/12486300#M19614</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2024-01-09T16:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Programming Challenge 24-1</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/programming-challenge-24-1/m-p/12486633#M19615</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/411413"&gt;@dbroad&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Looks to me like your answer is correct.&amp;nbsp; Don't know what the formula looks like, but my source didn't credit Archimedes at all.&lt;/P&gt;&lt;P&gt;Of course you know that I can't give you credit because you haven't provided any AutoLisp code, but at least you have provided Kent and me some reassurance.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 18:32:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/programming-challenge-24-1/m-p/12486633#M19615</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2024-01-09T18:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Programming Challenge 24-1</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/programming-challenge-24-1/m-p/12486875#M19616</link>
      <description>&lt;P&gt;Not looking for credit.&amp;nbsp; Since the difference in radii is so slight with each turn due to the thinness and the original tube shape, it simplfies roughly to calculating the number of turns and then multiplying the circumference of the average circle by its number of turns.&lt;/P&gt;
&lt;P&gt;Turns = (OD-ID)/2/Thk = (11-3.5)/2/0.02=187.5&lt;/P&gt;
&lt;P&gt;Ravg=(OD+ID)/4 = (11+3.5)/4=3.625&lt;/P&gt;
&lt;P&gt;Arclength=Turns*2*pi*Ravg=187.5*2*pi*3.625=4270.6in=355.88 ft&lt;/P&gt;
&lt;P&gt;Combining in terms of OD, ID and Thk=&amp;gt;&amp;nbsp; Arclength=pi*(OD^2-ID^2)/(4*Thk)&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(defun foo (OD ID Thk)
  (/
    (* pi (- (* OD OD)(* ID ID)))
    (* 4 Thk)))&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 09 Jan 2024 20:53:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/programming-challenge-24-1/m-p/12486875#M19616</guid>
      <dc:creator>dbroad</dc:creator>
      <dc:date>2024-01-09T20:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Programming Challenge 24-1</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/programming-challenge-24-1/m-p/12487093#M19617</link>
      <description>&lt;P&gt;2 mistakes in my code&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(setq num (fix (/ (/ (- rod tod) 2.0) thk)))
(setq rad (+ (/ tod 2.0)(/ thk 2.0)))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;dia 11 od 3.5 thk 0.02 = 354.4 feet. V's 355.8&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 22:56:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/programming-challenge-24-1/m-p/12487093#M19617</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-01-09T22:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Programming Challenge 24-1</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/programming-challenge-24-1/m-p/12487213#M19618</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/411413"&gt;@dbroad&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;That's good enough for me (except that there are a lot of FOOs out there).&lt;/P&gt;&lt;P&gt;That's the same formula that I had found.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 00:18:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/programming-challenge-24-1/m-p/12487213#M19618</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2024-01-10T00:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Programming Challenge 24-1</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/programming-challenge-24-1/m-p/12487218#M19619</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6254908"&gt;@Sea-Haven&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;A critical improvement.&lt;/P&gt;&lt;P&gt;Well done!&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 00:20:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/programming-challenge-24-1/m-p/12487218#M19619</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2024-01-10T00:20:14Z</dc:date>
    </item>
  </channel>
</rss>

