NXOpen.UF.Curve.EditLength

Curve.EditLength()

Refer to UF_CURVE_edit_length for documentation.

Signature: EditLength(curve, method, length, location, extType)

Parameters:
  • curve (Tag) – tag of curve to trim
  • method (int) – trim/extend method, increment or total curve length = 1 -> trim/extend the curve incrementally by the specified curve length = 2 -> trim/extend the curve by making the total curve length as the specified curve length
  • length (float) – incremental or total curve length
  • location (int) – Flag to indicate which end of the curve would be edited = 1 -> start of curve = 2 -> end of curve = 3 -> both sides of curve - if method = 1, it will extend/trim both ends by one half of the length - if method = 2, it will determing how much the curve needs to be extended/trimmed, and then apply half of that distance to both ends.
  • extType (int) – Shape of the extension of the curve. It can be either of the following: = UF_CURVE_NATURAL_SHAPE = UF_CURVE_LINEAR_SHAPE = UF_CURVE_CIRCULAR_SHAPE

License requirements: SOLIDS MODELING or DRAFTING