What is the best way to control the minimum distance between two 3D Splines?

Basically, I am creating a routing of tubing on an assembly of mine.  I know the tubing outer diameter and I have 2 3D splines that are encroaching on each other as they go from point to point.

Is there an easy way to add a control to control the distance between these 2 splines?

The closest that they come to each other is just under 6 mm and I want them to be at least 8 mm apart.

Right now, the only controls that I have on them are coincident constraints on the end points of the splines and tangency constraints between the splines and the lines I want them tangent to.

Edit: I did do some editing on the splines with the tangency and got it to where I want it.  But the question stands.....how can I control distance between 2 splines?

SolidworksParts And Features
Answers 16
GS
GS 2017-11-09 Best Answer

Hello Dan,

I don't use splines much, but could you add construction lines coincident with the spline points and tangent to the splines, make them parallel, and then dimension between them?

DP
DP 2017-11-09
<p>Glenn Schroeder wrote:</p><p></p><p>Hello Dan,</p><p style="padding: 0px; min-height: 8pt;"></p><p>I don't use splines much, but could you add construction lines coincident with the spline points and tangent to the splines, make them parallel, and then dimension between them?</p>

Yes, I can do that.

However, in this case, each spline only had 2 control points (one at each end).  Then each spline was tangent to and coincident to a line at each end and I was letting the rest of the spline float wherever it needed to go.

Even if I add more control points, I specifically only wanted to control the minimum distance between the two splines.  That is specifically only at one theoretical location for each spline and my control points won't necessarily line up with that specific location (the closest point to the other spline).

Is there some sort of automatic way to pick the point on the spline that is closest to the other spline?

GS
GS 2017-11-09
<p>Dan Pihlaja wrote:</p><p></p><blockquote class="jive-quote"><p>Glenn Schroeder wrote:</p><p style="padding: 0px; min-height: 8pt;"></p><p>Hello Dan,</p><p style="padding: 0px; min-height: 8pt;"></p><p>I don't use splines much, but could you add construction lines coincident with the spline points and tangent to the splines, make them parallel, and then dimension between them?</p></blockquote><p>Yes, I can do that.</p><p style="padding: 0px; min-height: 8pt;"></p><p>However, in this case, each spline only had 2 control points (one at each end). Then each spline was tangent to and coincident to a line at each end and I was letting the rest of the spline float wherever it needed to go.</p><p style="padding: 0px; min-height: 8pt;"></p><p>Even if I add more control points, I specifically only wanted to control the minimum distance between the two splines. That is specifically only at one theoretical location for each spline and my control points won't necessarily line up with that specific location (the closest point to the other spline).</p><p style="padding: 0px; min-height: 8pt;"></p><p><strong style="text-decoration: underline;">Is there some sort of automatic way to pick the point on the spline that is closest to the other spline?</strong></p>

I don't know.  You just went way above my pay grade.

NV
NV 2017-11-09

I was having issues with a similar project and setting the minimum curvature (radius) of a tangent bend on a 3D spline.

It is somewhat dependent on your setup I guess as to what you can reference. the splines are defined only by the endpoints and the value added to the influencing drag handles. obviously it is not easy to control when analyzing through multiple dimensions, so my solution was to use lines and arcs set tangent to points on my spline from bisecting views. Basically like a series of boundary sketches in a build or reference sketch. it wasn't perfect but it got me close enough.

JS
JS 2017-11-09

Give me a screen shot

DP
DP 2017-11-09
<p>John Stoltzfus wrote:</p><p></p><p>Give me a screen shot <span class="emoticon-inline emoticon_wink" style="width: 16px; height: 16px;"></span></p>

Here you go:

Current distance is:

It was about 5.8 mm, which caused an interference with the two tubes. I fixed it by playing with the tangency influence drag handle on the lower Spline.

But I was looking for better way.  Wasn't sure If there was some sort of magic that I hadn't heard of. 

comment imagecomment imagecomment imagecomment imagecomment imagecomment image
DP
DP 2017-11-09
<p>Newell Voss wrote:</p><p></p><p>I was having issues with a similar project and setting the minimum curvature (radius) of a tangent bend on a 3D spline.</p><p>It is somewhat dependent on your setup I guess as to what you can reference. the splines are defined only by the endpoints and the value added to the influencing drag handles. obviously it is not easy to control when analyzing through multiple dimensions, so my solution was to use lines and arcs set tangent to points on my spline from bisecting views. Basically like a series of boundary sketches in a build or reference sketch. it wasn't perfect but it got me close enough.</p>

This is exactly what I was running into.   I was able to play with the "influencing drag handle" to get it far enough away, but it's not ideal in my opinion.   I thought about going the route that you mentioned, by adding a bunch of reference geometry, but I wasn't sure that I wanted to take the time on something like that since the payback (since playing with the drag handle took care of it) would be so small.

Basically, I wasn't sure If there was some sort of magic that I hadn't heard of. 

GS
GS 2017-11-09

Dan,

I don't know if this would be any help to you, and I'll apologize in advance for taking up your time if it isn't, but I occasionally need to do something similar with cable.  Instead of using splines I place all straight lines first, then use the Sketch Fillet tool to round off the corners.  I find this much easier to control than splines.  Finally I use the Structural Shape Member function to create them instead of a simple Sweep because then LENGTH is automatically created as a cut list property, which can be helpful.

Glenn

comment imagecomment image
DP
DP 2017-11-09
<p>Glenn Schroeder wrote:</p><p></p><p>Dan,</p><p style="padding: 0px; min-height: 8pt;"></p><p>I don't know if this would be any help to you, and I'll apologize in advance for taking up your time if it isn't, but I occasionally need to do something similar with cable. Instead of using splines I place all straight lines first, then use the Sketch Fillet tool to round off the corners. I find this much easier to control than splines. Finally I use the Structural Shape function to create them instead of a simple Sweep because then LENGTH is automatically created as a cut list property, which can be helpful.</p><p style="padding: 0px; min-height: 8pt;"></p><p>Glenn</p>

Wow.....I have never used the structural shape function.   Now that I see it, I wonder why I didn't use it in the first place.  Wow!

At first I tried looking at the structural steel link in the toolbox, but that is not what Glenn meant.  He meant weldments!

Thanks Glenn, you may have solved my problem!

I may just re-create this (or at least test this out) using this method.  If it works, you will hear back from me (probably tomorrow, since I have to go pick up my kids from school in about half an hour).

GS
GS 2017-11-09

I think you'll like it, but as you probably already know (but someone else reading this might not), you can't use Splines with that function.

One more thing (again that you probably already know), when using the Structural Shape Member function you can select the sketch from the tree instead of individual lines.  That can save a lot of time on complex, or large, sketches.

VU
VU 2017-11-09

Hello Dan,

To simplify the task, instead spline I used 3D polyline + a couple of reference planes to control the shape:

comment imagecomment image
MP
MP 2017-11-09

Glenn,

I'm surprised you didn't suggest weldments for this (I'll have to check back into the structural shape tool).  If I had to do this over again, I'd use weldments:

And unfortunately weldments doesn't support splines...Too bad because the new style spline is soooo much better and would be great for hoses.

comment imagecomment image
GS
GS 2017-11-09
<p>Matt Peneguy wrote:</p><p></p><p>Glenn,</p><p><strong style="text-decoration: underline;">I'm surprised you didn't suggest weldments for this</strong> (I'll have to check back into the structural shape tool). If I had to do this over again, I'd use weldments:</p><p></p>

I did, but used the wrong term.  I typed "Structural Shape" and it should have been "Structural Member".  I went back and corrected it.

DP
DP 2017-11-10

OK, I figured out what you mean.  I have never, ever used a weldment before.

It took me a while to figure out how to create my own weldment profile and reference it. 

I am trying this out now.

NH
NH 2017-11-10

Weldments do everything!

DP
DP 2017-11-10
<p>Glenn Schroeder wrote:</p><p></p><p>I think you'll like it, but as you probably already know (but someone else reading this might not), you can't use Splines with that function.</p><p style="padding: 0px; min-height: 8pt;"></p><p>One more thing (again that you probably already know), when using the Structural <span style="text-decoration: line-through;">Shape</span> Member function you can select the sketch from the tree instead of individual lines. That can save a lot of time on complex, or large, sketches.</p>

Ok, this is WAY easier than the way I was doing it.  Wow!

It is a little less "organic" (if that is the correct word), but still gives me a good estimate on tubing length that I am going to need. (right now, I am only modeling in the tube.  I will have to figure out how to add it to a BOM/Cutlist on a drawing with length and all that later).

Thanks Glenn!!