<?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: NEED A LISP CREATING CUSTOM SHPE in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/need-a-lisp-creating-custom-shpe/m-p/13682093#M164671</link>
    <description>&lt;P&gt;What I was suggesting is have a go at writing the code your self, there is plenty of people here who could do your code and after all this is a volunteer forum we give our time for free, its not a write this for me service.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I showed the code needed to draw a box, if you look at it carefully you can see it uses the polar command to work out the next point, it then draws the shape using a pline with multiple points.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So your "U" shape will need 8 points using simple geometry of angles 0.0. (/ pi 2), pi, (* pi 1.5). and look at the values you have for length and width.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again as pointed out by&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;you just need to work out all the points for a more complex shape. I would start at the midpoint of the "A" and go left and right.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the code above you load the lisp and type S1 for "shape 1" so your "U" is S2, C section is S3, hat section is S4. As a side comment there is steel sections out there which have a huge range of predefined sections or you can edit the section data to suit your needs, think Angles, UB, UC, tubes and so on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 15 Jun 2025 05:00:01 GMT</pubDate>
    <dc:creator>Sea-Haven</dc:creator>
    <dc:date>2025-06-15T05:00:01Z</dc:date>
    <item>
      <title>NEED A LISP CREATING CUSTOM SHPE</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/need-a-lisp-creating-custom-shpe/m-p/13678624#M164637</link>
      <description>&lt;P&gt;HI Guys i need a lisp for my work because&amp;nbsp; i will save my time for refrence i attacheed&amp;nbsp; the image so i will give the only input ABC.........&amp;nbsp; &amp;nbsp;NEED TO CREATE THAT DAIGRAM EACH ONE IS DIFRENT SO NEED SAPIRATE COMMAND.....&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="archana96_0-1749728464166.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1542950iE0BF0C78F1C03D2D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="archana96_0-1749728464166.png" alt="archana96_0-1749728464166.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 11:43:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/need-a-lisp-creating-custom-shpe/m-p/13678624#M164637</guid>
      <dc:creator>archana96</dc:creator>
      <dc:date>2025-06-12T11:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: NEED A LISP CREATING CUSTOM SHPE</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/need-a-lisp-creating-custom-shpe/m-p/13679528#M164649</link>
      <description>&lt;P&gt;This is a good exercise to start learning lisp, &lt;STRONG&gt;rather than people supplying an answer.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the 1st shape you just need 3 things length, width &amp;amp; thickness.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an example for shape 1 a rectang.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;; draw rectang
(defun c:s1  / len wid pt1 pt2 pt3 pt4)
(setq pt1 (getpoint "\nPick a point "))
(setq len (getreal "\nEnter length "))
(setq wid (getreal "\nEnter width "))
(setq pt2 (polar pt1 0.0 len))
(setq pt3 (polar pt2 (/ pi 2.) wid))
(setq pt4 (polar pt3 pi len))
(command "pline" pt1 pt2 pt3 pt4 "c")
(princ)
)&lt;/LI-CODE&gt;&lt;P&gt;So you should be able to work out your "U" shape from the code. Have a go if stuck post your code here.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 23:39:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/need-a-lisp-creating-custom-shpe/m-p/13679528#M164649</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2025-06-12T23:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: NEED A LISP CREATING CUSTOM SHPE</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/need-a-lisp-creating-custom-shpe/m-p/13679725#M164652</link>
      <description>&lt;P&gt;its giving only rectangular shape&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jun 2025 04:22:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/need-a-lisp-creating-custom-shpe/m-p/13679725#M164652</guid>
      <dc:creator>archana96</dc:creator>
      <dc:date>2025-06-13T04:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: NEED A LISP CREATING CUSTOM SHPE</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/need-a-lisp-creating-custom-shpe/m-p/13680083#M164654</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/16231043"&gt;@archana96&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can do it by your own with dynamic blocks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Moshe&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jun 2025 08:09:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/need-a-lisp-creating-custom-shpe/m-p/13680083#M164654</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2025-06-13T08:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: NEED A LISP CREATING CUSTOM SHPE</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/need-a-lisp-creating-custom-shpe/m-p/13680301#M164655</link>
      <description>&lt;P&gt;The blue ones would not be difficult to program.&amp;nbsp; But the magenta one would be harder because of the change of direction of the bends:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kent1Cooper_0-1749809846847.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1543222i5E1ADFC8C9A4D128/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kent1Cooper_0-1749809846847.png" alt="Kent1Cooper_0-1749809846847.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;With the &lt;STRONG&gt;A&lt;/STRONG&gt; and &lt;STRONG&gt;C&lt;/STRONG&gt;/&lt;STRONG&gt;D&lt;/STRONG&gt; dimensions being to the outside corners &lt;EM&gt;on opposite sides of the sheet&lt;/EM&gt;, and with the bend angles varying with the &lt;STRONG&gt;A&lt;/STRONG&gt;/&lt;STRONG&gt;B&lt;/STRONG&gt;/&lt;STRONG&gt;C&lt;/STRONG&gt; relationship, calculating vertex locations would be very challenging.&lt;/P&gt;
&lt;P&gt;Is that sheet thickness dimension an&amp;nbsp;&lt;STRONG&gt;F&lt;/STRONG&gt; that just &lt;EM&gt;looks like&lt;/EM&gt; an &lt;STRONG&gt;E&lt;/STRONG&gt; because it's too close to the dimension line tail?&amp;nbsp; Or do you actually have two &lt;STRONG&gt;E&lt;/STRONG&gt; dimensions that cannot be the same?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jun 2025 16:54:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/need-a-lisp-creating-custom-shpe/m-p/13680301#M164655</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2025-06-13T16:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: NEED A LISP CREATING CUSTOM SHPE</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/need-a-lisp-creating-custom-shpe/m-p/13682093#M164671</link>
      <description>&lt;P&gt;What I was suggesting is have a go at writing the code your self, there is plenty of people here who could do your code and after all this is a volunteer forum we give our time for free, its not a write this for me service.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I showed the code needed to draw a box, if you look at it carefully you can see it uses the polar command to work out the next point, it then draws the shape using a pline with multiple points.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So your "U" shape will need 8 points using simple geometry of angles 0.0. (/ pi 2), pi, (* pi 1.5). and look at the values you have for length and width.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again as pointed out by&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;you just need to work out all the points for a more complex shape. I would start at the midpoint of the "A" and go left and right.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the code above you load the lisp and type S1 for "shape 1" so your "U" is S2, C section is S3, hat section is S4. As a side comment there is steel sections out there which have a huge range of predefined sections or you can edit the section data to suit your needs, think Angles, UB, UC, tubes and so on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Jun 2025 05:00:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/need-a-lisp-creating-custom-shpe/m-p/13682093#M164671</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2025-06-15T05:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: NEED A LISP CREATING CUSTOM SHPE</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/need-a-lisp-creating-custom-shpe/m-p/13684481#M164689</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/16231043"&gt;@archana96&lt;/a&gt;&amp;nbsp; hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached profiles.zip file contains 2 files:&lt;/P&gt;&lt;P&gt;1. profiles.vlx&lt;/P&gt;&lt;P&gt;2. profiles.csv (data file)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because there are many properties you have to set at each insert, the idea here is to create an excel file (csv)&lt;/P&gt;&lt;P&gt;serve as profiles library so lets look at the data file format:-&lt;/P&gt;&lt;P&gt;in this example it contains 3 rows each represent a U profile.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first row is header.&lt;/P&gt;&lt;P&gt;first column 'type' (p1, p2, p3)&lt;/P&gt;&lt;P&gt;second column call 'insert' can have 4 values, switchs on,off or yes,no meaning yes to insert the profile or not.&lt;/P&gt;&lt;P&gt;third column call 'mirror' same 4 values, switchs on,off yes,no meaning yes to apply mirror or not.&lt;/P&gt;&lt;P&gt;forth column call 'rotation' degrees for setting rotation angle.&lt;/P&gt;&lt;P&gt;the rest column A, B, C, D, E, F dimension as specified in your picture.&lt;/P&gt;&lt;P&gt;note:&lt;/P&gt;&lt;P&gt;in third profile you specified 'F' as width but in the first 2 profiles 'D' is the width so i change it&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;after loading the the lisp key:&lt;/P&gt;&lt;P&gt;Command: PROFILES&lt;/P&gt;&lt;P&gt;pick data file&lt;/P&gt;&lt;P&gt;profile "px" insertion point:&amp;nbsp; &amp;lt;specify point&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The program read data file in than goes to check cells validation and if invalid data found you will be notify.&lt;/P&gt;&lt;P&gt;than you will get your profile.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can have many data files (pro1, pro2 ....)&lt;/P&gt;&lt;P&gt;you can add as many rows (records)&amp;nbsp; as needed [as long their type is 3: p1, p2, p3]&lt;/P&gt;&lt;P&gt;with 'insert' column you control which profile to insert. if two rows (or more) have insert=yes, you will get two profiles.&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;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MosheA_1-1750107746602.png" style="width: 591px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1543915iC0A0CB190A753943/image-dimensions/591x272?v=v2" width="591" height="272" role="button" title="MosheA_1-1750107746602.png" alt="MosheA_1-1750107746602.png" /&gt;&lt;/span&gt;&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, 16 Jun 2025 21:03:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/need-a-lisp-creating-custom-shpe/m-p/13684481#M164689</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2025-06-16T21:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: NEED A LISP CREATING CUSTOM SHPE</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/need-a-lisp-creating-custom-shpe/m-p/13685066#M164690</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 really good idea using excel maybe add size to the types. An extra column&lt;/P&gt;&lt;P&gt;no need for thickness as shapes are defined for thickness by name if need thickness add to name eg ANGLE, has multi thickness for same size.&lt;/P&gt;&lt;P&gt;And so on.&lt;/P&gt;&lt;P&gt;P1 12060&lt;/P&gt;&lt;P&gt;P1 180100&lt;/P&gt;&lt;P&gt;P2 12075&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2025 06:42:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/need-a-lisp-creating-custom-shpe/m-p/13685066#M164690</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2025-06-17T06:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: NEED A LISP CREATING CUSTOM SHPE</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/need-a-lisp-creating-custom-shpe/m-p/13685437#M164691</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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks you, lets see what OP has to say&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2025 10:27:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/need-a-lisp-creating-custom-shpe/m-p/13685437#M164691</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2025-06-17T10:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: NEED A LISP CREATING CUSTOM SHPE</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/need-a-lisp-creating-custom-shpe/m-p/13686034#M164692</link>
      <description>&lt;P&gt;I assume I know the answer, but I will ask anyway:&lt;/P&gt;
&lt;P&gt;Is there any chance you would be able to define those dimensions &lt;EM&gt;all on one side&lt;/EM&gt; of the profile?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kent1Cooper_0-1750178971128.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1544140i5F7943095EB5EAC2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kent1Cooper_0-1750178971128.png" alt="Kent1Cooper_0-1750178971128.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The A and B dimensions here are on the &lt;EM&gt;lower&lt;/EM&gt; side, rather than what I think is the intent in your image, with the A being on the &lt;EM&gt;upper&lt;/EM&gt; side and the B being &lt;EM&gt;from lower to upper&lt;/EM&gt;&amp;nbsp;-- the vertical extremes.&lt;/P&gt;
&lt;P&gt;If it can be specified in this way, programming would be quite simple, and it would just be a matter of drawing the underside edge as a Polyline, Offsetting it by the sheet thickness, and closing the ends.&lt;/P&gt;
&lt;P&gt;With what I think you intend, my B could be calculated by subtracting the sheet thickness from your B.&amp;nbsp; But calculating my A from your A would be difficult to do with precision at various different diagonal directions.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2025 16:56:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/need-a-lisp-creating-custom-shpe/m-p/13686034#M164692</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2025-06-17T16:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: NEED A LISP CREATING CUSTOM SHPE</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/need-a-lisp-creating-custom-shpe/m-p/13686174#M164695</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;P&gt;With the &lt;STRONG&gt;A&lt;/STRONG&gt; and &lt;STRONG&gt;C&lt;/STRONG&gt;/&lt;STRONG&gt;D&lt;/STRONG&gt; dimensions being to the outside corners &lt;EM&gt;on opposite sides of the sheet&lt;/EM&gt;, and with the bend angles varying with the &lt;STRONG&gt;A&lt;/STRONG&gt;/&lt;STRONG&gt;B&lt;/STRONG&gt;/&lt;STRONG&gt;C&lt;/STRONG&gt; relationship, calculating vertex locations would be very challenging.&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;But I figured out the relationship and the needed applications of Pythagoras's theorem and a little trigonometry, to work it out.&amp;nbsp; See the attached &lt;STRONG&gt;test.lsp&lt;/STRONG&gt; and its &lt;STRONG&gt;TEST&lt;/STRONG&gt; command.&amp;nbsp; Here are the lengths and locations contained in the variables [with very exaggerated material thickness to make things clearer]:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kent1Cooper_0-1750185794250.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1544159iA7F4B0B8C2D687C9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kent1Cooper_0-1750185794250.png" alt="Kent1Cooper_0-1750185794250.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It draws it [just the magenta part, not all the points and references] in the middle of the screen.&amp;nbsp; It ends up with vertices at the midpoints of both edges of the top surface, just because it was easier, but those could be eliminated with some more code.&amp;nbsp; It could also be made to do things like remember your values to offer them as defaults on subsequent use, and could use *error* handling and Undo begin/end wrapping, etc.&amp;nbsp; But first see whether it does what you want.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jun 2025 16:51:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/need-a-lisp-creating-custom-shpe/m-p/13686174#M164695</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2025-06-18T16:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: NEED A LISP CREATING CUSTOM SHPE</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/need-a-lisp-creating-custom-shpe/m-p/13686483#M164698</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;I did find this "Top Hat" It just references via height and width, so need a manufactures details for all the values as you showed in previous post.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SeaHaven_0-1750205569777.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1544220i2AC58C7837338904/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SeaHaven_0-1750205569777.png" alt="SeaHaven_0-1750205569777.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SeaHaven_1-1750205692633.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1544221iEF4525D0E4C25297/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SeaHaven_1-1750205692633.png" alt="SeaHaven_1-1750205692633.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jun 2025 00:14:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/need-a-lisp-creating-custom-shpe/m-p/13686483#M164698</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2025-06-18T00:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: NEED A LISP CREATING CUSTOM SHPE</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/need-a-lisp-creating-custom-shpe/m-p/13688525#M164709</link>
      <description>&lt;P&gt;i tried the middle one that like c shape with lip.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this i created code but its give many issues for some times gives better shape some times not come what i need for example i give a image of i taken input(added in middle of shape)&amp;nbsp; and what is came output shape&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="archana96_0-1750307899902.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1544654iDFF45F00DD1CBA7D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="archana96_0-1750307899902.png" alt="archana96_0-1750307899902.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and i attached the code for your reference..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(defun c:testbeam ()&lt;BR /&gt;;; Get User Inputs&lt;BR /&gt;(setq lb (getdist "\nLength of Beam : ")) ;; Beam Length&lt;BR /&gt;(setq hb (getdist "\nHeight of Beam : ")) ;; Beam Height&lt;BR /&gt;(setq lp (getdist "\nLip Length : ")) ;; Lip Length&lt;BR /&gt;(setq wt (getdist "\nThickness : ")) ;; Thickness&lt;BR /&gt;&lt;BR /&gt;;; Get Insertion Point&lt;BR /&gt;(setq ip (getpoint "\nInsertion Point : ")) ;; Insertion Point&lt;/P&gt;&lt;P&gt;;; Polar Calculations&lt;BR /&gt;(setq p2 (polar ip (dtr 90.0) lp))&lt;BR /&gt;(setq p3 (polar p2 (dtr 180.0) lb))&lt;BR /&gt;(setq p4 (polar p3 (dtr 270.0) hb))&lt;BR /&gt;(setq p5 (polar p4 (dtr 0.0) lb))&lt;BR /&gt;(setq p6 (polar p5 (dtr 90.0) lp))&lt;BR /&gt;(setq p7 (polar p6 (dtr 180.0) wt))&lt;BR /&gt;(setq p8 (polar p7 (dtr 270.0) (- lp wt)))&lt;BR /&gt;(setq p9 (polar p8 (dtr 180.0) (- lb (* 2 wt))))&lt;BR /&gt;(setq p10 (polar p9 (dtr 90.0) (- hb (* 2 wt))))&lt;BR /&gt;(setq p11 (polar p10 (dtr 0.0) (- lb (* 2 wt))))&lt;BR /&gt;(setq p12 (polar p11 (dtr 270.0) (- lp wt)))&lt;/P&gt;&lt;P&gt;;; Draw Polyline with Valid Points&lt;BR /&gt;(if (and p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12)&lt;BR /&gt;(command "Pline" ip p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 "c")&lt;BR /&gt;(princ "\nError: Invalid points detected.")&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;(princ) ;; Load cleanly&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;;; Function to Convert Degrees to Radians&lt;BR /&gt;(defun dtr (x) (* pi (/ x 180.0)))&lt;/P&gt;&lt;P&gt;(princ)&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jun 2025 04:39:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/need-a-lisp-creating-custom-shpe/m-p/13688525#M164709</guid>
      <dc:creator>archana96</dc:creator>
      <dc:date>2025-06-19T04:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: NEED A LISP CREATING CUSTOM SHPE</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/need-a-lisp-creating-custom-shpe/m-p/13688534#M164710</link>
      <description>&lt;P&gt;its worked&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jun 2025 07:02:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/need-a-lisp-creating-custom-shpe/m-p/13688534#M164710</guid>
      <dc:creator>archana96</dc:creator>
      <dc:date>2025-06-19T07:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: NEED A LISP CREATING CUSTOM SHPE</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/need-a-lisp-creating-custom-shpe/m-p/13689014#M164711</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/16231043"&gt;@archana96&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;... but its give many issues for some times gives better shape some times not ....&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Do you sometimes do it with any &lt;STRONG&gt;running Object Snap mode(s)&lt;/STRONG&gt; turned on?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jun 2025 10:44:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/need-a-lisp-creating-custom-shpe/m-p/13689014#M164711</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2025-06-19T10:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: NEED A LISP CREATING CUSTOM SHPE</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/need-a-lisp-creating-custom-shpe/m-p/13690094#M164719</link>
      <description>&lt;P&gt;Glad you got shape to work, here is some help, as you are mainly drawing horizontal or vertical you can declare the angle as variables, as you have done already converting to radians but this way may be easier. Once you get the hang of using radians other angles like 45 135 225 315 etc can be done same way. You can use your dtr and copy and paste the answer into your code for other angles.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun c:testbeam ( / pt1 pt2 pt3 pt4 oldsnap)

(setq oldsnap (getvar 'osmode)) ; get osnaps
(setvar 'osmode 0) ; turn off snaps

(setq a90  (/ pi 2.0) a270 (* pi 1.5)) ; angles use 0.0 90 270 180 = pi
;; Get User Inputs
(setq lb (getdist "\nLength of Beam : ")) ;; Beam Length
(setq hb (getdist "\nHeight of Beam : ")) ;; Beam Height
(setq lp (getdist "\nLip Length : ")) ;; Lip Length
(setq wt (getdist "\nThickness : ")) ;; Thickness

;; Get Insertion Point
(setq ip (getpoint "\nInsertion Point : ")) ;; Insertion Point

;; Polar Calculations
(setq p2 (polar ip a90 lp))
(setq p3 (polar p2 pi lb))
(setq p4 (polar p3 a270 hb))
(setq p5 (polar p4 0.0 lb))
(setq p6 (polar p5 a90 lp))
(setq p7 (polar p6 pi wt))
(setq p8 (polar p7 a270 (- lp wt)))
(setq p9 (polar p8 pi (- lb (* 2 wt))))
(setq p10 (polar p9 a90 (- hb (* 2 wt))))
(setq p11 (polar p10 0.0 (- lb (* 2 wt))))
(setq p12 (polar p11 a270 (- lp wt)))

;; Draw Polyline with Valid Points
(if (and p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12)
(command "Pline" ip p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 "c")
(princ "\nError: Invalid points detected.")
)
(setvar 'osmode oldsnap)
(princ) ;; Load cleanly
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can look at a more advanced way to enter values, using a DCL. get a bit more experience then can help you make the dcl's. This one was produced by using a Library lisp that was written to suit your type of application, as it makes a new dcl as required matching inputs.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SeaHaven_0-1750380043007.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1544991iC4C6F74CBC83AE7E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SeaHaven_0-1750380043007.png" alt="SeaHaven_0-1750380043007.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2025 00:42:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/need-a-lisp-creating-custom-shpe/m-p/13690094#M164719</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2025-06-20T00:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: NEED A LISP CREATING CUSTOM SHPE</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/need-a-lisp-creating-custom-shpe/m-p/13692381#M164765</link>
      <description>&lt;P&gt;Looking into this task you may be reinventing the wheel have a look at this very extensive steel shapes library, the shapes you want may be there already. they use a database of predefined sizes, a DIM file, there has been users posting here for subtle changes to the shapes as to meet their country shape.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is an example of C purlins data.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;("C100-10" 102 51 12.5 1.0 5)
("C100-12" 102 51 13.0 1.2 5)
("C100-15" 102 51 14.0 1.5 5)
("C100-19" 102 51 15.0 1.9 5)
("C150-10" 152 64 14.5 1.0 5)
("C150-12" 152 64 15.0 1.2 5)
("C150-15" 152 64 16.0 1.5 5)
("C150-19" 152 64 17.0 1.9 5)
("C150-24" 152 64 18.5 2.4 5)
("C200-15" 203 76 16.0 1.5 5)
("C200-19" 203 76 19.5 1.9 5)
("C200-24" 203 76 21.0 2.4 5)
("C250-19" 254 74 19.0 1.9 5)
("C250-24" 254 74 20.5 2.4 5)
("C300-24" 300 96 28.0 2.4 5)
("C300-30" 300 96 31.5 3.0 5)
("C350-30" 350 125 30.0 3.0 5)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jun 2025 05:12:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/need-a-lisp-creating-custom-shpe/m-p/13692381#M164765</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2025-06-22T05:12:25Z</dc:date>
    </item>
  </channel>
</rss>

