How to fix a rectangle to midpoint of a line?

How to fix a rectangle to midpoint of a line?

877cms
Enthusiast Enthusiast
1,322 Views
9 Replies
Message 1 of 10

How to fix a rectangle to midpoint of a line?

877cms
Enthusiast
Enthusiast

Seems like this should be quite easy but it has me stumped!  I dimension the rectangle 0.8 from the line, then want to centre it along the line. Tried using midpoint but it says "Failed to resolve. Please try revising dimensions or constraints".

 

I want to centre even if I change the rectangle size, so thought constraints are a good way to go rather than calculating the dimension...

 

Where am I going wrong? 

 

 

AAA.png

0 Likes
Accepted solutions (1)
1,323 Views
9 Replies
Replies (9)
Message 2 of 10

davebYYPCU
Consultant
Consultant
Accepted solution

Make the mid point of the short line, vertical under the midpoint of the long blue line.


select the Vertical constraint.

 

Hold shift, hover the mouse near the midpoint, when the snap point is displayed left click to select it.

Go to the other line hover, display, select.

Done.

Message 3 of 10

Marco.Takx
Mentor
Mentor

Hi @877cms,

 

Activate the Coincedent constraint.

Hold down the Shift and select the midpoint and then the line like the video in attachment

 

If my post answers your question Please use Accept as Solution & Kudos This helps everyone find answers more quickly!

 

Met vriendelijke groet | Kind regards | Mit freundlichem Gruß

Marco Takx
CAM Programmer & CAM Consultant



Message 4 of 10

877cms
Enthusiast
Enthusiast

Not sure if I explained what I want clearly so apologies! 

I want to move the rectangle like the attached below, so it stay 0.9m away from the line but is exactly centred along the top line in effect.

 

 

Screenshot 2024-01-06 132112.jpg

0 Likes
Message 5 of 10

TheCADWhisperer
Consultant
Consultant

@877cms 

Can you File>Export your *.f3d file to your local drive and then Attach it here to a Reply?

 

Simply add a Vertical constraint between the midpoints as suggested by @davebYYPCU in original Reply.

Done!

TheCADWhisperer_0-1704548254687.png

 

If that is difficult to understand, then -

Add a Construction Line midpoint to midpoint.

Now add a Vertical constraint to the Construction Line...

TheCADWhisperer_1-1704548346845.png

 

Message 6 of 10

877cms
Enthusiast
Enthusiast

Sure, this is an example sketch of exactly what I'm trying to do.

Just want to centre the rectangle along the 200mm line, while keeping the 50mm distance from it.

0 Likes
Message 7 of 10

TheCADWhisperer
Consultant
Consultant

@877cms 

See Attached...

 

What I did.

1. Click Vertical constraint

2. Hold Shift Key

3. Click midpoint of first line

4. Click midpoint of second line.

Done!

 

Message 8 of 10

877cms
Enthusiast
Enthusiast

Thank you @TheCADWhisperer I misunderstood @davebYYPCU solution, I was letting go of 'Shift' and not selecting the second midpoint. Thanks for pointing me back to that 🙂

It works!

Message 9 of 10

TheCADWhisperer
Consultant
Consultant

@877cms 

My preferred technique is actually to use the Construction Line.

This gives me a visual reference when I come back a year, a month, a week, heck at my age what I did yesterday when editing geometry.

I use more construction lines now than I did on the drawing board 40 years ago when my instructor would constantly admonish - don't erase your construction lines.

Message 10 of 10

877cms
Enthusiast
Enthusiast

I write a lot of comments in code for that very reason, so you have a good point there!

Thanks for pointing me back in the right direction 🙂

0 Likes