abaqus Python二次开发之 交互输入和提示框
#单输入框 提示框 from abaqus import getInput from math import sqrt number = float(getInput('Enter a number:')) print sqrt(number) #多输入提示框 from abaqus import getInputs fields = (('Width:','10'), ('Length:', '20'), ('Height:', '30')) length, width, height = getInputs(fields=fields, label='Specify block dimensions:', dialogTitle='Create Block', ) print length, width, height #警告提示框 from abaqus import getWarningReply, YES, NO reply = getWarningReply(message='Okay to continue?', buttons=(YES,NO)) if reply == YES: print 'YES clicked' elif reply == NO: print 'NO clicked'
点赞 1 评论 收藏