NXOpen.UF.Cfi.Spawn

Cfi.Spawn()

Refer to UF_CFI_spawn for documentation.

Signature: Spawn(program, numArgs, arguments, isConcur)

Parameters:
  • program (str) – The command to be executed. This command must either be a full path name, or the program must be found on the path.
  • numArgs (int) – The number of arguments in the next array. These arguments will be passed to the command.
  • arguments (list of str) – An array of character pointers for the arguments to be passed to the program. You may pass in a NULL if there are not any arguments. These arguments will be added in the order they are stored, so the command will be: program argument[0] argument[1] ... Switches must be formatted by the caller. On NT, switches take the form “-switch:value”, where on Unix switches take the form “-switch=value”.
  • isConcur (bool) – If TRUE, the command will be run at the same time as the NX Open program, if FALSE, then UF_CFI_spawn will wait for the completion of the command prior to returning to the caller.
Returns:

The process ID of the spawned process. This process ID can be used to check the status of the spawned process using UF_CFI_spawn_check_status.

Return type:

int

License requirements: None