algo
This commit is contained in:
@@ -25,10 +25,8 @@ __title__ = "RebarCommands"
|
||||
__author__ = "Amritpal Singh"
|
||||
__url__ = "https://www.freecadweb.org"
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
import FreeCADGui, FreeCAD
|
||||
from PySide import QtGui, QtCore
|
||||
from PySide import QtCore
|
||||
from PySide.QtCore import QT_TRANSLATE_NOOP
|
||||
from PVPlantResources import DirIcons as DirIcons
|
||||
import os
|
||||
@@ -165,7 +163,6 @@ class CommandDivideArea:
|
||||
|
||||
@staticmethod
|
||||
def Activated():
|
||||
from Project.Area import PVPlantArea
|
||||
sel = FreeCADGui.Selection.getSelection()[0]
|
||||
|
||||
|
||||
@@ -210,7 +207,6 @@ class CommandFrameArea:
|
||||
|
||||
@staticmethod
|
||||
def Activated():
|
||||
from Project.Area import PVPlantArea
|
||||
sel = FreeCADGui.Selection.getSelection()
|
||||
makeFramedArea(None, sel)
|
||||
|
||||
@@ -443,7 +439,7 @@ class CommandTrench: # V1:
|
||||
@staticmethod
|
||||
def Activated():
|
||||
"""Execute when the command is called."""
|
||||
import PVPlantTrench
|
||||
from Civil import PVPlantTrench
|
||||
sel = FreeCADGui.Selection.getSelection()
|
||||
done = False
|
||||
|
||||
@@ -489,7 +485,7 @@ class CommandSemiAutomaticTrench: # V1:
|
||||
@staticmethod
|
||||
def Activated():
|
||||
"""Execute when the command is called."""
|
||||
import PVPlantTrench
|
||||
from Civil import PVPlantTrench
|
||||
semi = PVPlantTrench.semiAutomaticTrench()
|
||||
|
||||
|
||||
@@ -510,8 +506,8 @@ class CommandCalculateEarthworks:
|
||||
|
||||
@staticmethod
|
||||
def Activated():
|
||||
import PVPlantEarthworks
|
||||
TaskPanel = PVPlantEarthworks.EarthWorksTaskPanel()
|
||||
import PVPlantEarthWorks
|
||||
TaskPanel = PVPlantEarthWorks.EarthWorksTaskPanel()
|
||||
FreeCADGui.Control.showDialog(TaskPanel)
|
||||
|
||||
|
||||
@@ -646,6 +642,15 @@ if FreeCAD.GuiUp:
|
||||
FreeCADGui.addCommand('PVPlantAdjustToTerrain', PVPlantPlacement.CommandAdjustToTerrain())
|
||||
FreeCADGui.addCommand('PVPlantConvertTo', PVPlantPlacement.CommandConvert())
|
||||
|
||||
import hydro.hydrological as hydro
|
||||
FreeCADGui.addCommand('HydrologicalAnalysis', hydro.CommandHydrologicalAnalysis())
|
||||
|
||||
import Vegetation.PVPlantTreeGenerator as TreeGenerator
|
||||
FreeCADGui.addCommand('PVPlantTree', TreeGenerator.CommandTree())
|
||||
|
||||
import Project.GenerateExternalDocument as GED
|
||||
FreeCADGui.addCommand('newExternalDocument', GED.CommandGenerateExternalDocument())
|
||||
|
||||
projectlist = [ # "Reload",
|
||||
"PVPlantSite",
|
||||
"ProjectSetup",
|
||||
@@ -668,7 +673,11 @@ projectlist = [ # "Reload",
|
||||
# "PVPlantFoundation"
|
||||
# "GraphTerrainProfile",
|
||||
# "Trace",
|
||||
"Separator",
|
||||
'HydrologicalAnalysis',
|
||||
'newExternalDocument',
|
||||
]
|
||||
|
||||
pv_list = [
|
||||
# "RackType",
|
||||
# "PVPlantRackCheck",
|
||||
@@ -678,3 +687,5 @@ pv_list = [
|
||||
"PVPlantConvertTo",
|
||||
# "PVArea"
|
||||
]
|
||||
|
||||
objectlist = ['PVPlantTree',]
|
||||
|
||||
Reference in New Issue
Block a user