NXOpen.UF.Kf.CreateRuleNoUpdate

Kf.CreateRuleNoUpdate()

Refer to UF_KF_create_rule_no_update for documentation.

Signature: CreateRuleNoUpdate(nameChain, ruleName, ruleType, ruleText, leadingComment)

Parameters:
  • nameChain (str) – Reference chain of instance, with trailing colon, where rule will be created or modified
  • ruleName (str) – Name of rule
  • ruleType (str) – Type of rule. Type names may be obtained by calling UF_KF_ask_rule_types. This can also contain behavior flags, so “Number Parameter” is a valid rule_type, as is “Child”. If create “Child” then must be “Root:” or NULL. Child rules can only be created on the “Root:”
  • ruleText (str) – Text for rule. For an instance rule, this must must be enclosed in curly braces. For a attribute rule, just the formula
  • leadingComment (str) – Leading comment for rule. OPTIONAL-can be null.

License requirements: None