ds-blue-logo
Preview  |  SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
ASAustin Schukar03/03/2021

Hey all,

I work with style splines quite a bit in sketches - specifically bezier curves - and often get hosed when a bezier curve that I'm constraining 'freezes' its Curve Degree option. Makes sense, but the only way that I could work around this historically was to manually add or delete control vertices, per the SW Help.

I've just made a macro that will force the 'Curve Degree' to a number that I choose using CurveDegree Property (ISketchSpline). Because......why not? Setting this number does remove a couple of sketch constraints that I have, but that is fine. The nature of my workflow has me constantly toggling, adding, removing the curve degrees, constraints, etc. to get a preferred, smooth shape. It's not elegant, but the process works for me (seemingly) well, until my curve degrees get locked. Then it's a serious pain to add a set of control vertices, check, try again, check, etc. On occasion it doesn't ever unlock, even when maxed.

Now, this seems to work just fine, but I'm curious what you all think about the consequences of this. Even though I could force the number of curve degrees, I'm a bit worried about unforseen issues down the road WRT instabilities from doing something that the application has locked me out of, for valid reasons. That said, setting the splines CurveDegree property seems to have reworked this by updating control points as needed, and deleting the necessary constraints. Ergo, the basis on which the application has locked the curve degrees has been removed with the constraint removal...right? All is good?

WIll update if I notice anything. Thanks for reading.