Moving objects to Std Part so that their global coordinates do not change?

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!
Post Reply
hko
Posts: 106
Joined: Thu Apr 23, 2020 10:44 pm

Moving objects to Std Part so that their global coordinates do not change?

Post by hko »

Let's have an example to clarify:

1. Create a draft rectangle on xy plane and set its placement to [1m, 1m, 0m]
2. Create an Std Part and set its placement to [1m, 1m, 0m]
3. Drag and drop the created rectangle to the created std part.
4. Observe that the rectangle is now at global coordinates [2m, 2m, 0m]

I would like the rectangle to stay in its original global coordinates which would mean that its placement would have to be changed to [0m, 0m, 0m]. I can of course do that manually, but if I have several objects that I'm moving to an std part, I'd rather have FreeCAD do that for me. Is that possible somehow?

Code: Select all

OS: Ubuntu 20.04.5 LTS (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: recent master, see hash
Build type: Debug
Branch: master
Hash: c23ee7ad88433a0f00e84afae0a62fe738be0c09
Python 3.8.10, Qt 5.12.8, Coin 4.0.0, Vtk 7.1.1, OCC 7.3.0
Locale: English/United States (en_US)
Installed mods: 
  * 3DfindIT 1.2.0
  * Render 2022.3.0
  * BIM 2021.12.0
  * Reinforcement
  * Manipulator 1.4.9
  * Assembly4.backup1662941442.2770898
  * parts_library
  * Assembly4 0.12.4
  * fasteners 0.4.24
  * dodo 1.0.0
User avatar
thomas-neemann
Veteran
Posts: 11921
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: Moving objects to Std Part so that their global coordinates do not change?

Post by thomas-neemann »

hko wrote: Sun Nov 27, 2022 4:24 am ...
I would do it this way

https://www.youtube.com/watch?v=p361poZKoSs

phpBB [video]
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
User avatar
easyw-fc
Veteran
Posts: 3633
Joined: Thu Jul 09, 2015 9:34 am

Re: Moving objects to Std Part so that their global coordinates do not change?

Post by easyw-fc »

hko wrote: Sun Nov 27, 2022 4:24 am Let's have an example to clarify:

1. Create a draft rectangle on xy plane and set its placement to [1m, 1m, 0m]
2. Create an Std Part and set its placement to [1m, 1m, 0m]
3. Drag and drop the created rectangle to the created std part.
4. Observe that the rectangle is now at global coordinates [2m, 2m, 0m]

I would like the rectangle to stay in its original global coordinates which would mean that its placement would have to be changed to [0m, 0m, 0m]. I can of course do that manually, but if I have several objects that I'm moving to an std part, I'd rather have FreeCAD do that for me. Is that possible somehow?
In kicadStepUp WB there are two commands to move in and out an object to from a Part container, keeping its position. They are placed in Helpers toolbar (with '+' and ’-’)
-
IMG_20221127_082049.jpg
IMG_20221127_082049.jpg (142.87 KiB) Viewed 347 times
hko
Posts: 106
Joined: Thu Apr 23, 2020 10:44 pm

Re: Moving objects to Std Part so that their global coordinates do not change?

Post by hko »

thomas-neemann wrote: Sun Nov 27, 2022 6:06 am I would do it this way
Thanks, that is exactly what I was looking for.
Post Reply