Table of Contents

Method OverlayXref

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

OverlayXref(string, string)

Overlays another drawing as an external reference, as AutoCAD's OverlayXref: as AttachXref(string, string) attaches one, its BLOCK flagged an overlay as well (70 of 12), so that a drawing that references this one does not see it.

public DxfBlockTableRecord OverlayXref(string fileName, string blockName)

Parameters

fileName string

The path of the drawing, as it is to be written.

blockName string

The name of the block.

Returns

DxfBlockTableRecord

The block.

Exceptions

ArgumentNullException

Thrown when the path or the name is null.

ArgumentException

Thrown when the path is empty or has a line break in it, or the name is one AutoCAD does not take or that of a block of the drawing already.

InvalidOperationException

Thrown when the drawing has no BLOCKS section.