Constrain xy sketch to z sketch?

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
Mongrel_Shark
Posts: 133
Joined: Sat Oct 15, 2016 9:54 am
Location: Australia

Constrain xy sketch to z sketch?

Postby Mongrel_Shark » Sat Nov 26, 2016 10:21 pm

I have been working on this handle for a bit and have been making many changes to the design.

Every time I do its really time consuming to get everything lined up with the 15deg angle.
Is there some way I can anchor xy sketches to something in the z plane that I can change the angle on?
I have been eye balling constructions lines onto a vertical/yz sketch line, but its painful with more complex lofts or sweeps...


OS: Ubuntu 14.04.5 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6703 (Git)
Build type: None
Branch: releases/FreeCAD-0-16
Hash: 2ce5c8d2e3020d05005ed71f710e09e9aa561f40
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
User avatar
Willem
Posts: 1310
Joined: Fri Aug 12, 2016 3:27 pm
Location: Lisse, The Netherlands

Re: Constrain xy sketch to z sketch?

Postby Willem » Sat Nov 26, 2016 11:11 pm

Hi, you can create a new sketch, close it and change it's angle in the tree
Schermafdruk van 2016-11-27 00-05-30-800x800.png
Schermafdruk van 2016-11-27 00-05-30-800x800.png (148.59 KiB) Viewed 896 times
Attachments
15degrees.fcstd
(8.97 KiB) Downloaded 6 times
User avatar
Mongrel_Shark
Posts: 133
Joined: Sat Oct 15, 2016 9:54 am
Location: Australia

Re: Constrain xy sketch to z sketch?

Postby Mongrel_Shark » Sun Nov 27, 2016 2:00 am

Not quite what I'm looking for.

Seems my attachment didn't attach.

I have multiple x-y sketches that all need to be attached to a movable line in the z plane. So I don't have to manually re-adjust every one each time.

This version only has 3 sketches, but I would like to have finger grips which means more like 20-30 sketches for the loft or sweep.
Selection_014.png
Selection_014.png (11.47 KiB) Viewed 886 times
Selection_015.png
Selection_015.png (3.67 KiB) Viewed 886 times
Handlev5lower.fcstd
(33.71 KiB) Downloaded 9 times
User avatar
Willem
Posts: 1310
Joined: Fri Aug 12, 2016 3:27 pm
Location: Lisse, The Netherlands

Re: Constrain xy sketch to z sketch?

Postby Willem » Sun Nov 27, 2016 5:43 am

Hi, the vertical displacement should be in a spreadsheet. The horizontal displacement has to be calculated in the spreadsheet. I did this for sketch002, the top position and these dimensions have to be imported in the sketch

In your final design you have to work with named sketches and named dimensions. I think the best is to change the sketch so that the horizontal and vertical displacements are both defined in the sketch position and not in the sketch
Attachments
Handlev5_Willem.fcstd
(34.29 KiB) Downloaded 12 times
User avatar
Mongrel_Shark
Posts: 133
Joined: Sat Oct 15, 2016 9:54 am
Location: Australia

Re: Constrain xy sketch to z sketch?

Postby Mongrel_Shark » Sun Nov 27, 2016 10:44 am

I'm not sure I understand?

How would the spreadsheet help me change the angle and adjust all the sketches without changing the position of each sketch manually?
Say I want to change the angle to 20 deg?
Or if I want to add more sketches along the same line?
User avatar
Willem
Posts: 1310
Joined: Fri Aug 12, 2016 3:27 pm
Location: Lisse, The Netherlands

Re: Constrain xy sketch to z sketch?

Postby Willem » Sun Nov 27, 2016 12:24 pm

I think you should finally get a spreadsheet like the dummy I made. For change of the angle fill in one time the new tangent value and all other data change and if the values are connected to the sketches your model change too
Spreadsheet.png
Spreadsheet.png (246.85 KiB) Viewed 848 times
ulrich1a
Posts: 1920
Joined: Sun Jul 07, 2013 12:08 pm

Re: Constrain xy sketch to z sketch?

Postby ulrich1a » Sun Nov 27, 2016 3:49 pm

Mongrel_Shark wrote:I have multiple x-y sketches that all need to be attached to a movable line in the z plane. So I don't have to manually re-adjust every one each time.
It seems you need to have a look at FreeCAD 0.17. The requested functionality is there available. I made a quarter circle with the Part-workbench. Then I applied sketches to them with the mode 'normal to edge'.
There is a field in the data-view 'Map-Path' of each sketch, which allows to move the sketches along the edge.
I could change the placement of the circle and the sketches moved with it. Although it seems it did not work with "super-placement"

You need to be aware, that this FreeCAD-version is not stable and version changes may render your documents unloadable.

Ulrich
Attachments
Sketches_on_rail.fcstd
(6.56 KiB) Downloaded 14 times
sketch_on_rail_pic.png
sketch_on_rail_pic.png (27.06 KiB) Viewed 830 times