Offsetting sketch to global planes.

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!
edwilliams16
Veteran
Posts: 3108
Joined: Thu Sep 24, 2020 10:31 pm
Location: Hawaii
Contact:

Offsetting sketch to global planes.

Post by edwilliams16 »

  • Start a new file
  • Sketcher|Sketch|Create sketch| XZ_Plane
  • Close sketch
I'd like to offset this sketch. Changing the Sketch's Attachment Offset has no effect - presumably because at this point Map_Mode is deactivated and there is no Support.
But if I click on Support, there's nothing to attach to. Likewise MapMode wants me to pick references, which at this point don't exist.

I have work-arounds, but is there really no direct way to attach a sketch to the global coordinate system? This has been bugging me for a while.
chrisb
Veteran
Posts: 53930
Joined: Tue Mar 17, 2015 9:14 am

Re: Offsetting sketch to global planes.

Post by chrisb »

edwilliams16 wrote: Thu Dec 01, 2022 1:00 am I have work-arounds, but is there really no direct way to attach a sketch to the global coordinate system? This has been bugging me for a while.
You only need to see it differently. A sketch being attached to the global coordinate system is controlled by its placement and not by its attachment offset. That's sensible, because the global coordinate system can itself not be moved.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
edwilliams16
Veteran
Posts: 3108
Joined: Thu Sep 24, 2020 10:31 pm
Location: Hawaii
Contact:

Re: Offsetting sketch to global planes.

Post by edwilliams16 »

chrisb wrote: Thu Dec 01, 2022 1:13 am You only need to see it differently. A sketch being attached to the global coordinate system is controlled by its placement and not by its attachment offset. That's sensible, because the global coordinate system can itself not be moved.
Only if I create the sketch on the XY_Plane. If I try to offset from the XZ_Plane, I have to do the mental gymnastics of what the compounded placement looks like, since the Placement already has a rotation.
jmanatee
Posts: 14
Joined: Fri Nov 25, 2022 5:53 pm

Re: Offsetting sketch to global planes.

Post by jmanatee »

After creating sketch,
Close it,
select it,
click ... (three dots) on support (on data tab)
click clear,
click ok

Under Base + Placement
+Position etc...
edwilliams16
Veteran
Posts: 3108
Joined: Thu Sep 24, 2020 10:31 pm
Location: Hawaii
Contact:

Re: Offsetting sketch to global planes.

Post by edwilliams16 »

When I do that the attachment is ignored - but not zeroed out. Placement isn't updated. Check the coordinates of the center vertex. It shows as origin.
Screen Shot 2022-11-30 at 5.12.10 PM.png
Screen Shot 2022-11-30 at 5.12.10 PM.png (50.59 KiB) Viewed 780 times
Attachments
globalAttach.FCStd
(3.6 KiB) Downloaded 12 times
freedman
Veteran
Posts: 3441
Joined: Thu Mar 22, 2018 3:02 am
Location: Washington State, USA

Re: Offsetting sketch to global planes.

Post by freedman »

Ed, have you read the pink bar. Just kidding....

We really need that info for this, if I do what you say my placement is updated as it should be i.e. change the AttachmentOffset Z Position 10mm and the Placement follows suite just as it should, 10mm.

My mapmode is Flatface, what happened to yours?????

I think your app. is broken.

Win 10 ver. .2130486
edwilliams16
Veteran
Posts: 3108
Joined: Thu Sep 24, 2020 10:31 pm
Location: Hawaii
Contact:

Re: Offsetting sketch to global planes.

Post by edwilliams16 »

freedman wrote: Thu Dec 01, 2022 6:15 am Ed, have you read the pink bar. Just

My mapmode is Flatface, what happened to yours?????

I think your app. is broken.

Win 10 ver. .2130486
Flat face to what? The whole point of my post is that a freshly created Sketch has nothing to attach to.
freedman
Veteran
Posts: 3441
Joined: Thu Mar 22, 2018 3:02 am
Location: Washington State, USA

Re: Offsetting sketch to global planes.

Post by freedman »

Isn't that the point of selecting a Plane, the mapmode is flatface to the plane.
freedman
Veteran
Posts: 3441
Joined: Thu Mar 22, 2018 3:02 am
Location: Washington State, USA

Re: Offsetting sketch to global planes.

Post by freedman »

Here is a pic of the combo view and I have selected the XY Plane, the Properties panel has Role,. Is yours the same? I see it change for every plane selected.
Attachments
plane1.png
plane1.png (100.6 KiB) Viewed 715 times
edwilliams16
Veteran
Posts: 3108
Joined: Thu Sep 24, 2020 10:31 pm
Location: Hawaii
Contact:

Re: Offsetting sketch to global planes.

Post by edwilliams16 »

Are you in Part Design? I created the sketch in Sketcher. Did you download my file? @freedman

EDIT

Code: Select all

OS: macOS High Sierra (10.13)
Word size of FreeCAD: 64-bit
Version: 0.21.30868 (Git)
Build type: Release
Branch: master
Hash: b3372a52054fc34c243ac508ce67717b1476f2a9
Python 3.10.6, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: C/Default (C)
Installed mods: 
  * CurvedShapes 1.0.4
  * Curves 0.6.0
  * Curves.backup1667610597.862062 0.5.12 (Disabled)
  * DynamicData 2.46.0
  * fasteners 0.4.23
  * fcgear 1.0.0
  * GDML 1.8.0
  * Help 1.0.3
  * lattice2 1.0.0
  * MeshRemodel 1.8919.0
  * offline-documentation 1.0.0-alpha
  * offline-documentation.backup1668887250.997013 1.0.0-alpha (Disabled)
  * Pyramids-and-Polyhedrons
  * QuickMeasure-main
  * toSketch 1.0.1
  * Trails 2022.1.0
I've never seen a property called Role and my sketch doesn't possess that property.
Post Reply