Lars Gregersen
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
6 years ago
May 28, 2019, 4:45 a.m. EDT
Updated:
6 years ago
May 28, 2019, 6:04 a.m. EDT
I don't know of any automated way to do this.
You can create a model method or use LiveLink for Matlab to
- Extract the coordinates of a curve (edge).
- Flatten the coordinates (I guess this means project these coordinates to a plane).
- Using these coordinates you can create a new interpolation curve that you can insert into your geometry (e.g. on a workplane).
-------------------
Lars Gregersen
Comsol Denmark
I don't know of any automated way to do this.
You can create a model method or use LiveLink for Matlab to
* Extract the coordinates of a curve (edge).
* Flatten the coordinates (I guess this means project these coordinates to a plane).
* Using these coordinates you can create a new interpolation curve that you can insert into your geometry (e.g. on a workplane).
Please login with a confirmed email address before reporting spam
Posted:
6 years ago
May 28, 2019, 5:52 a.m. EDT
Thank you Lars, I'll give that a go and let you know how it went.
Thank you Lars, I'll give that a go and let you know how it went.
Please login with a confirmed email address before reporting spam
Posted:
6 years ago
May 28, 2019, 7:25 a.m. EDT
Updated:
6 years ago
May 28, 2019, 7:52 a.m. EDT
It worked well, thank you.
I used the measure tool on individual points to get coordinates in the message box, copied the message box into excel, used the "text to columns" data tool in excel to automatically split off the coordinates I wanted from extraneous text, then copied them back into an interpolation curve table.
It worked well, thank you.
I used the measure tool on individual points to get coordinates in the message box, copied the message box into excel, used the "text to columns" data tool in excel to automatically split off the coordinates I wanted from extraneous text, then copied them back into an interpolation curve table.
Lars Gregersen
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
6 years ago
May 29, 2019, 3:24 a.m. EDT
Hi Martin
I'm glad that it worked. I prefer programming to solve problems like this, but whatever gets the problem solved is fine.
A faster, manual process would be to mesh the curve you wish to export (just the edge, nothing else). You can then export the edge elements to a mphtxt-file. If you open that file you'll find all the coordinates of the mesh, which you can copy to Excel. Note that coordinates may be output of order using this method.
-------------------
Lars Gregersen
Comsol Denmark
Hi Martin
I'm glad that it worked. I prefer programming to solve problems like this, but whatever gets the problem solved is fine.
A faster, manual process would be to mesh the curve you wish to export (just the edge, nothing else). You can then export the edge elements to a mphtxt-file. If you open that file you'll find all the coordinates of the mesh, which you can copy to Excel. Note that coordinates may be output of order using this method.