I scanned an object on or CNC CMM machine, from the scan I get an .iges file.
The iges file contains the curve that I scanned but its divided in lines.
When I use the command 'smooth curve string' some of the lines are not selected and I get an error 'selected section curves include branches'.
Anyone an idea what I'm doing wrong?
I want to create a spline from the lines and then use the command "smooth spline" to get get a smooth curve that I can use.
Based on your error message, it sounds like you have overlapping curves. Eliminate the overlapping curves and try again.
If the above does not work, try the "join curve" command; it should create a spline from the input curves. You may need to "smooth spline" the result.
If that does not get something good enough, I would put the scanned curves on a visible but not selectable layer, then use the studio spline command to create a spline on top of the curves. Tweak the poles of the spline until it matches "good enough".
The join curves command gives an error "gaps in sring or multiple loops".
Another option is to set a point on each startpoint of each line and use fit curve command.
But thats not something that can be done manualy.
I found a similar thread and there they sugested a NXopen program but the program doesn't work for me, it just gives some errors when I run it.
Getting back to the root cause, it sounds like you have overlapping (or nearly overlapping) curves and/or small gaps between curves that should be connected. When you imported the IGES file, did you use the "optimize" option? This is supposed to help eliminate overlapping curve entities. Also, in NX 10 there is the "optimize 2D curve" command which should eliminate overlapping curves. I'm not sure how well it will work if your curves do not all lie in a plane.
If those commands do not do the job and you do not want to manually hunt down and eliminate the offending entities, then I'd fall back on the "studio spline using the original curves as a guide" strategy mentioned in my previous post.
I used the optimize function but no difference.
With the "optimize 2d" function the overlapping curves were removed but it diden't leave a continious spline.
Below is a closup to illustrate what I mean.
I created a journal that creats a point on every start of a single line.
With the points I can use the "fit curve" command.
Thank you for the help and interest!
The output from the scan was also my first tought.
I'm not familiar with the CMM and the software, its a different department.
I asked the guy who scanned the part if he has other options to output his scan data but he diden't know.
The part is already removed from the machine and the machine is occupied for the moment so I cant repeat the program.
Next time were gonna look at it if there are orther options to output the data.