Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

Importing X Y column data in .txt file to table for polygon

Please login with a confirmed email address before reporting spam

I am trying to import as a polygon to a plane a set of X Y coordinate data created from ImageJ and saved as a .txt file.

I am getting the error "The file does not contain valid coordinate data".

The txt file is two columns of numbers w/o headings. Any hints or direction would be appreciated.

Thanks much.

1 Reply Last Post Aug 19, 2014, 4:14 p.m. EDT
COMSOL Moderator

Hello Bill Hurst

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.


Please login with a confirmed email address before reporting spam

Posted: 10 years ago Aug 19, 2014, 4:14 p.m. EDT
This might be too late to help Bill - but for me, I was able to use a file to create a closed polygon on a work plane by using a comma-separated list of (x, y) values. A sample of which is below:

3.951300e-02, 4.144400e-02
1.360000e-04, 1.425710e-01
3.991200e-02, 4.340740e-02
4.027008e-02, 4.537858e-02
4.057819e-02, 4.735800e-02
4.085465e-02, 4.934237e-02
4.113285e-02, 5.132650e-02
This might be too late to help Bill - but for me, I was able to use a file to create a closed polygon on a work plane by using a comma-separated list of (x, y) values. A sample of which is below: 3.951300e-02, 4.144400e-02 1.360000e-04, 1.425710e-01 3.991200e-02, 4.340740e-02 4.027008e-02, 4.537858e-02 4.057819e-02, 4.735800e-02 4.085465e-02, 4.934237e-02 4.113285e-02, 5.132650e-02

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.