-
-
August 25, 2023 at 10:22 am
Huadong Sun
Ansys Employee -
August 25, 2023 at 10:23 am
Huadong Sun
Ansys Employee可以使用脚本作为解决方案,将文件写入csv文件。
outputDialog=SaveFileDialog()
outputDialog.Filter='Datum Point File (*.csv)|*.csv'
outputDialog.Show()
outputfile=outputDialog.FileName
#Get all the datum points in the current file
allDatumPoints=GetRootPart().GetDescendants[IDatumPoint]()
#Loop through all the points and save the x,y,z coordinates to file.
with open(outputfile,'w+') as outFile:
for dPoint in list(allDatumPoints):
X=dPoint.Position.X
Y=dPoint.Position.Y
Z=dPoint.Position.Z
outFile.write(str(X)+','+str(Y)+','+str(Z)+'\n')
-
Viewing 1 reply thread
- 主题 ‘SpaceClaim中,如何将点坐标xyz导出到Excel文件?’ 已关闭新回复.
Innovation Space
Trending discussions
Top Contributors
-
6625
-
1906
-
1469
-
1311
-
1022
Top Rated Tags
© 2026 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.