This commit is contained in:
2025-06-15 23:10:17 +02:00
parent 5dd8869caf
commit 74bf60101c
16 changed files with 426 additions and 2577 deletions

View File

@@ -845,7 +845,7 @@ class _FenceTaskPanel:
# Commands ---------------------------------------------------------------------------------
class _CommandPVPlantFence:
class CommandPVPlantFence:
"the PVPlant Fence command definition"
def GetResources(self):
@@ -882,14 +882,7 @@ if FreeCAD.GuiUp:
not (FreeCAD.ActiveDocument.getObject("Terrain") is None))
import PVPlantFenceGate
FreeCADGui.addCommand('PVPlantFence', _CommandPVPlantFence())
FreeCADGui.addCommand('PVPlantFence', CommandPVPlantFence())
FreeCADGui.addCommand('PVPlantGate', PVPlantFenceGate._CommandPVPlantGate())
FreeCADGui.addCommand('PVPlantFencePost', PVPlantFencePost._CommandFencePost())
FreeCADGui.addCommand('PVPlantFenceGroup', CommandFenceGroup())
def movep(obj):
pl = obj.Shape.BoundBox.Center
points = []
for ind in range(len(obj.Shape.Vertexes)):
points.append(obj.Shape.Vertexes[ind].Point - pl)
Draft.makeWire(points)
#FreeCADGui.addCommand('PVPlantFenceGroup', CommandFenceGroup())