[Ad...] Posted February 3, 2023 Share Posted February 3, 2023 (edited) I'm currently trying to write a script that can create a curve from a bunch of centroid points. I already have a list of centroid points, but I'm struggling utilize them in the gom.script.curve.create_curve function. I wrote some code that will build a string that should look exactly like the text expected by the curve_parts parameter, but I get an error when running the code - probably because the value I provided is a string. What data type does the value need to be in for the curve_parts parameter? Edited February 3, 2023 Link to comment https://qualityforum.zeiss.com/topic/2590-script-to-create-curve-from-points/ Share on other sites More sharing options...
[Na...] Posted February 3, 2023 Share Posted February 3, 2023 Hello Adam, there is an existing script for this: Curve_from_Points.py Link to comment https://qualityforum.zeiss.com/topic/2590-script-to-create-curve-from-points/#findComment-6738 Share on other sites More sharing options...
[Ad...] Posted February 3, 2023 Author Share Posted February 3, 2023 Thank you, Nanno! I will give this a try... Link to comment https://qualityforum.zeiss.com/topic/2590-script-to-create-curve-from-points/#findComment-6742 Share on other sites More sharing options...
[Ad...] Posted February 8, 2023 Author Share Posted February 8, 2023 I finally had a chance to try this script out and it worked great! Thanks! Link to comment https://qualityforum.zeiss.com/topic/2590-script-to-create-curve-from-points/#findComment-6804 Share on other sites More sharing options...
[Ad...] Posted February 8, 2023 Author Share Posted February 8, 2023 Well...it did create a curve, but the created curve has an error on it that I've never seen before. And I think the error is causing issues later on in my script. Any ideas? Link to comment https://qualityforum.zeiss.com/topic/2590-script-to-create-curve-from-points/#findComment-6808 Share on other sites More sharing options...
[Ad...] Posted February 9, 2023 Author Share Posted February 9, 2023 I defined my original alignment as the initial alignment and the issue went away. Link to comment https://qualityforum.zeiss.com/topic/2590-script-to-create-curve-from-points/#findComment-6838 Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in