Lars Gregersen
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
6 years ago
2019年5月28日 GMT-4 04:45
Updated:
6 years ago
2019年5月28日 GMT-4 06:04
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
2019年5月28日 GMT-4 05:52
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:
5 years ago
2019年5月28日 GMT-4 07:25
Updated:
5 years ago
2019年5月28日 GMT-4 07:52
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:
5 years ago
2019年5月29日 GMT-4 03:24
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.