I would need ideas for a subject: I need to retrieve the coordinates of points located on a curve (intersection of 2 faces). These points would be about fifty on this curve. These coordinates should appear in a table for ease of reading, not as dimensions on the plan.
My goal is to see if there is a method that is fast enough and limits manual interventions.
For the moment I was planning to insert points (reference geometries) using the "multiple reference points" option and then "distribute evenly". There I have my points but I don't see how to retrieve their coordinates in a table, a bit like a drilling table but with the 3 directions for the dimensioning.
Found here https://forum.solidworks.com/thread/60386:
The macro "Get the coordinates of all sketch points in a drawing view" that selects all sketch points in a drawing view and prints their XYZ coords to the immediate window.
Good... I tried the macro, but you have to face the facts, you need a minimum of knowledge in it... When I run, it tells me "compilation error. User-defined type not defined" and denotes the line Dim xlApp As Excel.Application.
What should I do or, better, would there be a way to have the macro directly executable please?
For the IGES, I tried on a part with only reference points and it doesn't convert them.
I haven't tested the macro but coming from Mookymook, it must be worth it Otherwise to come back to the solution from an IGES export, I hadn't specified but you obviously have to create the points on SW. Then the option exporting curves/points must be checked in the IGES export. Then, the X,Y,Z of the points are identified by a 106 at the beginning of the line in the IGES. So you have to ignore the rest (i.e. 90% of the file). The cleaning can be done + easily on Excel. And for precision, there are 8-10 digits after the decimal point for each coordinate, so it should be accurate.
PS;
Knowing the authors in several FOFO
For a long time it has seemed hard to believe that it doesn't work
I read that answer correctly. And if you dig a little deeper, it's not code 106 but 116, and it designates the sketch points and not the reference geometry points (obviously not importable). So you have to draw a 3D sketch with sketch points on the geometry points. But it's not bad... thanks to GT22.
To see if someone can help me with the macro... syouplai...