NXOpen.UF.Drf.AddToDimension

Drf.AddToDimension()

Refer to UF_DRF_add_to_dimension for documentation.

Signature: AddToDimension(entityId, segmentNum, annData, textType, textPosition, relativeJust, lineSpace, numberLines, textArray)

Parameters:
  • entityId (int) – Object identifier of the dimension object to be added to.
  • segmentNum (int) – Segment number to add to. UF_DRF_ask_ann_data can be called to find out the number of segments in a dimension.
  • annData (list of int) – The annotation data for this dimension, returned from UF_DRF_ask_ann_data.
  • textType (int) – The type of appended text: 18 = Pure text 19 = circle ID SYMBOL text 20 = divided circle ID SYMBOL 21 = square ID SYMBOL 22 = divided square ID SYMBOL 23 = hexagon ID SYMBOL 24 = divided hexagon ID SYMBOL 25 = triangle pointed up ID SYMBOL 26 = triangle pointed down ID SYMBOL 27 = datum target ID SYMBOL 28 = rounded box ID SYMBOL 29 = Form and positional tolerance text 44 = Multi-type text
  • textPosition (int) – Position of the appended text: 1 = below 2 = after 3 = above 4 = before
  • relativeJust (int) – Relative text justification: 1 = left 2 = center 3 = right
  • lineSpace (int) – Flag for line spacing: 0 = No line spacing, this is the default. 1 = Use a line spacing adjustment when adding text blocks above or below.
  • numberLines (int) – Number of lines of text to append.
  • textArray (list of str) – number_linesArray of text strings to be appended to the dimension.

License requirements: DRAFTING