Page 15 of 18

Re: Manipulator WorkBench

Posted: Thu Feb 11, 2021 1:05 am
by dferbas
Thanks for immediate responses.
Sorry for a FreeCAD and Python newbie issue. I was confused from the Python console output, where .getObject("...") is printed, using an objet label. This does not work from Python code, .getObjectsByLabel("...")[0] must be used instead. Finally I found Code snippets in the FC wiki and realized, how to access objects.

Probably I should try the pre 0.19, if this is fixed in it.

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.4 (GitTag)
Build type: Release
Branch: releases/FreeCAD-0-18
Hash: 980bf9060e28555fecd9e3462f68ca74007b70f8
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Czech/CzechRepublic (cs_CZ)

Re: Manipulator WorkBench

Posted: Thu Feb 11, 2021 6:38 pm
by onekk
In FreeCAD there are two way to get an Object, by Name or by Label

Name is unique and is created when an objects is created, but the name must be unique and some magics are done when creating a Name, spaces, and some other characters are translated to underscores, so even when creating using a script it is not ever true that your name string is the real object.Name.

If there are another name equal the .Name is added by 0001, 0002, and so on.

Label is not unique, (they could be made unique setting an options somewhere, but at moment I don't remeber where), so a list is returned even if there are only one object that match the query .getObjectbyLabel()

0.19 will be stable in some days, (feature freeze and bug hunting is under active work at this moment)

Hope that this could help.

Regards

Carlo D.

Re: Manipulator WorkBench

Posted: Thu Feb 11, 2021 8:16 pm
by easyw-fc
this discussion is deviating toward a python one more than related to Manipulator.. would a moderator split it please?

Re: Manipulator WorkBench

Posted: Thu Feb 25, 2021 7:57 pm
by Kunda1
easyw-fc wrote: Thu Feb 11, 2021 8:16 pm this discussion is deviating toward a python one more than related to Manipulator.. would a moderator split it please?
Where do i split from? and what should the new topic be called?

Re: Manipulator WorkBench

Posted: Sat Feb 27, 2021 9:19 pm
by Vincent B
Hi,
Could be useful to see the plane name on the RefPlaneplane.
... on any datum plane as well. :D

Re: Manipulator WorkBench

Posted: Fri Mar 19, 2021 2:44 pm
by RatonLaveur
Oh my...you just visually described everything I've ever dreamed of for a datum plane...is that a mockup or a true current function?

Re: Manipulator WorkBench

Posted: Fri Mar 19, 2021 5:01 pm
by Vincent B
just a ShapeString on the plane. :D

Re: Manipulator WorkBench

Posted: Thu Mar 25, 2021 11:30 pm
by RatonLaveur
I'm more mesmerized by the Coordinate system although the shapestring really brings the bread home!

https://forum.freecadweb.org/viewtopic. ... on#p469998

Re: Manipulator WorkBench

Posted: Sat Jun 05, 2021 5:25 pm
by manos
chrisb wrote: Tue Feb 09, 2021 9:15 am .... If you want to move certain objects together, put them in a common Part container and move that.
I have a part-container with two bodies inside. Is there any way to move one body only using Manipulator?
Watching the "Manipulator-WB-Mover-with-App_Part&Body.gif" seems possible .

Re: Manipulator WorkBench

Posted: Sun Jun 06, 2021 1:31 pm
by easyw-fc
manos wrote: Sat Jun 05, 2021 5:25 pm I have a part-container with two bodies inside. Is there any way to move one body only using Manipulator?
Watching the "Manipulator-WB-Mover-with-App_Part&Body.gif" seems possible .
Simply de-select App::Part hierarchy checkbox
moving-inside-Part.png
moving-inside-Part.png (51.26 KiB) Viewed 3913 times