本文整理汇总了Python中Base.changeStage方法的典型用法代码示例。如果您正苦于以下问题:Python Base.changeStage方法的具体用法?Python Base.changeStage怎么用?Python Base.changeStage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Base
的用法示例。
在下文中一共展示了Base.changeStage方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Activated
# 需要导入模块: import Base [as 别名]
# 或者: from Base import changeStage [as 别名]
def Activated(self, name="None"):
FreeCAD.Console.PrintMessage( 'Creator activing\n')
if FreeCAD.activeDDACommand:
FreeCAD.activeDDACommand.finish()
self.doc = FreeCAD.ActiveDocument
self.view = FreeCADGui.ActiveDocument.ActiveView
import Base
Base.changeStage('DC')
# activate DC Panel
global __currentDDAPanel__
if __currentDDAPanel__ != None :
__currentDDAPanel__.hide()
__currentDDAPanel__ = self.ui
__currentDDAPanel__.show()
self.featureName = name
if not self.doc:
FreeCAD.Console.PrintMessage( Base.translate('DDA_DC','FreeCAD.ActiveDocument get failed\n'))
self.finish()
else:
FreeCAD.activeDDACommand = self # FreeCAD.activeDDACommand 在不同的时间会接收不同的命令
self.ui.show()
示例2: Activated
# 需要导入模块: import Base [as 别名]
# 或者: from Base import changeStage [as 别名]
def Activated(self):
from Base import __currentProjectPath__
Base.changeStage('PreDL')
FreeCADGui.runCommand('DDA_LoadDLInputData')
graph = DLInputGraph()
graph.showGraph4File()
FreeCADGui.runCommand('DDA_ViewFitAll')
示例3: Activated
# 需要导入模块: import Base [as 别名]
# 或者: from Base import changeStage [as 别名]
def Activated(self):
import FreeCAD
if FreeCAD.activeDDACommand:
FreeCAD.activeDDACommand.finish()
import Base , os
filename = os.path.join(Base.__currentProjectPath__,'data.dg')
if not os.path.isfile(filename):
Base.showErrorMessageBox('FileNotFound'\
, 'File \'data.dg\' not found at project path')
self.Deactivated()
return
import Base
Base.changeStage('DC')
FreeCADGui.runCommand('DDA_DisplayDFInputGraph')
FreeCADGui.runCommand("Std_ViewFitAll")
if not self.__ui:
self.initUi(filename)
self.__ui.show()