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

@@ -651,6 +651,32 @@ if FreeCAD.GuiUp:
import Project.GenerateExternalDocument as GED
FreeCADGui.addCommand('newExternalDocument', GED.CommandGenerateExternalDocument())
from Mechanical.Frame import PVPlantFrame
class CommandRackGroup:
def GetCommands(self):
return tuple(['PVPlantFixedRack',
'PVPlantTrackerSetup',
'PVPlantTracker'
])
def GetResources(self):
return {'MenuText': QT_TRANSLATE_NOOP("", 'Rack Types'),
'ToolTip': QT_TRANSLATE_NOOP("", 'Rack Types')
}
def IsActive(self):
return not FreeCAD.ActiveDocument is None
FreeCADGui.addCommand('PVPlantFixedRack', PVPlantFrame.CommandFixedRack())
FreeCADGui.addCommand('PVPlantTrackerSetup', PVPlantFrame.CommandTrackerSetup())
FreeCADGui.addCommand('PVPlantTracker', PVPlantFrame.CommandTracker())
FreeCADGui.addCommand('RackType', CommandRackGroup())
import PVPlantFence
FreeCADGui.addCommand('PVPlantFenceGroup', PVPlantFence.CommandFenceGroup())
projectlist = [ # "Reload",
"PVPlantSite",
"ProjectSetup",
@@ -678,14 +704,12 @@ projectlist = [ # "Reload",
'newExternalDocument',
]
pv_list = [
# "RackType",
# "PVPlantRackCheck",
# "Separator",
pv_mechanical = [
"RackType",
"PVPlantPlacement",
"PVPlantAdjustToTerrain",
"PVPlantConvertTo",
# "PVArea"
]
objectlist = ['PVPlantTree',]
objectlist = ['PVPlantTree',
'PVPlantFence',]