Center of a Rectangle

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
demackison
Posts: 67
Joined: Mon Nov 24, 2014 7:54 pm

Center of a Rectangle

Post by demackison »

Is there a way to constrain the center of a rectangle (or other symmetrical non-arc/circle)?
jmaustpc
Veteran
Posts: 11207
Joined: Tue Jul 26, 2011 6:28 am
Location: Australia

Re: Center of a Rectangle

Post by jmaustpc »

demackison wrote:Is there a way to constrain the center of a rectangle (or other symmetrical non-arc/circle)?
Are you asking about PartDesign/sketcher?

If so, use symmetry constraint with two diagonally opposed vertices.
demackison
Posts: 67
Joined: Mon Nov 24, 2014 7:54 pm

Re: Center of a Rectangle

Post by demackison »

jmaustpc wrote: Are you asking about PartDesign/sketcher?
Yes.
jmaustpc wrote:If so, use symmetry constraint with two diagonally opposed vertices.
I looked at http://www.freecadweb.org/wiki/index.ph ... _Symmetric and I don't see how to let the program know which of the three points is the center.
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Center of a Rectangle

Post by NormandC »

The third selected point will be considered the center.

From the command page you linked:
The documentation wrote:Alternatively it can constrain two points to be symmetric with respect to a third one.
jmaustpc
Veteran
Posts: 11207
Joined: Tue Jul 26, 2011 6:28 am
Location: Australia

Re: Center of a Rectangle

Post by jmaustpc »

if you put the mouse pointer over the toll it pops up a tool tip that tells you how to use the tool, as with the other tools. Are your tool tips not working?
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Center of a Rectangle

Post by NormandC »

I just remembered I recorded a quick video a year ago. Starting at 1:40 I'm adding a symmetric constraint between diagonally opposed filleted corners of a rectangle and the origin point.
http://youtu.be/w2HGxWmMr-A
cox
Posts: 971
Joined: Wed Nov 26, 2014 11:37 pm

Re: Center of a Rectangle

Post by cox »

While reading this post i tried some constraints on rectangles and I found some strange behavior.

In the attached file, select first the two most left vertices, then the lower line of the right most rectangle(or one of its vertices). After selecting symmetry constraint on these selections all geometry bunches up in a vertical line.

Could this be a bug?

OS: "Arch Linux"
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.15.4199 (Git)
Branch: master
Hash: 3904d0a8ee63b67979e9e71e61e423cfe331926a
Python version: 2.7.8
Qt version: 4.8.6
Coin version: 3.1.3
OCC version: 6.7.1
Attachments
centerconstr.fcstd
(3.12 KiB) Downloaded 75 times
Need help? Feel free to ask, but please read the guidelines first
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Center of a Rectangle

Post by NormandC »

I can't reproduce on the current latest release on Windows. The symmetric constraint gets added as expected.

OS: Windows 7
Word size: 64-bit
Version: 0.14.3700 (Git)
Branch: releases/FreeCAD-0-14
Hash: 32f5aae0a64333ec8d5d160dbc46e690510c8fe1
Python version: 2.7.6
Qt version: 4.8.5
Coin version: 4.0.0a
SoQt version: 1.6.0a
OCC version: 6.6.0

I will test on the Daily Build tonight.
User avatar
bejant
Veteran
Posts: 6075
Joined: Thu Jul 11, 2013 3:06 pm

Re: Center of a Rectangle

Post by bejant »

Works as expected for me using:

OS: Ubuntu 14.04.1 LTS
Word size of OS: 32-bit
Word size of FreeCAD: 32-bit
Version: 0.15.4236 (Git)
Branch: master
Hash: f5a4e680681f30bb9396f1968ec3f9f82d175837
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.7.1
cox
Posts: 971
Joined: Wed Nov 26, 2014 11:37 pm

Re: Center of a Rectangle

Post by cox »

Could you please post a file with the final constraint applied so i can test.
Need help? Feel free to ask, but please read the guidelines first
Post Reply