python 读取txt 并赋值 30
原文件temp.txt的内容为abc,a1bdc,a2dcg,a3fgs,a4----------------------将每行的第一个列字符和第二列字符分别通过循环赋值...
原文件temp.txt 的内容为
abc, a1
bdc, a2
dcg, a3
fgs, a4
----------------------
将每行的第一个列字符和第二列字符分别通过循环赋值给A和B.
faces =mdb.models['A'].parts['B']
a = mdb.models['Model-1'].rootAssembly
s1 = a.instances['Drawing1-1-1-lin-1-2'].faces
side1Faces1 = s1.getSequenceFromMask(mask=('[#f00000 ]', ), )
region = regionToolset.Region(side1Faces=side1Faces1)
datumAxis = mdb.models['Model-1'].rootAssembly.instances['Drawing1-1-1-lin-1-2'].datums[11].axis3
mdb.models['Model-1'].BoltLoad(name='Load-2', createStepName='Step-1',
region=region, magnitude=10.0, boltMethod=APPLY_FORCE, datumAxis=datumAxis) 展开
abc, a1
bdc, a2
dcg, a3
fgs, a4
----------------------
将每行的第一个列字符和第二列字符分别通过循环赋值给A和B.
faces =mdb.models['A'].parts['B']
a = mdb.models['Model-1'].rootAssembly
s1 = a.instances['Drawing1-1-1-lin-1-2'].faces
side1Faces1 = s1.getSequenceFromMask(mask=('[#f00000 ]', ), )
region = regionToolset.Region(side1Faces=side1Faces1)
datumAxis = mdb.models['Model-1'].rootAssembly.instances['Drawing1-1-1-lin-1-2'].datums[11].axis3
mdb.models['Model-1'].BoltLoad(name='Load-2', createStepName='Step-1',
region=region, magnitude=10.0, boltMethod=APPLY_FORCE, datumAxis=datumAxis) 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询