AttachXref

Function Name dcl-AttachXref
Syntax   (dcl-AttachXref DwgFilePath [as String] {BlockName [as String]} {InsertionPoint [as 3DPoint]} {Rotation [as Float]})
Return Type Boolean (T if successful; otherwise NIL)

This function attaches DwgFilePath as an xref into the current drawing. If InsertionPoint is not specified, the xref is inserted at the origin. If Rotation is not specified, the xref is inserted with a rotation angle of zero. If BlockName is not specified, the drawing filename will be used as the xref name in the current drawing.

This function can be used to attach an xref in cases when the XREF command can not be used (e.g. from a synchronous event handler function).