Hallo Zusammen,
wenn ich in der Part Workbench z.b einen Würfel erstelle,liegt der Nullpunkt des Würfels immer an der linken Kante. Gibt es die Möglichkeit den Nullpunkt des Würfeld der X und Y Ebene in die Mitte zu versetzen?
Danke und Gruß Markus
Frage zum Nullpunkt in der Part Workbench
Re: Frage zum Nullpunkt in der Part Workbench
Hallo und willkommen.
Im DatenTab des Würfels Placement und Position aufklappen.
Bei x rechts auf das Funktionssymbol klicken und -Length/2 eingeben.
Analog für y und z verfahren.
Im DatenTab des Würfels Placement und Position aufklappen.
Bei x rechts auf das Funktionssymbol klicken und -Length/2 eingeben.
Analog für y und z verfahren.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Frage zum Nullpunkt in der Part Workbench
hi
try this snippet :
select your object run the macro (result the object is positioned in BoundBox.Center)
mario
try this snippet :
select your object run the macro (result the object is positioned in BoundBox.Center)
Code: Select all
#18/10/2019
import FreeCAD
from FreeCAD import Base
try:
sel = FreeCADGui.Selection.getSelection()
sel[0].Placement.Base = FreeCAD.Vector(0,0,0)
sel[0].Placement.Base = -sel[0].Shape.BoundBox.Center
except Exception:
FreeCAD.Console.PrintError("Select your object" + "\n")
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Topological_data_scripting.
My macros on Gist.github here complete macros Wiki and forum.
My macros on Gist.github here complete macros Wiki and forum.