News:

The purpose of these forums is to discuss TurboCAD.  Please keep the discussion of other products to compatibility issues or how the other software can be used with TurboCAD.

Main Menu
TurboCAD 2026 Platinum box
Now available

TurboCAD 2026.2

The latest update for TurboCAD 2026. It installs over any 2026 build and keeps your activation, drawings and settings. Get it from the Start Page or Help > Check for Update.

Rail Sweep

Started by Alvin Gregorio, September 27, 2021, 02:25:59 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Alvin Gregorio

Hello All,

Is the Rail Sweep not working as described in the Help?
___
>A single closed Profile
>A Point object at the bottom-right corner of that Profile
>A Rectangle for the (Rail) Sweep Path
>Activate Rail Sweep, Compound Profile & Compound Path; Select closed Profile; Select Point object, Select Rectangle as Path
>Result:  The point of the closed profile that was swept on the path was the closed profile's Center of Extents; not the bottom-right corner where the selected Point object was

Manipulating the closed profile object and/or the Point object in many different ways does not rectify the result.

Does this not work as expected (from the Help docs) in version 2020 Platinum 64-bit?

Thanks, Alvin
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Alvin Gregorio

#1
It works as expected if Compound Profile and/or Compound Path is not selected.  Thereby not requiring the Point object for the sweep reference point.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Henry Hubich

Alvin, it works as advertised in my 2020 installation. However, I've found that the orientation of the profile with respect to the path is impossible to predict and difficult to adjust satisfactorily. If profile orientation is important, I prefer to use Sweep rather than Rail Sweep.

Henry H

Henry Hubich

Alvin, can you post your problem drawing?

Henry H

Alvin Gregorio

Quote from: Henry Hubich on September 27, 2021, 03:40:59 PM
Alvin, can you post your problem drawing?

Henry H

I closed out of TurboCAD 2020; it was crashing a little often in this test file.
Shut down the laptop.  Then started the laptop again.

Launched TurboCAD.
Started a new test drawing From Scratch.
Created the Profile, the Point object, and the Rectangle path.

Sweep works good.  Rail Sweep now follows the path as the Point object's location on the path.  But the (Rail) Sweep entity is upside-down now.
Must be one of those tools that just need to figure out the mystery behind it.

Sweep will work.  There was a reason I started using Rail Sweep on this test file; but I figured out how to mitigate that.

Attached is the file.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Alvin Gregorio

#5
The problem I was having with the Sweep was if I changed the size of the Polyline path, the Sweep object wouldn't go along associatively.  It might do some screwy things.
But if I selected the Sweep entity instead of the Polyline path, and re-sized the Sweep entity, not only would the Sweep entity correctly re-size, also the Polyline would go along with.  Sort of a reverse-associativity from what I was thinking how it should work.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Alvin Gregorio

I got the Rail Sweep to work as expected/desired in the attached.
Haven't yet figured out the rhyme or reason to why this orientation of the profile object and Point object work.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Henry Hubich

Quote from: Alvin Gregorio on September 27, 2021, 04:24:35 PM
I got the Rail Sweep to work as expected/desired in the attached.
Haven't yet figured out the rhyme or reason to why this orientation of the profile object and Point object work.

Yup. Like I said in Reply #2.

Henry H

Andy H

#8
Quote from: Alvin Gregorio on September 27, 2021, 04:24:35 PM
I got the Rail Sweep to work as expected/desired in the attached.
Haven't yet figured out the rhyme or reason to why this orientation of the profile object and Point object work.

My thoughts, (not guaranteeing they are totally correct), and A few things to remember when using rail sweep with compound profile and point object (on same work plane).

1)  The direction the path is drawn can be important.  For example,  a rectangle drawn from bottom left to top right, will rail sweep differently from one drawn bottom right to top left.  This is because,  normally the +z direction of the profile, is aligned with the start location of the path, and pointed in the direction from vertex 0 to vertex 1.   This is easily checked in selection palette metrics for polylines, but for splines, one can make a copy of the spline, and explode once,  then read the polylines v0 and v1 locations.

2)  The +z direction of the profile is important.  For example,  a rectangle path on the world workplan, plus a profile on the world work plane.  Say whilst doing something else, one accidentally places the profile on the bottom work plane. (this is not the same as rotating the profile).  The profile will visually look perfect as before, but the +z direction is opposite.  This means the rail sweep will be opposite to what one would normally expect.

3)  The orientation of the profile, with respect to the path affects how the rail sweep will be produced.  For example, a profile and path drawn on the world work plane.  One accidentally rotates the profile and point object a few degree around the x axes (Rot X or grabbing Y handle).  When swept, the object will be angled.  This can usually be seen if one selects the sweep, and looks at the bounding box.  For predictable results, best to have path / profile / point, flat on the same workplane.

4)  If the result is not as expected.  After using the tool, and selecting the object.  The 'Select profile' option (on the right click menu, or icon on the inspection bar). is your friend.   This can be important if the compound profile is used with multiple objects as the path.  It is mainly used to determine which path object is being used as the start.  Plus the start path direction, can be often checked in the selection info palette (Metrics - vertex).  For example.  Rectangle and profile drawn on world work plane  Rail sweep by clicking profile + point object, and clicking any part of the rectangle path.  This will likely always result in the 'select profile' being in the same position.   However, Explode the path once to produce 4 line.  Now after selecting the profile and point object.  clicking on different lines as the start,  will put the profile at a different location for the finished sweep. (as seen using 'select profile'). 

5)  Self intersection.  Assuming the path does not cross or bash into itself.  This is usually because one, of a multi object path is drawn facing the wring direction.  For example.  World work plane. Rectangle path drawn bottom left to top right.  Explode once to get 4 lines.  After selecting profile and point object, no matter which line of the path one clicks on. the correct object will be produced.  Now delete the bottom line, and redraw it from right to left.  Now, if one selects profile and Point then the left hand line, it will self intersect.  clicking any of the other three lines (bottom/right/top, will work as normal. 

6) Adjustments.   After completing compound profile rail sweep.  One can node edit the path or the profile.  however, unlike sweep,  Rotating the profile doesn't alter the sweep (which is a good thing in my view).  I assume this is because, the program has already logged the start profile position (as seen using 'select profile'). 

7). Scaling the profile, after the sweep is completed.  Don't,  Strange things can happen.  :)

Alvin Gregorio

Thanks for that Andy.

Seems like you have a fairly good handle on the nuances of Rail Sweep.  Knowledge I was going to attempt to attain through a bunch of experimentation; so Thanks for saving me that time and effort.  -Alvin
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Alvin Gregorio

Quote from: Andy H on September 28, 2021, 04:10:37 AM
...

3)  The orientation of the profile, with respect to the path affects how the rail sweep will be produced.  For example, a profile and path drawn on the world work plane.  One accidentally rotates the path and point object a few degree around the x axes (Rot X or grabbing Y handle).  When swept, the object will be angled.  This can usually be seen if one selects the sweep, and looks at the bounding box.  For predictable results, best to have path / profile / point, flat on the same workplane.
...

Did you mean to write "profile" there Andy?
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Henry Hubich

#11
Two more comments:

1. Today, Rail Sweep misbehaves for me just as Alvin described in his first post. Yesterday it worked "as advertised."*

2. Andy posted that "After completing compound profile rail sweep.  One can node edit the path or the profile.  however, unlike sweep,  Rotating the profile doesn't alter the sweep (which is a good thing in my view).  I assume this is because, the program has already logged the start profile position (as seen using 'select profile')." But if you switch to 2D mode before rotating the profile, the sweep will update accordingly. Unfortunately that does not guarantee that you'll be able to fix it just as you want it.

Henry H

*Amendment: Today it works as advertised in my 2020 installation and misbehaves in 2021.

Alvin Gregorio

Something I find interesting and further perplexing--

>Let's say I have a Polyline to be used as an Extrude path or a Loft guide line.
>That Polyline has three vertices:  0,0,0; 0,24,0; 24,36,0
>Let's say I have a profile with its reference point and Rail Sweep reference Point at 0,0,0
>I also have a copy of this profile at 24,36,0; it is rotated to be "normal" to the oncoming path/guide-line

>If I try to Loft it-- 3D set to ACIS Solid, because that is the only way we can use a Compound Profile and/or guide lines-- I get the ACIS Self Intersecting error.
>But Sweep or Rail Sweep it along the same path as the previously attempted guide line and it the ACIS Solid works, no error.  Nice tight corner at 0,24,0.

That's crazy.  And hard to reconcile .
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Andy H

Quote from: Alvin Gregorio on September 28, 2021, 07:22:30 AM
Quote from: Andy H on September 28, 2021, 04:10:37 AM
...

3)  The orientation of the profile, with respect to the path affects how the rail sweep will be produced.  For example, a profile and path drawn on the world work plane.  One accidentally rotates the path and point object a few degree around the x axes (Rot X or grabbing Y handle).  When swept, the object will be angled.  This can usually be seen if one selects the sweep, and looks at the bounding box.  For predictable results, best to have path / profile / point, flat on the same workplane.
...

Did you mean to write "profile" there Andy?

Yep.  Sorry about that.    And I read the thing about 3 times before posting, and I still got it wrong.   :-[

Andy H

Quote from: Alvin Gregorio on September 28, 2021, 09:34:11 AM
That's crazy.  And hard to reconcile .

Lofting often doesn't like sharp corners.  I think of a loft shape as more akin to a spline curvature. And is the same using guides or when placing all the intermediate profiles manually.

The help files says "Beziers, and polyline cannot be used as guide lines"

Jeff_in_90620

#15
Quote from: Andy H on September 28, 2021, 10:27:16 AM
Lofting often doesn't like sharp corners.  I think of a loft shape as more akin to a spline curvature. And is the same using guides or when placing all the intermediate profiles manually.

Not as a single, contiguous loft, no.  However, I have used the same terminus to loft from two different directions, which resulted in a sharp corner.

As the topic is Rail Sweep, I was able to do a continuous frame around a rectangle when I adjusted the Reference Point to be on the innermost point, relative to the center of the rail operation.


Jeff
Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)