XANSYS Message: 40998 [Go back to message list] [bookmark on del.icio.us]
No rating yet Subject: Re: [APDL] *vread with mixed character/number array. Author: Peter Frei Date: 2002-08-22 09:39:00Then I guess I'd rather try to get rid of the character lines with "grep" outside of Ansys before reading the data file. Hopefully, you're using a Unix machine where grep is standard.
Peter
Peter U. Frei, Rockwell Automation AG, IEC Power Components, Dept. ER Buchserstrasse 35, CH-5001 Aarau, Switzerland pfrei@r..., phone: +41 62 837 24 47, fax: +41 62 837 29 17
"jmetrisin" 22.08.02 15:12 Please respond to xansys
To: xansys@yahoogroups.com cc:
array.
Dave, Peter,
No, the characters may not always be the first group of lines. NSKIP doesn't work in this case.
Joe Metrisin Florida Turbine Technologies, Inc.
--- In xansys@y..., pfrei@r... wrote: > Joe,
> Do you always have the same number of lines with characters? Are they > always at the beginning of the data file (as your sample data file > suggests)? If so, have you tried the NSKIP option of *VREAD?
> Peter
> Peter U. Frei, Rockwell Automation AG, IEC Power Components, Dept. ER > Buchserstrasse 35, CH-5001 Aarau, Switzerland > pfrei@r..., phone: +41 62 837 24 47, fax: +41 62 837 29 17
> Joe Metrisin > 22.08.02 14:27 > Please respond to xansys
> To: "'xansys@y...'" > cc: > Subject: [xansys] [APDL] *vread with mixed character/number array.
> Greetings,
> Does anyone know of a way to *VREAD a column of data that may have a few > rows with characters? ANSYS will abort the *VREAD if it encounters any > characters in the column. Even using a mask vector to tell ANSYS to skip > the character rows does not work. I want ANSYS to ignore the character > rows > and just read the numbers.