【1】脚本程序
from abaqus import *
from abaqusConstants import *companyofheroes
kwhfields = (('Part Name:','Cylinder'),('Outer Radius:','22'),('Inner Radius:','20'),('Height:','120'))
Pname,R,r,H=getInputs(fields=fields,label='Enter Dimensions :')
短裤怎么说ssion.viewports['Viewport: 1'].tValues(displayedObject=None)
ssion.viewports['Viewport: 1'].partDisplay.tValues(ctionAssignments=OFF,
engineeringFeatures=OFF)
ssion.viewports['Viewport: 1'].tValues(displayedObject=None)
s = dels['Model-1'].ConstrainedSketch(name='__profile__',圣诞色运动虚脱 total recall
sheetSize=200.0)
g, v, d, c = s.geometry, s.vertices, s.dimensions, s.constraints
s.tPrimaryObject(option=STANDALONE)
ecards.CircleByCenterPerimeter(center=(0.0, 0.0), point1=(0, float(R)))
s.CircleByCenterPerimeter(center=(0.0, 0.0), point1=(0, float(r)))
parksenergetic
dels['Model-1'].sketches['__profile__']
p = dels['Model-1'].Part(name=Pname,dimensionality=THREE_D,every moment of my life
type=DEFORMABLE_BODY)
p = dels['Model-1'].parts[Pname]
p.BaSolidExtrude(sketch=s, depth=float(H))
ssion.viewports['Viewport: 1'].tValues(displayedObject=p)
【2】运行脚本程序,输入参数
【3】得到结果