NXOpen.UF.Kf.CreateChildRule

Kf.CreateChildRule()

Refer to UF_KF_create_child_rule for documentation.

Signature: CreateChildRule(partOfRule, nameChain, ruleName, childClassName, numParameters, parameterNames, parameterRules)

Parameters:
  • partOfRule (Tag) – Part to create or modify rule in
  • nameChain (str) – Reference chain of instance, with trailing colon, where rule will be created or modified. If create then must be “Root:” or NULL. Child rules can only be created on the “Root:”
  • ruleName (str) – Name of rule.
  • childClassName (str) – Class of instance
  • numParameters (int) – number of parameters in the parameter_names array
  • parameterNames (list of str) – num_parametersarray of names of parameters specified by the user.
  • parameterRules (list of str) – num_parametersarray of rules for the parameters whose names are in “parameter_names” above. Each rule may or may not have a trailing semicolon.
Returns:

name generated for the child object.Currently always returns NULL.

Return type:

str

License requirements: None