1.交互输入
在能在GUI,而不能在命令行操作
1.getInput(‘输入提示内容’,‘用户输入的文本(先写在里面占好位置)’)
类似于python中的input
返回值为字符串
2.getInputs
当需要多个输入时,提示与内容采用元组形式
2.宏录制
可用于创建材料库
"""
可选择model,添加钢、铜、铝的材料
"""
from abaqus import *
from abaqusConstants import *
def add_SI_Materials():
import material
name = getInput('Enter model name', mdb.models.keys()[-1])
if not name in mdb.models.keys():
raise ValueError,'mdb.models[%s] not found'<