from abaqusGui import *
from abaqusConstants import ALL
import osutils, os
###########################################################################
# Class definition
###########################################################################
class Create3DSets_plugin(AFXForm):
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
def __init__(self, owner):
# Construct the base class.
#
AFXForm.__init__(self, owner)
self.radioButtonGroups = {}
self.cmd = AFXGuiCommand(mode=self, method='createsets',
objectName='case_set2', registerQuery=False)
pickedDefault = ''
self.xminKw = AFXFloatKeyword(self.cmd, 'xmin', True)
self.xmaxKw = AFXFloatKeyword(self.cmd, 'xmax', True)
self.yminKw = AFXFloatKeyword(self.cmd, 'ymin', True)
self.ymaxKw = AFXFloatKeyword(self.cmd, 'ymax', True)
self.zminKw = AFXFloatKeyword(self.cmd, 'zmin', True)
self.zmaxKw = AFXFloatKeyword(self.cmd, 'zmax', True)
self.eNameKw = AFXStringKeyword(self.cmd, 'eName', True, '')
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
def getFirstDialog(self):
import create3DSetsDB
return create3DSetsDB.Create3DSetsDB(self)
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
def doCustomChecks(self):
# Try to set the appropriate radio button on. If the user did
# not specify any buttons to be on, do nothing.
#
for kw1,kw2,d in self.radioButtonGroups.values():
try:
value = d[ kw1.getValue() ]
kw2.setValue(value)
except:
pass
return True
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
def okToCancel(self):
# No need to close the dialog when a file operation (such
# as New or Open) or model change is executed.
#
return False
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Register the plug-in
#
thisPath = os.path.abspath(__file__)
thisDir = os.path.dirname(thisPath)
toolset = getAFXApp().getAFXMainWindow().getPluginToolset()
toolset.registerGuiMenuButton(
buttonText='Create3DSets',
object=Create3DSets_plugin(toolset),
messageId=AFXMode.ID_ACTIVATE,
icon=None,
kernelInitString='import case_set2',
applicableModules=ALL,
version='N/A',
author='N/A',
description='N/A',
helpUrl='N/A'
)

zzw小凡
- 粉丝: 35
最新资源
- Google 机器学习入门视频的中文字幕翻译及示例代码
- 【能源效率模糊柔性作业车间调度】基于双种群进化算法的模糊完工时间和能耗优化系统设计(含详细代码及解释)
- A176基于springboot+vue的扶贫众筹网(完整前后端代码+sql脚本+开发文档+全套软件)
- 2025年新版医院感染知识试题(含答案).docx
- 2025年新版医院感染知识试题(附含答案).docx
- 2025年新生儿科院感培训试题(附含答案).docx
- 2025年信息技术学业水平全考试测试题与答案.docx
- 2025年信息技术学业水平全考试测试题及答案.docx
- 2025年新生儿科院感培训试题(含答案).docx
- 2025年消防安全培训考试题库与解析答案.docx
- 2025年消防安全培训考试题库及解析答案.docx
- 电机控制基于移动水平估计(MHE)的永磁同步电机(PMSM)无传感器驱动系统设计与优化(含详细代码及解释)
- 2025年信息技术中考练习系统必考试题库与答案.docx
- 2025年新媒体运营专业考试必考试题及答案.docx
- 2025年新生儿护理常规试题(附含答案).docx
- 2025年消毒供应中心理论试题(附答案).docx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



- 1
- 2
前往页