- 积分
- 0
- 注册时间
- 2009-5-26
- 仿真币
-
- 最后登录
- 1970-1-1
|
import os
import ansa
from ansa import base
from ansa import constants
def main():
# Need some documentation? Run this with F5
"""Docstrings for function help"""
#Collect the parts
search_type = ('ANSAPART',)
parts = base.CollectEntities(constants.NASTRAN, None, search_type, True)
#Use each part as a container in order to collect its faces
search_type = ('FACE',)
faces = list()
for part in parts:
container = [part] #The container must be in a matrix form
faces.append(base.CollectEntities(constants.NASTRAN,container,search_type,False))
print(faces)
if __name__ == '__main__':
main()
print(len(faces))结果为1,这是为什么?
还有,帮助里面的错误也太多了,希腊的beta公司就这态度还能好? |
|