DwgList 2021 DLL TechDocs

Raster References

Information on Raster References

DwgList DLL can easily provide information about Raster References (Images) in the DWG file. The DWG file must be opened using the dwglist_ProcessFile command(see Initialization). Processing Raster Reference is very simple. You call dwglist_getNumberOfRasterReferences to get the number of Raster Reference in the file, then you loop through each Raster Reference to get the information about it. Currently you can only get the Raster Reference file name using the dwglist_getRasterReferenceName command, but if you need more information like path, status, height, width, bits per pixel, etc., let us know and we can easily add it.

int numImages = dwglist_getNumberOfRasterReferences();
if (numImages > 0)
	cout << endl << "External Images" << endl << "===================" << endl;
	for (int i = 0; i < numImages; i++)
		string rasterName = dwglist_getRasterReferenceName(i);
		cout << rasterName << endl;
	cout << endl << "No External Images in DWG file" << endl;

Last updated on 16 Feb 2021
Published on 15 Feb 2021