DMT_Pcb.copyPcb() method
Copy PCB
Signature
typescript
function copyPcb(pcbUuid: string, boardName?: string): Promise<string | undefined>;1
Parameters
Parameter | Type | Description |
|---|---|---|
pcbUuid | string | Source PCB UUID |
boardName | string | (Optional) Name of the board the new PCB belongs to. If not specified, it is a free PCB |
Returns
Promise<string | undefined>
New PCB UUID. If it is undefined, the copy failed
Remarks
Even if the PCB here is already associated with a reuse block (a reuse block symbol with the same name exists in the project library), no new reuse block symbol will be created. This operation logic is consistent with the current editor front end