<?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: projecting geometry onto a helical surface? in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/projecting-geometry-onto-a-helical-surface/m-p/12692506#M18260</link>
    <description>&lt;P&gt;The thought is to get the shape to lie on the surface.&amp;nbsp; The shape is curved with the spiral surface so the slice gives the shape on the surface with the curve.&amp;nbsp; I.e. you can't use a flat shape.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;see attached.&amp;nbsp; is that the result desired?&amp;nbsp; (not the shape you may want, but is it on the surface where &amp;amp; as wanted?)&lt;/P&gt;&lt;P&gt;first&amp;nbsp; saved a back up copy of the file and&amp;nbsp;exploded the block.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Drew recatangle and extruded aways down, then moved the solid straight up so it would pass through the flange surface when arrayed polar.&amp;nbsp; drew the blue circle for the&amp;nbsp; center reference of polar array.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Polar array and explode the array, erase unwanted solids, union the ones intersecting the&amp;nbsp; flange back together and slice using the flange surface,&amp;nbsp; erase the solids and the shapes are now on the surface.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;those shapes could be copied back to the original block dwg with a reference point common to both dwg.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for the triangles all that is needed is a wider flang to slice with.&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>Sun, 07 Apr 2024 15:08:20 GMT</pubDate>
    <dc:creator>parkr4st</dc:creator>
    <dc:date>2024-04-07T15:08:20Z</dc:date>
    <item>
      <title>projecting geometry onto a helical surface?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/projecting-geometry-onto-a-helical-surface/m-p/12691541#M18256</link>
      <description>&lt;P&gt;Hello to all, please see the attched dwg:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a spiral conveyor bed section.&amp;nbsp; Is there a simple way to imprint/project, etc the blue and magneta geometry onto the top of the c-channel surfaces on both sides?&amp;nbsp; I'd rather not have to constantly adjust a local UCS and rotate in multiple axes to get the magenta and blue parts to be approximately the right orientation.&amp;nbsp; Thanks in advance for any help!&lt;/P&gt;</description>
      <pubDate>Sat, 06 Apr 2024 17:45:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/projecting-geometry-onto-a-helical-surface/m-p/12691541#M18256</guid>
      <dc:creator>acadadmin3KNUF</dc:creator>
      <dc:date>2024-04-06T17:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: projecting geometry onto a helical surface?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/projecting-geometry-onto-a-helical-surface/m-p/12691599#M18257</link>
      <description>&lt;P&gt;If you can access the helix spline then you can use the &lt;STRONG&gt;array&lt;/STRONG&gt; command follwed by &lt;STRONG&gt;PAth&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Position the shape at the beginning of the helix (spline) and experiment with it a bit.&amp;nbsp; YOu can adjust the spacing or the number of items r chose to fill the spline, or use the grip to drag the arrayed item.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Apr 2024 18:52:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/projecting-geometry-onto-a-helical-surface/m-p/12691599#M18257</guid>
      <dc:creator>leeminardi</dc:creator>
      <dc:date>2024-04-06T18:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: projecting geometry onto a helical surface?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/projecting-geometry-onto-a-helical-surface/m-p/12691730#M18258</link>
      <description>&lt;P&gt;An interesting idea...but after trying it, the resulting, arrayed obects (in orange here) do not change their orientation, they are still flat-to the world-UCS&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="arraying doesnt change objects' orientation ZOOMED.JPG" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1346696i46DE8F578CD95093/image-size/medium?v=v2&amp;amp;px=400" role="button" title="arraying doesnt change objects' orientation ZOOMED.JPG" alt="arraying doesnt change objects' orientation ZOOMED.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Sat, 06 Apr 2024 21:47:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/projecting-geometry-onto-a-helical-surface/m-p/12691730#M18258</guid>
      <dc:creator>acadadmin3KNUF</dc:creator>
      <dc:date>2024-04-06T21:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: projecting geometry onto a helical surface?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/projecting-geometry-onto-a-helical-surface/m-p/12691894#M18259</link>
      <description>&lt;P&gt;For another project that I was working on last year I wrote a LISP proogram to position blocks along a spline with the option to control the twist as they progressed along the spline.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've modified the code slightly and it may do what you want.&amp;nbsp; It positions the blocks so that the block's y axis is parallel to the spline's tangent.&amp;nbsp; Since the code uses the first and second derivatives of the curve the block's x&amp;nbsp; axis point towards the instantaneous center of curvature at the point it is added.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try it out.&amp;nbsp; Enter values of 0 for the beginning and end twist angles for your application and when prompted to Select Object select the spline.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the attached&amp;nbsp;file use the block named tri1 as an example.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="leeminardi_1-1712452976462.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1346714iAED761CC5429DBC8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="leeminardi_1-1712452976462.png" alt="leeminardi_1-1712452976462.png" /&gt;&lt;/span&gt;&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_0-1712452944321.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1346713iBAB49EC129CB985D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="leeminardi_0-1712452944321.png" alt="leeminardi_0-1712452944321.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun C:test (/)  ;  draft version
;;(defun C:qq (/ path inc n osm	par der1 der2 curva p perp normv p2 sf
;  adds blocks along a spline.  The user specifies the number of blocks and
; the total amount of twist over the length of the spline.   The Y axis of the block
; is tangent to the spline.  
; LRM 5/1/2023 revised 4/6/2024  
(command "ucs" "w")
(setvar 'osmode 0)
(setq nsec (getint "\nEnter number of sections: "))
(setq nsec (- nsec 1))  
(setq blockname (getstring "\nEnter block name: "))
(setq twist (getreal "\nEnter start twist angle: "))
(setq tottwist (getreal "\nENter total twist start to end: "))  
(setq
  path (car (entsel))
  inc  (/ (vlax-curve-getEndParam path) nsec)
  n    0
  osm  (getvar 'osmode)
)
;(setvar "cmdecho" 0)
(repeat	(+ nsec 1)
  (setq par (* inc n))
  (setq	der1 (vlax-curve-getfirstDeriv path par)
	der2 (vlax-curve-getSecondDeriv path par)
	p    (vlax-curve-getPointAtParam path par)
  )
  (setq p1 (mapcar '+ p (unitv (cross der1 der2))))
  (setq p2 (mapcar '+ p (unitv der1)))
  (setq vy (unitv (mapcar '- p1 p)))
  (setq vz (unitv (mapcar '- p2 p)))
  (setq vx (unitv (cross vy vz)))
  (setq p3 (mapcar '+ p vx))

  (command "-insert" blockname '(0 0 0) 1 1 0)
  (command "_align" "last" "" '(0 0 0) p '(0 1 0) p2 '(1 1 0) p3 "n")
  (if (&amp;gt; (abs twist) 0.00001)
    (command "rotate3d" "last" "" "2" p p2 twist)
  )
  (setq twist (- twist (/ tottwist nsec)))
  (setq n (1+ n))
)					; end repeat
(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;</description>
      <pubDate>Sun, 07 Apr 2024 01:24:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/projecting-geometry-onto-a-helical-surface/m-p/12691894#M18259</guid>
      <dc:creator>leeminardi</dc:creator>
      <dc:date>2024-04-07T01:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: projecting geometry onto a helical surface?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/projecting-geometry-onto-a-helical-surface/m-p/12692506#M18260</link>
      <description>&lt;P&gt;The thought is to get the shape to lie on the surface.&amp;nbsp; The shape is curved with the spiral surface so the slice gives the shape on the surface with the curve.&amp;nbsp; I.e. you can't use a flat shape.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;see attached.&amp;nbsp; is that the result desired?&amp;nbsp; (not the shape you may want, but is it on the surface where &amp;amp; as wanted?)&lt;/P&gt;&lt;P&gt;first&amp;nbsp; saved a back up copy of the file and&amp;nbsp;exploded the block.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Drew recatangle and extruded aways down, then moved the solid straight up so it would pass through the flange surface when arrayed polar.&amp;nbsp; drew the blue circle for the&amp;nbsp; center reference of polar array.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Polar array and explode the array, erase unwanted solids, union the ones intersecting the&amp;nbsp; flange back together and slice using the flange surface,&amp;nbsp; erase the solids and the shapes are now on the surface.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;those shapes could be copied back to the original block dwg with a reference point common to both dwg.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for the triangles all that is needed is a wider flang to slice with.&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>Sun, 07 Apr 2024 15:08:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/projecting-geometry-onto-a-helical-surface/m-p/12692506#M18260</guid>
      <dc:creator>parkr4st</dc:creator>
      <dc:date>2024-04-07T15:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: projecting geometry onto a helical surface?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/projecting-geometry-onto-a-helical-surface/m-p/12693040#M18261</link>
      <description>&lt;P&gt;Thanks very much to everyone who responded.&amp;nbsp; I ended up drawing the whole thing in 2D under the helix-created rails for positioning the card X-Y, extruding it up through the rail, using INTERSECT to get the needed card shape from that, then going back and subtracting to get the card's position along the rail, then using that piece with COPYBASE to position it on a virgin-copy-without-holes of the rail.&amp;nbsp; Whew, awesome!!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SLICED THRU SPIRAL RAILS.JPG" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1346847i10BB3F255CAC2A2D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SLICED THRU SPIRAL RAILS.JPG" alt="SLICED THRU SPIRAL RAILS.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 01:38:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/projecting-geometry-onto-a-helical-surface/m-p/12693040#M18261</guid>
      <dc:creator>acadadmin3KNUF</dc:creator>
      <dc:date>2024-04-08T01:38:55Z</dc:date>
    </item>
  </channel>
</rss>

