Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross 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
Jul 19, 2011
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?
 
Replies continue below

Recommended for you

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