Hello,
I have been trying to do something and I am not sure that SolidWorks is capable of doing it.
I have a text file with x y z coordinates of points. x and y have numerical values and z is always zero. (basiclly a 2D sketch on the xy plane) I have a macro that imports the points as a 2D or 3D sketch into a part.
Now what I need to do is keep the x and y coordinates and project the points onto a surface to find out what the z coordinate is. I found a macro that can add a coincident relation between the points and the surface, but that also changes the x and y coordinates so it will not work.
For example, lets say I have a point that has x=25 in, y= -45 in and z=0 in. If I project that point onto the surface, the new coordinates should be x=25 in, y=-45 in and z=30 in.
I have not been able to find a way to do this other than putting points on the surface and manually changing the x and y coordinates to find out what the z coordinate is.
I am really at a loss at this moment. We need to do this for hundreds, maybe thousands of points and manually it would be out of the question. I tried importing a curve from x y z coordinates, convert entities and then project that onto a surface but that did not retain the point coordinates so I was not able to export them out of SolidWorks and find out what the z coordinate is.
I've heard some AutoCAD ideas on maybe drawing lines from the points in the z direction and then using the surface to trim them and find the intersection points but I am not sure how that would work for SolidWorks as a macro.
Any help or suggestions would be greatly appreciated as this has completely halted my progress on this project.
Thank you again,
Vlad