NXOpen.UF.Plist.DefineField

Plist.DefineField()

Refer to UF_PLIST_define_field for documentation.

Deprecated since version NX5.0.

Signature: DefineField(objId, pos, line1, line2, attrTitle, fFormat, fWidth, fType, pMask)

Parameters:
  • objId (Tag) – The object identifier of the parts list.
  • pos (int) – Position at which to add field (between 1 and 14)
  • line1 (str) – Line 1 of header (131 character max.). This line is displayed in the heading of the parts list to identify this particular field.
  • line2 (str) – Line 2 of header (131 character max.). This line is displayed in the heading of the parts list to identify this particular field. This line is directly under line_1.
  • attrTitle (str) – Attribute title for this field. Not required for Quantity fields. Must be CALLOUT for automatic callouts to work on this field. For every member of the parts list, the value of this attribute from the member will be displayed in this field. This field is limited to 50 bytes.
  • fFormat (NXOpen.UF.Plist.FieldFormat Refer to UF_PLIST_field_format_s for documentation.) – Format Structure
  • fWidth (int) – Character width of field
  • fType (int) – Field type: 0 = Normal field 1 = Key Field 2 = Quantity
  • pMask (int) – Bit mask for protecting this field from the application of fit rules. The following values are valid for p_mask either singly or in any combination: 0 = Unset all bits; no protected fields 2 = Sets bit 1, this field may not be truncated 4 = Sets bit 2, do not allow overwriting into this field 8 = Sets bit 3, only allow one field to overwrite this field 16 = Sets bit 4, do not allow changing the character size 32 = Sets bit 5, this field may not be converted to two lines 64 = Sets bit 6, this field may not be abbreviated 128 = Sets bit 7, this field must keep Leading/Trailing Strings

License requirements: DRAFTING