Hey Guys,
i want to measure the diameter of a propeller over the python interpreter. Because i dont have a reference point for the propeller tips, i cant measure the diameter directly with the measuring Tool of the Part Module. So my idea was to calculate the length of the BoundaryBox of the propeller for a rotation of 120 degrees in discreet angles. The maximum length i get should help calculating the approximated diameter.
But i get into a problem:
First of all i activate the boundary box of the imported step over
Code: Select all
propeller = FreeCADGui.getDocument(".....").getObject("....")
propeller.BoundaryBox = 1
Now i want to get the length information from the boundarybox and i go with:
Code: Select all
PropellerDiameter = FreeCADGui.getDocument("...").getObject("..").getBoundingBox().YLength
PropellerDiameter = FreeCADGui.getDocument("...").getObject("..").getBoundingBox().ZLength
Code: Select all
Gui.runCommand('Std_SelBoundingBox',1)
It looks like i get the length of the green boundary box. What do i do wrong? I would be very grateful for any help .