Bill Tillman Posted May 24, 2009 Share Posted May 24, 2009 http://www.cadtutor.net/forum/showthread.php?t=33648&highlight=section+properties In this thread a user posted his situation about why his sweep was not working correctly. In short, I too have run into this similar problem when trying to extrude or sweep shapes along a path. When I'm using a round pipe there is no problem, but sometimes when I use rectangles, squares, anything besides a concentric circle, the sweep ends up twisting along the path much like this guy was getting. I read the complete post and still don't seem to understand why a sweep or extrude takes of twisting in the first place and how does one force a sweep or extrude to stay in plane? Quote Link to comment Share on other sites More sharing options...
JD Mather Posted May 24, 2009 Share Posted May 24, 2009 This is a very wide open question. Difficult to answer without specific geometry. You forgot to zip and attach what you have so far with your profile and path for the Sweep. Quote Link to comment Share on other sites More sharing options...
Rob-GB Posted May 25, 2009 Share Posted May 25, 2009 When I had this problem I found I had to change the twist variable. After selecting the object to sweep the command line will show: Select object:-or Alignment/base point/scale/twist Type t and it will show what twist angle is set to. Change this to get desired result then select path. Hope this helps. Quote Link to comment Share on other sites More sharing options...
Bill Tillman Posted May 26, 2009 Author Share Posted May 26, 2009 Here is an example of what I don't seem to be grasping in the extrude and sweep operations. This is a handrail for a spiral staircase. When I use a concentric pipe for the rail all is well. But when I use a rectangle or other shape the sweep comannd ends up giving me less than what I was looking for. The handrail ends up rotating and twisting along the path instead of remaning in the same vertical orientation. I made the path for the rail (the magenta Polyline) by simply drawing a line of the desired height from the end of one of the treads. Then I copied this line to the same point along each tread. I drew a 3dpolyline by using the top end of each of these lines as a point to draw the polyline to. Then I inserted the handrail profile and tried to sweep. The results are shown on the attached drawing file. As per Rob-GB's post, I checked the twist property and it was set to 0. Any tips on how I could force the profile to stay on the correct path would be appreciated. sweep-problem.dwg Quote Link to comment Share on other sites More sharing options...
Rob-GB Posted May 26, 2009 Share Posted May 26, 2009 Just had a play with it and adjusted sweep's twist to 100. This is what I believe the angle of end points are. Starting at bottom of stair. The twist is to allow for the natural curvature of the handrail as it rises: ie in order to keep top part facing toward the ceiling. Hope it helps. sweep-problem[1a].dwg Quote Link to comment Share on other sites More sharing options...
Bill Tillman Posted May 27, 2009 Author Share Posted May 27, 2009 Rob-GB, can you tell me how you arrived at the 100 figure? I don't seem to follow that one. Quote Link to comment Share on other sites More sharing options...
Rob-GB Posted May 28, 2009 Share Posted May 28, 2009 Hi Bill, When I measured the angle between the ends of the handrail it came up as 100. Having tried again I am not getting the same results! So on to plan "B". The latest dim that I got was 60 degrees but when I set twist to this it was clearly not enough. I then clicked on handrail sweep and altered the twist angle via the Properties pallette. It took some trial and error, however, 120 degrees seems to give the best result. There is an easier way, I am sure, but it escapes me at the moment. This screen shot may help with the my text above. Quote Link to comment Share on other sites More sharing options...
tonyj Posted March 11, 2013 Share Posted March 11, 2013 Bill, Simple solution to your problem, use the 'helix' command instead of 3d polylines or splines when creating the sweep path for your handrail. I have found the helix command very useful for spiral and helix stairs. Found it difficult to master though. sweep-problemTJJ.dwg Quote Link to comment Share on other sites More sharing options...
smjh1 Posted May 10, 2014 Share Posted May 10, 2014 After beating my head against my monitor, I tried the Twist option. Various angles didn't help, then I entered 0 for the angle. Worked just fine. Seriously, AutoCAD??!! Quote Link to comment Share on other sites More sharing options...
Randolph Posted May 13, 2014 Share Posted May 13, 2014 Tonyi is right. If you make your handrail using a HELIX and the the SWEEP, the problem is solved. The reason why it doesn't work with your 3D-Polyline is a geometric problem, as it appears to me, similar to my last posting. The point is, that basically, you are trying to connect skew lines with planar faces, which cannot work. The top of your handrail is a so-called "screw surface" (I can only translate this directly from German). My guess is that the SWEEP command compensates for your horizontal rail profil by cumulating the aberrance via the seen distortion from stair to stair. Quote Link to comment Share on other sites More sharing options...
Randolph Posted May 13, 2014 Share Posted May 13, 2014 Here's something useful to play with: [font="]; Mehrfaches Rotieren mit Z-Abstand[/font] [font="](DEFUN C:SPIRAL ()[/font] [font="] (SETQ OBJEKTE (SSGET))[/font] [font="] (SETQ MPUNKT (GETPOINT "\nDrehpunkt :"))[/font] [font="] (SETQ WINKEL (GETREAL "\nDrehwinkel :"))[/font] [font="] (SETQ ABSTAND (GETREAL "\Z-Abstand :"))[/font] [font="] (SETQ ANZAHL (GETINT "\nWie oft soll kopiert werden? :"))[/font] [font="](COMMAND "_OSNAP" "")[/font] [font="] (SETQ X 0)[/font] [font="] (WHILE (< X ANZAHL)[/font] [font="] (COMMAND "_COPY" "_SI" OBJEKTE MPUNKT MPUNKT)[/font] [font="] (COMMAND "_ROTATE" "_SI" OBJEKTE MPUNKT WINKEL)[/font] [font="] (COMMAND "_MOVE" "_SI" OBJEKTE "0,0,0" (LIST 0.0 0.0 ABSTAND))[/font] [font="] (SETQ X (+ X 1))[/font] [font="] )[/font] [font="] (COMMAND "_OSNAP" "_END,_INT,_MID,_CEN,_INS,_PER")[/font] [font="] (COMMAND "_REDRAW")[/font] [font="] (SETQ OBJEKTE NIL)[/font] [font="])[/font] Multiple Rotation with Z offset - Rotation Center - Rotation Angle - Z-Distance - Number of Copies. Quote Link to comment Share on other sites More sharing options...
Randolph Posted May 13, 2014 Share Posted May 13, 2014 Here's the result. Spiral and Helix.dwg Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.