fmeobjects.FMELibrary.replaceAppearance

FMELibrary.replaceAppearance(appearanceReference, newAppearance)

Replaces the Appearance with a new one at index = ‘appearanceReference’. A FMEException is thrown if ‘newAppearance’ is None, ‘appearanceReference’ is not a valid index ,or the existing shared object is not an appearance type. If the ‘newAppearance’ successfully replaces the existing appearance, the library consumes the ‘newAppearance’.

Parameters:
  • appearanceReference (int) – The index of the Appearance to replace.

  • newAppearance (FMEAppearance) – The new appearance to replace the original with.

Return type:

None

Raises:

FMEException – An exception is raised if an error occurred.