×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Formatting a .inp file so it easily read

Formatting a .inp file so it easily read

Formatting a .inp file so it easily read

(OP)
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?

RE: Formatting a .inp file so it easily read

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources