1. Description
AutoCAD supports users to import external *.dwg files into the current drawing in the form of reference blocks, and use the CAD command "XREF" to call up the external reference window for viewing, for example:
2. Use objectARX to implement
The effect is as follows: support adding, deleting, uninstalling and reloading external reference files.
1) Add reference
CString strFileName;
int nIndex = strFilePath.ReverseFind('\\');
if (nIn