Request, sketcher: set all constraints automatically for b-spline

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Post Reply
freecc
Posts: 158
Joined: Wed Feb 21, 2018 4:17 pm

Request, sketcher: set all constraints automatically for b-spline

Post by freecc »

You draw a sketch and you want it to be where you draw it, is it not possible to just set every point relative to origo automatically?

For B-spline it is just a set of x,y constraints.
chrisb
Veteran
Posts: 54288
Joined: Tue Mar 17, 2015 9:14 am

Re: Request, sketcher: set all constraints automatically for b-spline

Post by chrisb »

The block constraint Image was made especially for this use case.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
freecc
Posts: 158
Joined: Wed Feb 21, 2018 4:17 pm

Re: Request, sketcher: set all constraints automatically for b-spline

Post by freecc »

chrisb wrote: Fri Dec 14, 2018 10:27 pm The block constraint Image was made especially for this use case.
incredible improvement!
thanks for helping!
chrisb
Veteran
Posts: 54288
Joined: Tue Mar 17, 2015 9:14 am

Re: Request, sketcher: set all constraints automatically for b-spline

Post by chrisb »

Thanks to Abdullah, who implemented this.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
freecc
Posts: 158
Joined: Wed Feb 21, 2018 4:17 pm

Re: Request, sketcher: set all constraints automatically for b-spline

Post by freecc »

chrisb wrote: Sat Dec 15, 2018 6:37 pm Thanks to Abdullah, who implemented this.
maybe my English is bad but "block constraint" isn't clear. "as is constraint", or "fix position" or something like that is more telling
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: Request, sketcher: set all constraints automatically for b-spline

Post by GeneFC »

freecc wrote: Sat Dec 15, 2018 11:30 pm maybe my English is bad but "block constraint" isn't clear.
I agree with you.

However, this discussion started about one year ago, https://forum.freecadweb.org/viewtopic.php?f=10&t=25976, and the name is now pretty well established by many users.

Gene
freecc
Posts: 158
Joined: Wed Feb 21, 2018 4:17 pm

Re: Request, sketcher: set all constraints automatically for b-spline

Post by freecc »

I am having problem with this function,

I have a b-spline, and polyline. When i press block constraint the b-spline disconnects from the polyline and i can't reconnect it.

sketch 011, press block constraint on the b-spline and see for yourself:
Attachments
busstop8.fcstd
(553.42 KiB) Downloaded 29 times
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: Request, sketcher: set all constraints automatically for b-spline

Post by GeneFC »

Your sketch has errors and conflicting constraints. When I cleaned the sketch I had no problem connecting the polyline and the b-spline.

I highly recommend switching to FC version 0.18. All of the sketch errors were immediately flagged when I opened your sketches.

Gene
freecc
Posts: 158
Joined: Wed Feb 21, 2018 4:17 pm

Re: Request, sketcher: set all constraints automatically for b-spline

Post by freecc »

GeneFC wrote: Sun Dec 16, 2018 8:38 pm Your sketch has errors and conflicting constraints. When I cleaned the sketch I had no problem connecting the polyline and the b-spline.

I highly recommend switching to FC version 0.18. All of the sketch errors were immediately flagged when I opened your sketches.

Gene
thanks for helping!
Post Reply