NXOpen.UF.Drf.CreateLabel

Drf.CreateLabel()

Refer to UF_DRF_create_label for documentation.

Signature: CreateLabel(numLinesText, textString, origin3d, leaderAttachType, objectArg, modelPos3d)

Parameters:
  • numLinesText (int) – Number of lines of text
  • textString (list of str) – Associated text string
  • origin3d (list of float) – 3d object origin in wcs coordinates
  • leaderAttachType (NXOpen.UF.Drf.LeaderAttachType Refer to UF_DRF_leader_attach_type_e for documentation.) – Leader attachment type UF_DRF_leader_attach_object = attached to object UF_DRF_leader_attach_screen = screen posi tion
  • objectArg (NXOpen.UF.Drf.Object Refer to UF_DRF_object_s for documentation.) – Data of object to attach leader (see uf_drf_types.h) Valid object types: point, line, arc, conic, cubic spline, B curve, and solid curve. If the leader_attach_type is UF_DRF_leader_attach_screen, then object = NULL. If object->object_tag is NULL_TAG then UF_DRF_leader_attach_screen should be used as leader_attach_type so object should also be NULL for this case. NOTE: UF_DRF_object_t is a general purpose structure used by several functions. The input fields object_assoc_type and object_assoc_modifier are not supported by UF_DRF_create_label. For example, Attaching the leader to an arc center is not supported, nor is it supported for interactive creation of a label in NX.
  • modelPos3d (list of float) – 3d model space position if leader_attach_type = UF_DRF_leader_attach_object This position is used as an approximate point on the object to attach the leader if leader_attach_type = UF_DRF_leader_attach_screen, This position is the endpoint of the leader
Returns:

Object tag of created label.

Return type:

Tag

License requirements: DRAFTING