NXOpen.UF.Sket.SetPreferences

Sket.SetPreferences()

Refer to UF_SKET_set_preferences for documentation.

Signature: SetPreferences(sketchTag, values, snapAngle, namePrefix, vertexPrefix, linePrefix, arcPrefix, conicPrefix, splinePrefix, charSize, decPlaces, dimLabel)

Parameters:
  • sketchTag (Tag) – Sketch tag.May be NULL_TAG if there is no existing sketch to which the preferences are to be associated. The preferences will then be applied to the sketches created thereafter, with the exception of character size and decimal places. These two will always come from annotation preferences.
  • values (list of int) – Array flag to indicate what action to perform for which sketch preference variable. 0: Do nothing 1: Action [0]: Snap angle [1]: Sketch name prefix [2]: Vertex name prefix [3]: Line name prefix [4]: Arc name prefix [5]: Conic name prefix [6]: Spline name prefix [7]: Character size [8]: Decimal places [9]: Dimension label
  • snapAngle (float) – Snap angle
  • namePrefix (list of str) – Sketch name prefix
  • vertexPrefix (list of str) – Vertex name prefix
  • linePrefix (list of str) – Line Iname prefix
  • arcPrefix (list of str) – Arc name prefix
  • conicPrefix (list of str) – Conic name prefix
  • splinePrefix (list of str) – Spline name prefix
  • charSize (float) – Character size is no longer a sketch preference. The character size will be set for each individual dimension in the sketch. If sketch_tag==NULL_TAG nothing will be done.
  • decPlaces (int) – Decimal places are no longer a sketch preference. The decimal places will be set for each individual dimension in the sketch. If sketch_tag==NULL_TAG nothing will be done.
  • dimLabel (int) – Dimension label1 : Value 2 : Expression 3 : Name

License requirements: SOLIDS MODELING or DRAFTING