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.

How to constrain object movement along an angled line?

Started by Radnoaz, January 28, 2015, 02:05:44 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Radnoaz

I have a line drawn which angles 69 degrees upward from the X axis (2D).

Affixed to that line I have a rectangle which represents a block of 2x4 wood. Affixed to that is a circle, representing a caster wheel. In order to move it into the position I'll need it, to intersect another circle in the drawing, I need to precisely slide it along that angled line, up or down, and have it accurately follow that path. This way I can put the caster in position to "roll" along the surface of the other circle.

I know I can constrain the movement of the cursor to an axis, such as X or Y, but is there a way to constrain the cursor to this angled line, which lies between the X and Y axes?

I need to have tangents on the 2 meeting circles touch, but also keep the 2x4 block on its mount, and I'm trying to figure out how to do it. :)

(Please ignore that the larger circles are not concentric. I need to fix that eventually).

Henry Hubich

#1
Quote from: Radnoaz on January 28, 2015, 02:05:44 PM
I have a line drawn which angles 69 degrees upward from the X axis (2D).

Affixed to that line I have a rectangle which represents a block of 2x4 wood. Affixed to that is a circle, representing a caster wheel. In order to move it into the position I'll need it, to intersect another circle in the drawing, I need to precisely slide it along that angled line, up or down, and have it accurately follow that path. This way I can put the caster in position to "roll" along the surface of the other circle.

I know I can constrain the movement of the cursor to an axis, such as X or Y, but is there a way to constrain the cursor to this angled line, which lies between the X and Y axes?

I need to have tangents on the 2 meeting circles touch, but also keep the 2x4 block on its mount, and I'm trying to figure out how to do it. :)

(Please ignore that the larger circles are not concentric. I need to fix that eventually).

One way: Create a new Workplane by 3 Points, clicking on two points on the line to designate the new X axis. In the Inspector Bar 3D Selector dialog, set both Extents CS and Inspector Bar CS to "User CS." Back in the drawing, select the circle that you want to move and press "Y" on the keyboard to lock the Y axis. The selected object will now move only parallel to the line. (Press "Y" again to unlock the Y axis.)

Henry H

Radnoaz

Thanks, Henry.

But it isn't working. I did exactly as you said, and then tried to move the block along the leg, but it won't move in ANY direction, even with Snaps turned off. I then tried pressing X (isn't it the X axis I want to lock??) and now I can't select anything at all. Not sure what to do to "undo" this. I did have the foresight to save the original drawing, and I am experimenting with a copy. Can you tell me what might be wrong?

Radnoaz

#3
OK, I remembered that locking axes shows up in the Inspector bar, and I unlocked both X and Y. Now I can select again. So this time I just locked Y, and I am moving the object along the line! :) Thanks!!

Now, how do I set up a Snap do that when the moved object's reference point touches the large circle in the middle it will snap there?

Alvin Gregorio

#4
Sounds like you are wanting two constraints, simultaneous.

You want the block/caster assembly to be constrained to this 69° line, but also constrained so that the caster "circle" is tangent to the larger circle-- always tangent while sliding down that line.

Is that correct?

If that is the case, you will probably have to use Constraints; which is a whole other ball-of-wax.

[Note that Constraints is not available in Designer nor Deluxe versions; I have forgotten which version you are using.]
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

Also, can you please upload/attach the drawing file (.tcw) so that we don't have to duplicate it for communicating.

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)

Radnoaz

Well, I haven't learned about constraints yet, but I would explain what I want to do like this. Set the Reference point of the little caster circle out where it appears it may intersect the larger circle (called a drum). Normally I could then drag the little caster circle (which is grouped with the blue rectangle "block" it is sitting on) anywhere, and snap that reference point to anything, based upon what Snap I use. Like intersecting lines, a vertex, etc. But if I do that, it possibly pulls the block away from that 69 degree angle "leg".

There is a spot, with the block along the leg, where that reference point will touch the drum. That's what I am looking for. If I constrain the block to movement along the UCS X axis, I can make that appear to happen. But if I could somehow use a Snap to tell the drum to grab the caster as it passes across the drum's circumference, I will have it precisely happen. That's my end goal. Isn't there some kind of Snap that does touching the nearest point on a circle? I tried tangent, but it didn't work.

I attached a copy of the drawing.

Alvin Gregorio

#7
Quote from: Radnoaz on January 28, 2015, 04:51:26 PM
Well, I haven't learned about constraints yet, but I would explain what I want to do like this. Set the Reference point of the little caster circle out where it appears it may intersect the larger circle (called a drum). Normally I could then drag the little caster circle (which is grouped with the blue rectangle "block" it is sitting on) anywhere, and snap that reference point to anything, based upon what Snap I use. Like intersecting lines, a vertex, etc. But if I do that, it possibly pulls the block away from that 69 degree angle "leg".

There is a spot, with the block along the leg, where that reference point will touch the drum. That's what I am looking for. If I constrain the block to movement along the UCS X axis, I can make that appear to happen. But if I could somehow use a Snap to tell the drum to grab the caster as it passes across the drum's circumference, I will have it precisely happen. That's my end goal. Isn't there some kind of Snap that does touching the nearest point on a circle? I tried tangent, but it didn't work.

I attached a copy of the drawing.

[Relooking at the Drawing.  Might edit this Post.]

Yep, sounds like you need to use Constraints.  Good luck.

Maybe Henry or others will offer a different opinion.


Thanks for sharing the TurboCAD file.  Surprisingly to me, I was able to open it-- with seemingly everything making it over-- in my Deluxe version-19.  Looks like you are using TC-Surface for your 3D Objects, rather than ACIS Solids; that's why everything is coming through in my Deluxe version.

A little tip:  If you are going to draw something, or a group of somethings, that you are going to use more than once in the drawing-- such as the caster-- make them a Block instead of a Group.  That way, any editions to them are universal for all insertions of them. (and it saves on file size)

~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

I see what you are after.  I don't think you need to use Constraints (thank goodness).

What we need is a geometry wizard.  Henry will get it.
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)

Radnoaz

I'll look into Blocks. Thanks for the suggestion.

Until then, I needed to find out why all of a sudden when I try to move the caster by locking the Y axis, I can't move it anymore. I had it working before, and now it won't move. I never see the crossed arrows typically showing when the cursor is placed over the reference point. I have no idea what I am doing, if anything, that suddenly makes this happen. But it may be something going on in my Workspace setting, because I decided to close the experimental drawing, and went back to my saved original. I made a new copy for experimenting. I had to re-do the new workplane by 3 points. But the User CS settings remained on the Inspector Bar and 3D Selector. And I still can't move a selection if I lock an axis. So now I need to figure out what is wrong so I can get back to work.

Well, I figured it out through experimentation. I can not just "select the circle that you want to move and press "Y" on the keyboard to lock the Y axis". I MUST select the circle's REFERENCE POINT (making sure to see the crossed arrows cursor typical of preparing to move something), and only while that reference point is under the cursor, with the crossed arrows still displayed, THEN press either Y or X to lock the Y or X axis respectively. If I try to just select the circle by clicking somewhere other than on the exact reference point, and press Y, it does lock the Y axis, but is also locks me OUT of moving the selected object. This is repeatable in testing, even on a brand new drawing using the World CS.

So, I can move the caster into "apparent" position, and I guess I'll live with that for now, unless someone can tell me how to make it snap to the drum. Fortunately I am familiar with how TurboCAD's lines change in appearance when one line lies directly over another, so it is very likely I have the intersection point I need, I just won't know for sure.

Thanks for the help!! :)

Alvin Gregorio

#10
I figured out a way.  It's hard to explain how I did it.  Just used Parallel Construction; Circle Construction; Perpendicular Construction; various Snaps; inserted a "Circle Tangent to Arc or Curve".  (and a little thinking)

Please see the attachment.   There's a couple of extraneous Constructions; but I left them in at the "Save".

~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)

Henry Hubich

Quote from: Radnoaz on January 28, 2015, 04:51:26 PM
Well, I haven't learned about constraints yet, but I would explain what I want to do like this. Set the Reference point of the little caster circle out where it appears it may intersect the larger circle (called a drum). Normally I could then drag the little caster circle (which is grouped with the blue rectangle "block" it is sitting on) anywhere, and snap that reference point to anything, based upon what Snap I use. Like intersecting lines, a vertex, etc. But if I do that, it possibly pulls the block away from that 69 degree angle "leg".

There is a spot, with the block along the leg, where that reference point will touch the drum. That's what I am looking for. If I constrain the block to movement along the UCS X axis, I can make that appear to happen. But if I could somehow use a Snap to tell the drum to grab the caster as it passes across the drum's circumference, I will have it precisely happen. That's my end goal. Isn't there some kind of Snap that does touching the nearest point on a circle? I tried tangent, but it didn't work.

I attached a copy of the drawing.

One way: The radius of the drum is 6.4328" and the radius of the caster weel is 1". Draw a circle of radius 7.438" centered on the drum (1 in the attached screenshot). Then draw a line through the center of the caster wheel, parallel to the leg (2 in the attachment). Move the reference point of the caster assembly to the center of the caster wheel, then snap the caster assembly to the intersection of 1 and 2.

Henry H

Radnoaz

Quote from: Alvin Gregorio on January 28, 2015, 06:32:50 PM
I figured out a way.  It's hard to explain how I did it.  Just used Parallel Construction; Circle Construction; Perpendicular Construction; various Snaps; inserted a "Circle Tangent to Arc or Curve".  (and a little thinking)

Please see the attachment.   There's a couple of extraneous Constructions; but I left them in at the "Save".

~Alvin

Thanks Alvin,

Base on your construction circle, it appears you and Henry had the same basic idea. :)

Alvin Gregorio

#13
Quote from: Radnoaz on January 28, 2015, 06:53:05 PM
...
Thanks Alvin,

Base on your construction circle, it appears you and Henry had the same basic idea. :)

Yes, trying to clean it up and simplify it, it took me one intermediate revision to (finally) get to where Henry did.  He beat me to it.

I like geometry.  I like trying to figure out:  "If this has to be this, and this has to be there, than...??"  "What's the simplest, most basic way, of achieving this?"

Thanks for the cerebral workout  ~Alvin

_____
p.s.:  You might have to use "Workplane by Entity" on the 69° leg to get the Parallel Construction to behave how you want.
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)

Radnoaz

Quote from: Henry Hubich on January 28, 2015, 06:47:43 PM
Quote from: Radnoaz on January 28, 2015, 04:51:26 PM
Well, I haven't learned about constraints yet, but I would explain what I want to do like this. Set the Reference point of the little caster circle out where it appears it may intersect the larger circle (called a drum). Normally I could then drag the little caster circle (which is grouped with the blue rectangle "block" it is sitting on) anywhere, and snap that reference point to anything, based upon what Snap I use. Like intersecting lines, a vertex, etc. But if I do that, it possibly pulls the block away from that 69 degree angle "leg".

There is a spot, with the block along the leg, where that reference point will touch the drum. That's what I am looking for. If I constrain the block to movement along the UCS X axis, I can make that appear to happen. But if I could somehow use a Snap to tell the drum to grab the caster as it passes across the drum's circumference, I will have it precisely happen. That's my end goal. Isn't there some kind of Snap that does touching the nearest point on a circle? I tried tangent, but it didn't work.

I attached a copy of the drawing.

One way: The radius of the drum is 6.4328" and the radius of the caster weel is 1". Draw a circle of radius 7.438" centered on the drum (1 in the attached screenshot). Then draw a line through the center of the caster wheel, parallel to the leg (2 in the attachment). Move the reference point of the caster assembly to the center of the caster wheel, then snap the caster assembly to the intersection of 1 and 2.

Henry H

My hat is off to you guys! And it bugs me that I had not thought to do it this way, as this kind of technique is definitely in line with the way I would draw something. I learned geometry and math in High School a long time ago, but the geometry serves me the most. I can't always explain the math behind how it works anymore, but I remember the basic principles. :)

While you guys were arriving at this very nice solution, I found a way to "verify" that I had indeed moved the caster adjacent to the drum on each side. When I zoom in all the way, it appeared the lines were concurrent along a short span, but when I decided to put a horizontal construction line through the concurrent points on both sides, using an Intersection Snap, it would not snap on the left side. Indeed, I had a tiny gap there, just a couple mils. I moved it again and finally got the snap on both sides, so it is good.

Thanks very much for taking the time to help me, and I will definitely remember how you solved this, so I learned some more tonight about TurboCAD. :)

Alvin Gregorio

Quote from: Radnoaz on January 28, 2015, 07:16:48 PM
...
Thanks very much for taking the time to help me, and I will definitely remember how you solved this, so I learned some more tonight about TurboCAD. :)

You're Welcome.  (though I didn't contribute much)

I only got there from thinking, thinking, thinking; and I'm no genius.  Added to that some confidence that there had to be a geometric solution, mixed in some resolve and some time-availability.

I bet Henry spent 60 seconds tops getting to the resolution :-\

----See you on the next one Radnoaz!   -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)

Henry Hubich

Quote from: Alvin Gregorio on January 28, 2015, 07:27:11 PM
Quote from: Radnoaz on January 28, 2015, 07:16:48 PM
...
Thanks very much for taking the time to help me, and I will definitely remember how you solved this, so I learned some more tonight about TurboCAD. :)

You're Welcome.  (though I didn't contribute much)

I only got there from thinking, thinking, thinking; and I'm no genius.  Added to that some confidence that there had to be a geometric solution, mixed in some resolve and some time-availability.

I bet Henry spent 60 seconds tops getting to the resolution :-\

----See you on the next one Radnoaz!   -Alvin

I used to do this kinda stuff for a living ;-)

Henry H

Alvin Gregorio

Quote from: Henry Hubich on January 28, 2015, 07:57:49 PM
---

I used to do this kinda stuff for a living ;-)

Henry H

I think that's one of the main reasons I am and have been so active on these Forums the past many years:
     I have very little opportunity in my "real" life to interact with people that are so smart-- not just CAD-knowledgeable, but smart.

I appreciate all our interactions Henry (and you other smart, friendly folks).

~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)

Radnoaz

I am quite thankful you are both (all) here. :)

There was a time not so long ago when I had to figure things out without the help of forums and the internet. Hard to imagine these days how we did it. But I for one had a younger cranium with a few less cobwebs back then. :)

I failed my very first geometry test. When I went over it with the teacher she found out that I did in fact know every correct answer, but it seemed too simple for me, so I was trying hard to find what I assumed had to be a more complex solution. Once she told me I should try going with my first impression, I aced all the rest of the class. I like geometry because of its logic. Most rules are pretty cut and dried. And understanding one leads to understanding another. I wish I remembered it all better, as I am sure it would be helpful here.