-
-
August 25, 2023 at 10:22 am
Huadong Sun
Subscriber -
August 25, 2023 at 10:23 am
Huadong Sun
Subscriber可以使用脚本作为解决方案,将文件写入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')
-
- 您必须登录才能回复此主题。

Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
-
7818
-
4514
-
2979
-
1453
-
1322
© 2023 Copyright ANSYS, Inc. All rights reserved.