Curves workbench

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!
drmacro
Veteran
Posts: 8865
Joined: Sun Mar 02, 2014 4:35 pm

Re: Curves workbench

Post by drmacro »

It appears to be selection order dependant. I must have not selected in order the first time.
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
chrisb
Veteran
Posts: 53920
Joined: Tue Mar 17, 2015 9:14 am

Re: Curves workbench

Post by chrisb »

I have problems with MapSketchOnSurface. I have simplified the issue to a cylinder surface and a rectangle to be mapped to it and still cannot get it working. This is what I have done:

- created this sketch, the size of the enclosing construction rectangle doesn't seem to matter
SnipScreenshot-f463e0.png
SnipScreenshot-f463e0.png (11.82 KiB) Viewed 1079 times
- created a cylinder in Part workbench

- Attached the sketch to the the cylinder surface (Face1), tried MapModes Inertia 2-3, Tangent to surface (with an additional point), and even detached

- selected the sketch and applied MapSketchOnSurface.

-> The sketch is hidden, but doesn't appear on the surface. Report view shows this message:

Code: Select all

11:27:39  Sketch bounds = (-4.5, 4.5, -4.5, 4.5)
11:27:39  Target face bounds = (0.0, 6.283185307179586, -10.0, 0.0)
11:27:39  mapping shape #  1
11:27:39  Total : 0 shapes
Moving the sketch around didn't help. I moved it outside and inside of the cylinder, turned it to be parallel to the seam line of the cylinder, but to no avail.

I'm not sure if it is the same problem as shown here. In the real project, the sketch to be mapped is not at all trivial, so I would like to avoid to do it all from scratch again.

Any hint is appreciated.

Code: Select all

OS: macOS 10.16
Word size of FreeCAD: 64-bit
Version: 0.21.0.31917 (Git)
Build type: Release
Branch: master
Hash: 4639283b459f9ff9093e289908cc003db8745b82
Python 3.10.9, Qt 5.15.6, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: C/Default (C)
Installed mods: 
  * FC_SU
  * DynamicData 2.46.0
  * freecad.gears 1.0.0
  * FeedsAndSpeeds 0.5.0
  * dxf-library
  * fcgear 1.0.0
  * fasteners 0.4.54
  * sheetmetal 0.2.61
  * ExplodedAssembly
  * Curves 0.6.8
Attachments
NoSketchOnSurface.FCStd
(6.03 KiB) Downloaded 21 times
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
hammax
Veteran
Posts: 1985
Joined: Thu Jan 19, 2017 5:03 pm
Location: Ammersee DE

Re: Curves workbench

Post by hammax »

... any hint:
I found, that creating a Sketcher-BSpline inside an empty Sketch from Sketch on Surface, didn't work.
So I first designed the profile inside an old/unbound Sketch_on_Surface frame.
And introduced it into an empty Sketch_on_Surface.
???
Attachments
Prop.PNG
Prop.PNG (21.76 KiB) Viewed 1043 times
Prop.FCStd
FC.20.1
(27.02 KiB) Downloaded 21 times
Last edited by hammax on Tue Feb 28, 2023 1:44 pm, edited 1 time in total.
User avatar
Chris_G
Veteran
Posts: 2579
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

Re: Curves workbench

Post by Chris_G »

chrisb wrote: Tue Feb 28, 2023 10:34 am I have problems with MapSketchOnSurface. I have simplified the issue to a cylinder surface and a rectangle to be mapped to it and still cannot get it working...
Is your Sketch Placement at Z=0.0 ?
I just realized it seem to fail otherwise.
chrisb
Veteran
Posts: 53920
Joined: Tue Mar 17, 2015 9:14 am

Re: Curves workbench

Post by chrisb »

Chris_G wrote: Tue Feb 28, 2023 1:30 pm Is your Sketch Placement at Z=0.0 ?
I just realized it seem to fail otherwise.
Oops, beginner mistake: forgot to attach the file and added it now above. The Sketch has indeed a z-Placement ≠ 0. This comes quite natural when attaching the sketch to a face:
The sketch is usually attached to a curved face and the default mode is Inertia2-3. This leads to a placement with z≠0. And even when deactivating the z stays at the value it had before.

If you agree, I would change the wiki for an existing sketch from
1. Attach the sketch to the target face.
to


1. Attach the sketch to the target face:
1a. In the attachment dialog selet the face
1b. Set the mode to Deactivated while leaving the face as the first reference
1c. Close the Attachment dialog
1d. Set Placement.z=0
Attachments
NoSketchOnSurface.FCStd
(6.03 KiB) Downloaded 17 times
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
Chris_G
Veteran
Posts: 2579
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

Re: Curves workbench

Post by Chris_G »

chrisb wrote: Tue Feb 28, 2023 2:40 pm If you agree, I would change the wiki ...
No problem. Thank you.
The workflow of this tool is really bad.
I hope I can find time to refactor it, and maybe make it PD-friendly to create pockets and pads automatically.
chrisb
Veteran
Posts: 53920
Joined: Tue Mar 17, 2015 9:14 am

Re: Curves workbench

Post by chrisb »

I have changed the wiki. I hope to get along well with it, when I need it next time.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
chrisb
Veteran
Posts: 53920
Joined: Tue Mar 17, 2015 9:14 am

Re: Curves workbench

Post by chrisb »

chrisb wrote: Tue Feb 28, 2023 6:23 pm I have changed the wiki. I hope to get along well with it, when I need it next time.
Chris_G wrote: Tue Feb 28, 2023 2:52 pm I hope I can find time to refactor it, and maybe make it PD-friendly to create pockets and pads automatically.
Great tools don't have to have a cumbersome workflow, but they are allowed to :D . It would be great though to have this tool as a feature in Sketcher - additive and subtractive of course :mrgreen: .
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
hammax
Veteran
Posts: 1985
Joined: Thu Jan 19, 2017 5:03 pm
Location: Ammersee DE

Re: Curves workbench

Post by hammax »

... what to do with editing such sketches when containing Sketcher BSplines?
viewtopic.php?p=664299#p664067
In the attached sketch e.g. BSpline is "editable", but not with the usual control point features.
They are hidden or gone. What even, when the "newest features" come?
The sketch now must be edited outside Sketch_on_Surface and it's duplicate inserted again.
Using a sketch Link or Clone doesn't work. ???

Prop_2.PNG
Prop_2.PNG (36.93 KiB) Viewed 817 times
Attachments
Prop_2.FCStd
FC.20.1
(20.77 KiB) Downloaded 15 times
chrisb
Veteran
Posts: 53920
Joined: Tue Mar 17, 2015 9:14 am

Re: Curves workbench

Post by chrisb »

hammax wrote: Wed Mar 01, 2023 7:33 am In the attached sketch e.g. BSpline is "editable", but not with the usual control point features.
This is not a Curves but rather a Sketcher issue; well, it's not really an issue. You have to use ShowInternalGeometry to show the control points.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Post Reply