Drawings.CopyTo Method

Copies all items inside control master collections (Sheets, Viewport.Labels, Environment.Blocks, Environment.Layers, Model.Materials, Environment.TextStyles, Environment.LineTypes) to the specified drawings.
Public Sub CopyTo( _ 
ByVal destination As Environment, _ 
Optional ByVal replaceRootBlock As Boolean = true, _ 
Optional ByVal skipSheets As Boolean = false _ 
)
This language is not supported or no code example is available.
public void CopyTo( 
Environment destination
bool replaceRootBlock = true, 
bool skipSheets = false 
)
This language is not supported or no code example is available.

Parameters

destination
Environment

The Drawings that is the destination of the elements copied.

replaceRootBlock
bool

When true and the destination environment is a Model control, its root block is replaced.

skipSheets
bool

When true and destination is a Drawings control, the Sheets collection is not copied.

Remarks
 
You need to call Environment.Invalidate to see the effect of this command in the destination drawings.

.NET Framework

Supported in: 4.8

In this article

Definition