i want to cut maximum number of any profile in a sheet metal with minimal scrab using solidworks api.
Have you tried any nesting software? I believe it will be lot quicker to use nesting software than SolidWorks API. They are made for it.
No.I need the logic using solid works API.
Doing what you ask is not so simple, that is why there are separate autonesting software packages such as Nilesh mentioned. These allow you set common-line cutting, the minimum skeleton widths, part orientation, and other parameters. They then use a Monte Carlo simulation to run through a huge number of iterations in order to find the optimal sheet utilization. If you are attempting to replicate the same functionality in SWX API I wish you a lot of luck. If you are successful you will have a value partner product for SWX.
Retrieving data ...