脚本语句partition遇到问题
浏览:115751 回答:2
脚本语句partition遇到问题
a = mdb.models['Model-1'].rootAssembly
c1 = a.instances['tao-all-1'].cells
d11 = a.datums
a.PartitionCellByDatumPlane(datumPlane=d11[43], cells= c1)
这是我用脚本语言进行partition的一个语句,[43]是我从CAE操作后在.py文件中发现的,改为其他数据马上就不知道了。
请问哪位大侠指点[43]是什么意见啊,我查了半天帮助文档都没说明是什么意思。
我将上面语句改为:
a = mdb.models['Model-1'].rootAssembly
c1 = a.instances['tao-all-1'].cells
a.PartitionCellByDatumPlane(datumPlane=plane1, cells= c1)
plane1为我自己定义的datum plane的名称,定义datum plane语句如下:
a = mdb.models['Model-1'].rootAssembly
plane1=a.DatumPlaneByThreePoints(point1=( 0, r1,0), point2=(0, -r1,0), point3=( 0, r1,lt))
定义datum plane没问题,但是后执行partition就不行了,
哪位大侠指点一下,或者说明[43]这个命名规律,或者改变一下我第二中方法使得其能partition
谢谢
a = mdb.models['Model-1'].rootAssembly
c1 = a.instances['tao-all-1'].cells
d11 = a.datums
a.PartitionCellByDatumPlane(datumPlane=d11[43], cells= c1)
这是我用脚本语言进行partition的一个语句,[43]是我从CAE操作后在.py文件中发现的,改为其他数据马上就不知道了。
请问哪位大侠指点[43]是什么意见啊,我查了半天帮助文档都没说明是什么意思。
我将上面语句改为:
a = mdb.models['Model-1'].rootAssembly
c1 = a.instances['tao-all-1'].cells
a.PartitionCellByDatumPlane(datumPlane=plane1, cells= c1)
plane1为我自己定义的datum plane的名称,定义datum plane语句如下:
a = mdb.models['Model-1'].rootAssembly
plane1=a.DatumPlaneByThreePoints(point1=( 0, r1,0), point2=(0, -r1,0), point3=( 0, r1,lt))
定义datum plane没问题,但是后执行partition就不行了,
哪位大侠指点一下,或者说明[43]这个命名规律,或者改变一下我第二中方法使得其能partition
谢谢
脚本语句partition遇到问题
a = mdb.models['Model-1'].rootAssembly
c1 = a.instances['tao-all-1'].cells
d11 = a.datums
a.PartitionCellByDatumPlane(datumPlane=d11[43], cells= c1)
这是我用脚本语言进行partition的一个语句,[43
把你创建datumplane然后partition的流程在CAE中执行一遍,然后看对应的*.py文件。
应该可以找到问题所在。