Please enable JavaScript to view this site.

Knowledge Base

Navigation: Scripting Language > System

copytoclipboard

We've made some changes. Use 'Ctrl-F5' to clear your browser cache.
Scroll Prev Top Next More

Copies the selected objects into the system clipboard. Equivalent to 'Ctrl-C'.

 

Supported Product: FDTD, MODE, DEVICE, INTERCONNECT

 

Syntax

Description

copytoclipboard;

Copies selected objects to the system clipboard

 

Examples

This example shows how to use the copy/paste to clipboard functions to copy an object from a different simulation file into the current simulation file.

# specify file and object names

current_file = currentfilename;

template_file = "C:\temp\myObjects.fsp";

object_name = "my_grating";

 

save; #save current file; # save current file

load(template_file);    # load template file

select(object_name);    # select object

copytoclipboard;      # copy object to clipboard

load(current_file);     # load original file

pastefromclipboard;     # paste object into file

 

See Also

System level, pastefromclipboard, copy

Copyright Lumerical Inc. | Privacy | Site Map