> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# copy_material

## MaterialData.copy\_material(source, on\_duplicate\_name='keep\_both', memo=None)

Copy a material.

### Parameters

* source: Source object to copy.
* on\_duplicate\_name: Action to take if source.name is already contained in self.materials.
  * keep\_both: Create a new instance with the same name (different ID).
  * overwrite: Replace first instance with equal name in self with source.
  * keep\_existing: Ignore copy action. Returns first existing instance in self with equal name.
* memo: A dict to collect copied items (for internal dependency tracking when copying stackups or sublaminates).

### Returns

New instance of material.
