Message 1 of 2
Return a list of imported Images with their resolution

Not applicable
02-24-2015
03:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to create an auditing check that will return a list of images imported into the file and also their resolutions, but I am stuck at returning the image's resolution, this is what I have so far:
public void findImports() { Document doc = this.ActiveUIDocument.Document; string info = ""; FilteredElementCollector Col = new FilteredElementCollector(doc).OfCategory(BuiltInCategory.OST_RasterImages); BuiltInParameter pixelH = BuiltInParameter.RASTER_SYMBOL_PIXELHEIGHT; foreach (Element e in Col) { Parameter p = e.get_Parameter(pixelH); info += e.Name + " - " + p.ToString() + " - " + e.Id + Environment.NewLine; } TaskDialog.Show("elements",info); }
I am not sure if I am on the right path or not, but this will not currently run. Is anyone able to help me at all? Thanks!