Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formatting a .inp file so it easily read

Status
Not open for further replies.

tmillar

Mechanical
Joined
Jul 19, 2011
Messages
23
I have a .inp file from ABAQUS that I want a script in CATIA to read.

The problem is that it presents itself in a format which my macro cannot read. An example of this is:

*Node
1, 0., 20., 0.
2, -100., 20., 0.
3, -100., 20., 5.
4, -80., 20., 5.
5, -80., 20., 10.

I have over 400 points that need read and inserted into CATIA in the format of:


0 20 0
-100 20 0
-100 20 5
-80 20 5
-80 20 10

Is there an easy and fast way of doing this?
 
Should be able to read into Excel, delete the Node column, then ouput to text file. Excel provides for dealing with comma or space separation of numbers.

Harold G. Morgan
CATIA, QA, CNC & CMM Programmer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top