- 积分
- 26
- 注册时间
- 2003-6-20
- 仿真币
-
- 最后登录
- 1970-1-1
|
本帖最后由 sunnygu 于 2014-7-5 04:23 编辑
1。一段简单的程序,通过不了呢?为什么
2。如果我想形成3d曲线,程序如何修改。
谢谢
import string
import os
import string
import re
import sys
from abaqus import *
from abaqusConstants import *
from caeModules import *
from driverUtils import executeOnCaeStartup
executeOnCaeStartup()
Mdb()
s = mdb.models['Model-1'].ConstrainedSketch(name='__profile__',
sheetSize=20.0)
g, v, d, c = s.geometry, s.vertices, s.dimensions, s.constraints
s.setPrimaryObject(option=STANDALONE)
file = open('C:\\Temp\\node.txt')
list=[]
for line in file:
str = line.split()
print str
x=string.atof(str[0])
y=string.atof(str[1])
print y
s.Spot(point=(x, y))
list.append((x,y))
s.Spline(points=list)
mdb.models['Model-1'].sketches.changeKey(fromName='__profile__',
toName='Sketch-1')
s.unsetPrimaryObject()
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册
×
|