How to resize a rectangle edge only in one dimension? (PartDesign)

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!
User avatar
ceremcem
Posts: 211
Joined: Sun Jan 07, 2018 11:10 am

How to resize a rectangle edge only in one dimension? (PartDesign)

Postby ceremcem » Sat Aug 25, 2018 11:24 pm

When I move a rectangle edge with mouse, it also affects the other connected edges' positions, like so:

Image

I tried pressing and holding Ctrl or Shift like I do for drawing perpendicular line in Gimp, but they seem to have no effect.

How can I drag the lines only in perpendicular directions?
User avatar
DeepSOIC
Posts: 7810
Joined: Fri Aug 29, 2014 12:45 am
Location: Saint-Petersburg, Russia

Re: How to resize a rectangle edge only in one dimension? (PartDesign)

Postby DeepSOIC » Sun Aug 26, 2018 12:09 am

Use constraints.
Aligned your top side -> Vert Distance constraint to one of involved points -> adjust left side -> horz constraint to a corner -> ....

EDIT: you can also grab points. This moves less stuff all at once.
User avatar
NormandC
Posts: 18534
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: How to resize a rectangle edge only in one dimension? (PartDesign)

Postby NormandC » Sun Aug 26, 2018 4:55 am

ceremcem wrote:
Sat Aug 25, 2018 11:24 pm
I tried pressing and holding Ctrl or Shift like I do for drawing perpendicular line
That might be a good Sketcher enhancement request.
User avatar
ceremcem
Posts: 211
Joined: Sun Jan 07, 2018 11:10 am

Re: How to resize a rectangle edge only in one dimension? (PartDesign)

Postby ceremcem » Fri Aug 31, 2018 11:25 pm

DeepSOIC wrote:
Sun Aug 26, 2018 12:09 am
Use constraints.
Aligned your top side -> Vert Distance constraint to one of involved points -> adjust left side -> horz constraint to a corner -> ....

EDIT: you can also grab points. This moves less stuff all at once.
Grabbing points is helpful, thank you. (I was going to say "Grabbing points is helpful when you can grab one, but it seems it's not always possible: [gif here]" but I didn't come across with that case in these days)
NormandC wrote:
Sun Aug 26, 2018 4:55 am
That might be a good Sketcher enhancement request.
https://www.freecadweb.org/tracker/view.php?id=3576
Last edited by ceremcem on Fri Aug 31, 2018 11:37 pm, edited 1 time in total.
User avatar
DeepSOIC
Posts: 7810
Joined: Fri Aug 29, 2014 12:45 am
Location: Saint-Petersburg, Russia

Re: How to resize a rectangle edge only in one dimension? (PartDesign)

Postby DeepSOIC » Fri Aug 31, 2018 11:29 pm

ceremcem wrote:
Fri Aug 31, 2018 11:25 pm
(I was going to say "Grabbing points is helpful when you can grab one, but it seems it's not always possible: [gif here]" but I didn't come across with that case in these days)
On the gif you posted, it looks like you are editing a sketch from behind. Then, indeed, points are not grabbable. It is because points are raised above the sketch in a particular direction (maybe some day, that direction will be towards camera rather than along sketch plane normal).
User avatar
ceremcem
Posts: 211
Joined: Sun Jan 07, 2018 11:10 am

Re: How to resize a rectangle edge only in one dimension? (PartDesign)

Postby ceremcem » Fri Aug 31, 2018 11:39 pm

DeepSOIC wrote:
Fri Aug 31, 2018 11:29 pm
On the gif you posted, it looks like you are editing a sketch from behind. Then, indeed, points are not grabbable.
A-ha! Thanks for this additional tip.
User avatar
Kunda1
Posts: 8417
Joined: Thu Jan 05, 2017 9:03 pm

Re: How to resize a rectangle edge only in one dimension? (PartDesign)

Postby Kunda1 » Sat Sep 01, 2018 1:20 pm

DeepSOIC wrote:
Fri Aug 31, 2018 11:29 pm
On the gif you posted, it looks like you are editing a sketch from behind. Then, indeed, points are not grabbable. It is because points are raised above the sketch in a particular direction (maybe some day, that direction will be towards camera rather than along sketch plane normal).
Is there a feature ticket opened for that as well? That seems like a useful ability.
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
NormandC
Posts: 18534
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: How to resize a rectangle edge only in one dimension? (PartDesign)

Postby NormandC » Sat Sep 01, 2018 3:41 pm

I edited the summary and description to make it clearer.

Also, "PartDesign" was set as project, but this is about the Sketcher, so I moved it to the appropriate project.

Thanks for reporting.
chrisb
Posts: 27983
Joined: Tue Mar 17, 2015 9:14 am

Re: How to resize a rectangle edge only in one dimension? (PartDesign)

Postby chrisb » Sat Sep 01, 2018 4:04 pm

Polyline got during the last Sketcher enhancement period a possibility for arc mode to continue by snapped degrees of multiples of 45°. This is done by pressing the Ctrl key. Here it is analogous, so I would vote for the Ctrl key as well.
User avatar
ceremcem
Posts: 211
Joined: Sun Jan 07, 2018 11:10 am

Re: How to resize a rectangle edge only in one dimension? (PartDesign)

Postby ceremcem » Sat Sep 01, 2018 4:08 pm

NormandC wrote:
Sat Sep 01, 2018 3:41 pm
I edited the summary and description to make it clearer.

Also, "PartDesign" was set as project, but this is about the Sketcher, so I moved it to the appropriate project.

Thanks for reporting.
Thank you, it's very kind to let me know.