NXOpen.UF.Rule.CreateViolation¶
-
Rule.
CreateViolation
()¶ Refer to UF_RULE_create_violation for documentation.
Deprecated since version NX5.0.
Signature:
CreateViolation(objectInPart, shortDescription, longDescription, numObjects, objects, timeStamp)
Parameters: - objectInPart (Tag) – Tag of object in same part to create violation object. May be a part tag. May not be NULL_TAG.
- shortDescription (str) – Terse description of violation.
- longDescription (str) – Verbose description of violation.
- numObjects (int) – Number of objects in the violation.
- objects (list of Tag) – Objects in the violation.
- timeStamp (int) – Date created : number of seconds since 1 Jan 1970 00:00:00. Use UF_RULE_CURRENT_TIME_STAMP for current time.
Returns: Tag of new violation object.
Return type: License requirements: UG/ROUTING or routing_advanced