I am actually using the NX C++ API to do our own project. The goal is to use the primitives provided by NX to write our program so as to create our own product. The NX GUI is merely used for visualization purpose. We will start with the 2D level, such as, polygon boolean operation to form the 2D sketches of the product, and then extrude/revolve the 2D sketches into 3D. For the 2D operations, the operations, such as, polygon Boolean operation, curve trim and curve intersection, will be used.
Now suppose I have a curve being created. I want to trim the curve by adjusting the curve starting and ending points, parametrically, and do it through c++ programming. For example, I have a line, line1, starts from (0., 0., 0) and ends at (2., 0., 0). If I want to trim it by starting from its 1/4 position and ending at its 3/4 position, (in programming, the favorable function would be: trim(&line, 1/4, 3/4)), the newly created line would be starting from p0(0.25, 0., 0) and ending at (0.75, 0., 0). Is there a function in NX can implement it?
Many thanks!