how to change curvature of 3D spline using API?

how to change curvature of 3D spline using API?

liminma8458
Collaborator Collaborator
423 Views
0 Replies
Message 1 of 1

how to change curvature of 3D spline using API?

liminma8458
Collaborator
Collaborator

Hi,

I am using API to create sweep between 2 taps. In some case when taps are too close or with an angle, because the curvature in certain portion of the spline is too tight, the sweep will fail. As shown in picture, the sweep 1 is fine; but for the sweep 2, at the arrow pointed location, the curvature generated by default from Inventor is too tight, the sweep will fail. I am able to inquire the curvature information at all interpolated locations using "Geometry.evaluator.GetCurvature(guessParams, oDirections, oCurvatures)".

 

My question is : is it possible to CHANGE the curvature value at the sharp location using API (instead of I have to manually insert a point in the spline and maneuver with it) after I know its value is too high?

 

I ever tried set up of "oPartDoc.Sketch3DSettings.AutoBendRadius". Looks like it does nothing to the spline curvature.

 

liminma8458_0-1598986366795.png

 
Thanks
Limin
Inventor pro 2023 64 bit update 5.3; Windows 11 pro 64 bit version 24H2; Office 2013 64 bit

Download iCable in App Store to Create Cables Easily

0 Likes
424 Views
0 Replies
Replies (0)