<?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: Really need a LISP or VBA to create 3D Spline (cable) in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/really-need-a-lisp-or-vba-to-create-3d-spline-cable/m-p/12257302#M24111</link>
    <description>&lt;P&gt;I am traveling and do not have access to the original file. The primary difference is lines 61 through 66. You can delete these. They create one continuous spline&amp;nbsp; from P2 to P3&lt;/P&gt;</description>
    <pubDate>Thu, 21 Sep 2023 19:28:15 GMT</pubDate>
    <dc:creator>leeminardi</dc:creator>
    <dc:date>2023-09-21T19:28:15Z</dc:date>
    <item>
      <title>Really need a LISP or VBA to create 3D Spline (cable)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/really-need-a-lisp-or-vba-to-create-3d-spline-cable/m-p/12241591#M24098</link>
      <description>&lt;P&gt;I work with utilities and I provide drawings in 3D using AutoCAD.&amp;nbsp; I am looking for some help creating either a LISP or VBA that can generate 3D Splines which represent jumpers/cables connecting equipment.&amp;nbsp; These termination points have different points in X, Y and Z planes, so it is really tedious to create these manually every time I connect equipment together using jumpers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the image below, the way I am thinking this would work is to Select each of the identified number points in order, 1-4, then give it a bend radius.&amp;nbsp; The bend using the minimum bend radius along the path between 1/2 and 4/3 at least 6" away from points 2 and 3 before bending starts.&amp;nbsp; The minimum bend radius would be 30", but would like the option to change it if necessary for larger cable sizes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've also attached a dwg of the example I am working with.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone could provide this, you would be my savior.&amp;nbsp; So, thanks!&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="JumperLISPNeeded.jpg" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1266726i538E32F6920C4E26/image-size/large?v=v2&amp;amp;px=999" role="button" title="JumperLISPNeeded.jpg" alt="JumperLISPNeeded.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 21:10:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/really-need-a-lisp-or-vba-to-create-3d-spline-cable/m-p/12241591#M24098</guid>
      <dc:creator>CrazyIvan</dc:creator>
      <dc:date>2023-09-14T21:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Really need a LISP or VBA to create 3D Spline (cable)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/really-need-a-lisp-or-vba-to-create-3d-spline-cable/m-p/12241595#M24099</link>
      <description>&lt;P&gt;P.S. What you are looking at, if you aren't familiar, is aluminum cable connecting equipment, as what is shown in the image below.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_3D Jumper.jpg" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1266728iDB31AE2FE5A0A408/image-size/large?v=v2&amp;amp;px=999" role="button" title="_3D Jumper.jpg" alt="_3D Jumper.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 21:14:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/really-need-a-lisp-or-vba-to-create-3d-spline-cable/m-p/12241595#M24099</guid>
      <dc:creator>CrazyIvan</dc:creator>
      <dc:date>2023-09-14T21:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Really need a LISP or VBA to create 3D Spline (cable)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/really-need-a-lisp-or-vba-to-create-3d-spline-cable/m-p/12246445#M24100</link>
      <description>&lt;P&gt;[EDIT 9/19/2023 the code has been modified to include the straight 6" section at both ends forming one spline for the jumper that can be referenced by the sweep sommand to create a solid 3D tube.]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thefollowing code will create a smooth spline from the points 6" beyond point 2 and point 3.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The requirement to ensure a minimum 30" radius is tough to meet.&amp;nbsp; The parameter "a" in the code can be adjusted to influence the curvature of the spline.&amp;nbsp; It must be noted that the 4 input points do not lie on a plane. As part of the solution I wanted to find the midpoint of the line at the shortest distance between two lines defined by the 4 points.&amp;nbsp; I could not get the vlisp function "inters" to provide the point so the program calculates the pseudo intersection point (pIntr) numerically by projecting a point from one infinite line defined by points 1 and 2 to the other line defined by points 3 and 4 then back and forth between the two lines.&amp;nbsp; I found that 10 iterations provided an acceptable solution.&amp;nbsp; More testing is advised.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="leeminardi_0-1694962163551.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1267633iF4DBC8913A6B313C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="leeminardi_0-1694962163551.png" alt="leeminardi_0-1694962163551.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I was going to have one continuous spline from point 2 to point 3 but the transition from the 6" straight sections to a tangent curvature would require multiple CVs at the same point.&amp;nbsp; The sweep command will not work with coincident CVs.&amp;nbsp; Adding these straight section to the code is straightforward.&amp;nbsp; E.g., a cylinder from p2 to s1, and s5 to p3.&amp;nbsp; Or&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;(command "_cylinder" p2 radius "a" s1)&lt;/LI-CODE&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="leeminardi_1-1694962496385.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1267634i84A66B1FA9EF0136/image-size/medium?v=v2&amp;amp;px=400" role="button" title="leeminardi_1-1694962496385.png" alt="leeminardi_1-1694962496385.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;&lt;LI-CODE lang="general"&gt;(defun c:jumper (/ p1 p2 p3 p4 pa pb dot1 dot2 u12 u43 pIntr s1 s2 s3 s4 s5 da db e1 e2 e3)
; create a spline from 4 user specified points such that the spline start 6 units
; from point 2 and point 3.
; Lee Minardi  9/17/2023
; modified 9/19/2023 to create spline with 6" straight ends at each end/  
 
  (setq	p1 (getpoint "\nPick point #1: ")
	p2 (getpoint "\nPick point #2: ")
	p3 (getpoint "\nPick point #3: ")
	p4 (getpoint "\nPick point #4: ")
  )
(setq pa  p2
      pb  p3
      u12 (unitvector p1 p2)
      u43 (unitvector p4 p3)
)
(repeat	10  ; find the midpoint of the shorest distance between two non-intersecting 3D lines.
  (setq	dot1 (dot
	       (mapcar '- pa pb)
	       u43
	     )
  )
  (setq	dot2 (dot
	       (mapcar '- pb pa)
	       u12
	     )
  )
  (setq	pb (mapcar '+
		   pb
		   (mapcar '*
			   (list dot1 dot1 dot1)
			   u43
		   )
	   )
	pa
	   (mapcar '+
		   pa
		   (mapcar '*
			   (list dot2 dot2 dot2)
			   u12
		   )
	   )
  )
)					; repeat
; pa and pb are points on the two 3D lines where they are closest
; pIntr is the midpoint of the line from pa to pb  
(setq pIntr (mapcar '/ (mapcar '+ pa pb) '(2. 2. 2.))) ; "intersetion" point
(setq a	 0.3  ; allows tuning of the spline's amount of curvature
      s1 (mapcar '+ p2 (mapcar '* u12 '(6 6 6)))
      da (* a (distance s1 pa))
      s2 (mapcar '+ s1 (mapcar '* u12 (list da da da)))
      s5 (mapcar '+ p3 (mapcar '* u43 '(6 6 6)))
      db (* a (distance s5 pb))
      s4 (mapcar '+ s5 (mapcar '* u43 (list db db db)))
)
(initcommandversion)  ; enable "normal" spline syntax
(command "_spline"	 "m"	 "cv"	 "_non"	 s1	 "_non"
	 s2	 "_non"	 pIntr	 "_non"	 s4	 "_non"	 s5
	 ""
	)
(setq e1 (entlast))
(command "_line" s5 p3 "")
(setq e2 (entlast))
(command "_line" p2 s1 "")
(setq e3 (entlast))
(command "_join" e1 e2 e3 "") 
  
  (princ)
)
;;; Compute the dot product of 2 vectors a and b
(defun dot (a b / dd)
  (setq dd (mapcar '* a b))
  (setq dd (+ (nth 0 dd) (nth 1 dd) (nth 2 dd)))
)					;end of dot
(defun unitvector (pt1 pt2 / p d uv)
  (setq	p  (mapcar '- pt2 pt1)
	d  (distance pt1 pt2)
	uv (mapcar '/ p (list d d d))
  )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 01:30:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/really-need-a-lisp-or-vba-to-create-3d-spline-cable/m-p/12246445#M24100</guid>
      <dc:creator>leeminardi</dc:creator>
      <dc:date>2023-09-20T01:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Really need a LISP or VBA to create 3D Spline (cable)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/really-need-a-lisp-or-vba-to-create-3d-spline-cable/m-p/12246674#M24101</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/822616"&gt;@leeminardi&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;.... I was going to have one continuous spline from point 2 to point 3 but the transition from the 6" straight sections to a tangent curvature would require multiple CVs at the same point.&amp;nbsp; ....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You should be able to do that by drawing the 6" straight end sections as Lines [or, for that matter, 2-point-only Splines], and the Spline between their near ends in whatever way works, and then &lt;STRONG&gt;JOIN&lt;/STRONG&gt;ing them together.&amp;nbsp; &lt;STRONG&gt;JOIN&lt;/STRONG&gt; will take care of that multiple-at-one-point part to leave the new end segments straight.&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;EDIT:&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp; Maybe like this [minimally tested]:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(defun C:JUMPER (/ osm p1 p2 p3 p4 endA endB)
  (setq
    osm (getvar 'osmode)
    p1 (getpoint "\nInternal end of jumper connector at one end: ")
    p2 (getpoint "\nExternal end of that jumper connector: ")
    p3 (getpoint "\nExternal end of jumper connector at other end: ")
    p4 (getpoint "\nInternal end of that jumper connector: ")
  ); setq
  (setvar 'osmode 0)
  (command "_.line" p1 p2 "")
  (setq endA (entlast))
  (command "_.line" p4 p3 "")
  (setq endB (entlast))
  (command "_.lengthen" "_delta" 6 p2 p3 "")
  (setq ; new closer ends [afer 6-unit straight extension]
    p2 (vlax-curve-getEndPoint endA)
    p3 (vlax-curve-getEndPoint endB)
  ); setq
  (command
    "_.spline" p2 p3 "" p1 p4
    "_.join" (entlast) endA endB ""
  ); command
  (setvar 'osmode osm)
  (prin1)
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for the radius limitation, there is no such thing as "the radius" for a Spline, since it has &lt;EM&gt;constantly-varying&lt;/EM&gt; radius, if that even means anything -- a "radius" implies a center point from which it is measured, but there's no such thing for an irregular Spline.&amp;nbsp; The above, using no additional fit points between the inboard ends of the straight pieces, sort of does the "broadest" curvature available for the configuration of the points you're starting with.&amp;nbsp; If it can be determined that it's "too tight" in the middle, then "loosening" the "radius" there [however that would be done] would require "tightening" the "radius" in the areas where it comes off the straight end parts, and vice versa, so might you be trading too-tightness in one area for the same in another?&amp;nbsp; I imagine there are physical relationships possible in which that minimum is not achievable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF6600"&gt;Further &lt;STRONG&gt;EDIT:&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp; The above was at first using&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt; (initcommandversion)&lt;/FONT&gt; &lt;/STRONG&gt;&lt;/FONT&gt;as &lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/problem-with-vlisp-spline-tangent-syntax/m-p/12246270/highlight/true#M454922" target="_blank" rel="noopener"&gt;&amp;gt;here&amp;lt;&lt;/A&gt; to make the SPLINE command operate the way it does at the Command line with the tangency options.&amp;nbsp; But I recalled the way tangencies could be done way back, under the old native core underlying operation of the command, and in this case that was easier.&amp;nbsp; Tangencies can be specified for both start and end at the end of the command, and both are &lt;EM&gt;in the away-from-the-end direction&lt;/EM&gt;.&amp;nbsp; Try starting SPLINE in an AutoLisp&lt;FONT face="courier new,courier" color="#000000"&gt;&lt;STRONG&gt; (command)&lt;/STRONG&gt; &lt;/FONT&gt;function, with just&lt;FONT face="courier new,courier" color="#000000"&gt;&lt;STRONG&gt; (command "_.spline")&lt;/STRONG&gt;&lt;/FONT&gt;, give it some points [two are enough] and Enter &lt;EM&gt;to get the offered&amp;nbsp;&lt;/EM&gt; &lt;FONT face="courier new,courier" color="#000000"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;lt;start tangent&amp;gt;&lt;/FONT&gt; &lt;/STRONG&gt;&lt;/FONT&gt;&lt;EM&gt;default&lt;/EM&gt;, and it asks for tangency directions, where you'll see how it works -- that simplified the code above, for not needing to calculate a point to define the start tangency, because the appropriate point already existed.&amp;nbsp; That other topic would need to change the points to use that approach, with [in their image] their &lt;STRONG&gt;4&lt;/STRONG&gt; being &lt;EM&gt;below&lt;/EM&gt; &lt;STRONG&gt;1&lt;/STRONG&gt;.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Sep 2023 21:31:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/really-need-a-lisp-or-vba-to-create-3d-spline-cable/m-p/12246674#M24101</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2023-09-17T21:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: Really need a LISP or VBA to create 3D Spline (cable)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/really-need-a-lisp-or-vba-to-create-3d-spline-cable/m-p/12246841#M24102</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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your comments.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Regarding using one continuous spline that starts at point 2 and ends at point 3, I tried that in an earlier version of the program. It created that spline but with 3 coincident CVs at the transition point between the straight and curve portion of the spline.&amp;nbsp; I found that the sweep command could not handle it. As you now point out, joining a straight line with a spline will yield a continuous spline that is copasetic with sweep!&amp;nbsp; Who knew? Thanks. I'll leave it to the OP to make the change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. You wrote "&amp;nbsp;&lt;EM&gt;As for the radius limitation, there is no such thing as "the radius" for a Spline, since it has constantly-varying radius ..."&amp;nbsp; . &lt;/EM&gt;In fact, splines do have an instantaneous radius of curvature.&amp;nbsp; I wrote the program below to calculate and graphically show the radius of curvature at points along a spline. The length of the green lines in the image below indicate the radius of curvature. The shortest green line is about 70" long, greater than the minimum required radius of 30".&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="leeminardi_0-1694985034320.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1267691i68253F4F943846F4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="leeminardi_0-1694985034320.png" alt="leeminardi_0-1694985034320.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun C:DOCL (/ path inc n osm	par der1 der2 curva p perp normv p2 sf
	       curveType ans)
; = Degree Of Curvature - Lines
; Creates curvature lines or radius-of-curvature lines
; normal to a spline.
; LRM 8/18/2022 edited to place curvature vectors outside  
  (setq
    path (car (entsel))
    inc	 (/ (vlax-curve-getEndParam path) 100)
    n	 0
    osm	 (getvar 'osmode)
  )
  (setvar 'osmode 0)
  (setvar "cmdecho" 0)
  (initget "y n")
  (setq ans (getkword  "Do you want radius-of-curvature instead of curvature? [y/n] &amp;lt;n&amp;gt;: "))
	(if (= ans "y")
	   (setq curveType 1)
	   (setq curveType 2
		 sf	   (getdist "Enter scale factor.")
	   )
	)
  (repeat 100
    (setq par (* inc n))
    (setq der1 (vlax-curve-getfirstDeriv path par)
	  der2 (vlax-curve-getSecondDeriv path par)
    )
    ; calculate curvature at point par
    (setq d (distance '(0 0 0) (cross der1 der2)))
    (if	(&amp;gt; (abs d) 1.0e-15)
      (progn
	(setq curva (/ (expt (distance '(0 0 0) der1) 3) d))
	(if (= curveType 2)
	    (setq curva (* -1. (* sf (/ 1. curva))))
	  )
	(princ "\n") (princ n)
	(princ "   curvature = ") (princ curva)
	(setq p	    (vlax-curve-getPointAtParam path par)
	      perp  (unitv (cross der1 (cross der2 der1)))
	      normv (mapcar '* perp (list curva curva curva))
	      p2    (mapcar '+ p normv)
	)
	(command "_.line" p p2 "")
      )					; end progn
    )
    (setq n (1+ n))
  )
  (setvar 'osmode osm)
  (setvar "cmdecho" 1)
  (princ)
)


  ;;; Compute the cross product of 2 vectors a and b
(defun cross (a b / crs)
  (setq	crs (list
	      (- (* (nth 1 a) (nth 2 b))
		 (* (nth 1 b) (nth 2 a))
	      )
	      (- (* (nth 0 b) (nth 2 a))
		 (* (nth 0 a) (nth 2 b))
	      )
	      (- (* (nth 0 a) (nth 1 b))
		 (* (nth 0 b) (nth 1 a))
	      )
	    )				;end list
  )					;end setq c
)					;end cross
  (defun unitV ( v / d)
  (setq d (distance '(0 0 0) v)
	d (mapcar '/ v (list d d d))))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; As for defining the tangent for the end of a spline my preference is to use CVs rather than tangent option and fit points.&amp;nbsp; I think the position of CVs provide a more intuitive method for setting the radius of curvature at the start and end of the spline.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As noted in my thread regarding spline command syntax in vlisp thank you for the (initcommandverison) tip.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Sep 2023 21:21:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/really-need-a-lisp-or-vba-to-create-3d-spline-cable/m-p/12246841#M24102</guid>
      <dc:creator>leeminardi</dc:creator>
      <dc:date>2023-09-17T21:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Really need a LISP or VBA to create 3D Spline (cable)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/really-need-a-lisp-or-vba-to-create-3d-spline-cable/m-p/12247174#M24103</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Clipboard01.jpg" style="width: 354px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1267752i2B059BFE8CB5A560/image-size/large?v=v2&amp;amp;px=999" role="button" title="Clipboard01.jpg" alt="Clipboard01.jpg" /&gt;&lt;/span&gt;You can simulate spline with sjn &amp;amp; cos.&lt;/P&gt;&lt;P&gt;You execute with C:Dan[enter]&lt;/P&gt;&lt;P&gt;Please you check freshui.zip&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 03:43:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/really-need-a-lisp-or-vba-to-create-3d-spline-cable/m-p/12247174#M24103</guid>
      <dc:creator>diagodose2009</dc:creator>
      <dc:date>2023-09-18T03:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Really need a LISP or VBA to create 3D Spline (cable)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/really-need-a-lisp-or-vba-to-create-3d-spline-cable/m-p/12248614#M24104</link>
      <description>&lt;P&gt;The correlation of your comment to the topic of the thread is not clear.&amp;nbsp; The thread concerns spline creation not springs.&amp;nbsp; Can you clarify the significance of your post to the discussion?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 16:04:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/really-need-a-lisp-or-vba-to-create-3d-spline-cable/m-p/12248614#M24104</guid>
      <dc:creator>leeminardi</dc:creator>
      <dc:date>2023-09-18T16:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: Really need a LISP or VBA to create 3D Spline (cable)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/really-need-a-lisp-or-vba-to-create-3d-spline-cable/m-p/12249244#M24105</link>
      <description>&lt;P&gt;Thanks for all the great replies. I will check this out and see if they work!&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 20:43:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/really-need-a-lisp-or-vba-to-create-3d-spline-cable/m-p/12249244#M24105</guid>
      <dc:creator>CrazyIvan</dc:creator>
      <dc:date>2023-09-18T20:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Really need a LISP or VBA to create 3D Spline (cable)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/really-need-a-lisp-or-vba-to-create-3d-spline-cable/m-p/12249406#M24106</link>
      <description>This is great! I did have a question though. How did you get it to apply a tube to the spline? I see the "_cylinder" but I did not see that in the code or in the command when running it.&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Mon, 18 Sep 2023 22:07:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/really-need-a-lisp-or-vba-to-create-3d-spline-cable/m-p/12249406#M24106</guid>
      <dc:creator>CrazyIvan</dc:creator>
      <dc:date>2023-09-18T22:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Really need a LISP or VBA to create 3D Spline (cable)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/really-need-a-lisp-or-vba-to-create-3d-spline-cable/m-p/12249555#M24107</link>
      <description>&lt;P&gt;I used the sweep command referencing a circle after running the program that created the spline. It could be included in the program but you would need to supply&amp;nbsp; the tube diameter.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 23:47:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/really-need-a-lisp-or-vba-to-create-3d-spline-cable/m-p/12249555#M24107</guid>
      <dc:creator>leeminardi</dc:creator>
      <dc:date>2023-09-18T23:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Really need a LISP or VBA to create 3D Spline (cable)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/really-need-a-lisp-or-vba-to-create-3d-spline-cable/m-p/12251069#M24108</link>
      <description>&lt;P&gt;I think Ø7/8"&amp;nbsp; would be fine to at least show some thickness.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 14:36:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/really-need-a-lisp-or-vba-to-create-3d-spline-cable/m-p/12251069#M24108</guid>
      <dc:creator>CrazyIvan</dc:creator>
      <dc:date>2023-09-19T14:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Really need a LISP or VBA to create 3D Spline (cable)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/really-need-a-lisp-or-vba-to-create-3d-spline-cable/m-p/12252328#M24109</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/382745"&gt;@CrazyIvan&lt;/a&gt;&amp;nbsp; &amp;nbsp;I've modified the code in my post #3 to include the 6" straight sections.&amp;nbsp; The resulting spline can be referenced with the sweep command. You can adjust the shape of how the spline curves by tweaking the value of "a" in the line of code&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(setq a	 0.3 ...&lt;/LI-CODE&gt;&lt;P&gt;Try different values to see what you like.&amp;nbsp; I also recommend trying&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;'s program.&amp;nbsp; It produces a slightly different curve.&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 01:35:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/really-need-a-lisp-or-vba-to-create-3d-spline-cable/m-p/12252328#M24109</guid>
      <dc:creator>leeminardi</dc:creator>
      <dc:date>2023-09-20T01:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Really need a LISP or VBA to create 3D Spline (cable)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/really-need-a-lisp-or-vba-to-create-3d-spline-cable/m-p/12256992#M24110</link>
      <description>&lt;P&gt;Hey, would you be able to repost that original version you had?&amp;nbsp; I accidentally overwrote it on my end and was trying to see the difference between that and the updated one.&amp;nbsp; And I think that original one was actually better for what I am trying to do.&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 17:22:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/really-need-a-lisp-or-vba-to-create-3d-spline-cable/m-p/12256992#M24110</guid>
      <dc:creator>CrazyIvan</dc:creator>
      <dc:date>2023-09-21T17:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: Really need a LISP or VBA to create 3D Spline (cable)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/really-need-a-lisp-or-vba-to-create-3d-spline-cable/m-p/12257302#M24111</link>
      <description>&lt;P&gt;I am traveling and do not have access to the original file. The primary difference is lines 61 through 66. You can delete these. They create one continuous spline&amp;nbsp; from P2 to P3&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 19:28:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/really-need-a-lisp-or-vba-to-create-3d-spline-cable/m-p/12257302#M24111</guid>
      <dc:creator>leeminardi</dc:creator>
      <dc:date>2023-09-21T19:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: Really need a LISP or VBA to create 3D Spline (cable)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/really-need-a-lisp-or-vba-to-create-3d-spline-cable/m-p/12257330#M24112</link>
      <description>&lt;P&gt;Thanks!&amp;nbsp; I appreciate your taking the time to respond while on the road; it's not necessary. If you get a chance once you are settled at your destination, maybe you could take a look.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That did something strange. The spline wraps around the back and comes back forward.&amp;nbsp; Not sure.&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="ODD.jpg" style="width: 561px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1269794iC2388DEEF1734FE2/image-size/large?v=v2&amp;amp;px=999" role="button" title="ODD.jpg" alt="ODD.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 19:45:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/really-need-a-lisp-or-vba-to-create-3d-spline-cable/m-p/12257330#M24112</guid>
      <dc:creator>CrazyIvan</dc:creator>
      <dc:date>2023-09-21T19:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Really need a LISP or VBA to create 3D Spline (cable)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/really-need-a-lisp-or-vba-to-create-3d-spline-cable/m-p/12261757#M24113</link>
      <description>&lt;P&gt;The code in post #3 that was modified on 9/19 will create one continuous spline from p2 to p3.&amp;nbsp; This spline includes the 6" straight sections.&lt;/P&gt;&lt;P&gt;If you delete lines 61 through 66 and reload the code it will create one spline from the points 6" out from points 2 and 3.&amp;nbsp; I tested the result and in both cases an appropriate spline was created that is compatible with the sweep function.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="leeminardi_0-1695507554363.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1270808i60AD2788BFB46F64/image-size/medium?v=v2&amp;amp;px=400" role="button" title="leeminardi_0-1695507554363.png" alt="leeminardi_0-1695507554363.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Sep 2023 22:22:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/really-need-a-lisp-or-vba-to-create-3d-spline-cable/m-p/12261757#M24113</guid>
      <dc:creator>leeminardi</dc:creator>
      <dc:date>2023-09-23T22:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Really need a LISP or VBA to create 3D Spline (cable)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/really-need-a-lisp-or-vba-to-create-3d-spline-cable/m-p/12296781#M24114</link>
      <description>&lt;P&gt;Thanks!&amp;nbsp; Originally, it drew a smooth spline from p1 to p4.&amp;nbsp; That is what I was looking for.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 16:00:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/really-need-a-lisp-or-vba-to-create-3d-spline-cable/m-p/12296781#M24114</guid>
      <dc:creator>CrazyIvan</dc:creator>
      <dc:date>2023-10-10T16:00:56Z</dc:date>
    </item>
  </channel>
</rss>

