    

 ## On this page

  

 

 # copy\_stackup

 Last update: 16.07.2026 

<a id="compolyx.MaterialData.copy_stackup"></a>

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

Copy a stackup.

### Parameters

- source: Source object to copy.
- on\_duplicate\_name: Action to take if source.name is already contained in self.stackups. 
    - 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.

### Returns

New instance of stackup.