Share

Database.AttachXref Method

Description

Attaches the xref file specified by fileName to the database, thus creating a new xref BlockTableRecord. The new block table record's name is specified in blockName. Its object ID is returned.

This function does not lock the document, nor does it create an BlockReference instance of the new block table record.

Visual Basic

Public Function AttachXref(
    fileName As string, 
    blockName As string
) As ObjectId

C#

public ObjectId AttachXref(
    string fileName, 
    string blockName
);

Parameters

Parameters Description
string fileName Input xref file path name
string blockName Input xref block name symbol to use

Links

Database Class, Autodesk.AutoCAD.DatabaseServices Namespace

Was this information helpful?