-
-
July 30, 2018 at 7:47 pm
trbritt
SubscriberI have a 3D model of a magnet design in a different software I need to switch over to ANSYS. I have an APDL macro which should convert the data and I have the data in a seperate text file, which is how it was exported by the other software. When I run it in APDL, it gives me '*VREAD cannot open file'. Any suggestions?
-
July 30, 2018 at 9:45 pm
peteroznewman
SubscriberIn the attached text tile, it references another file, QXF_2DV2_3DV7_RE_v4
Do you have that file in the same folder as the roxie2ansys.txt APDL code that you are running?
-
July 30, 2018 at 10:15 pm
trbritt
SubscriberI suspected somwthing like that, and they are all in the same folder. -
July 31, 2018 at 12:40 pm
jpasquerell
Ansys EmployeeThe ANSYS program opens most files with read and write permission required so make sure the file being read it is not marked as read only. Is the data in fixed format as *VREAD cannot read in comma separated data? See  http://www.ansys-blog.com/use-of-tread-and-vread-to-read-in-data-from-an-external-file/  for info on reading csv using *TREAD. Try reading in just a single value until you are able to get it working then add additional values.
-
November 5, 2021 at 9:24 am
Phanindra Reddy Ravi
Subscriber.jpasquerell the link (http://www.ansys-blog.com/use-of-tread-and-vread-to-read-in-data-from-an-external-file/) you posted is not working
Please share the accessible link.
.
-
- The topic ‘APDL Vread cannot read file error’ is closed to new replies.
-
5874
-
1906
-
1420
-
1306
-
1021
© 2026 Copyright ANSYS, Inc. All rights reserved.