Message 1 of 4
But the preview image is coming null while opened as background document.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I need the symbol images.
This way I'm loading the family files and taking preview image.
I'm trying to avoid loading into the file.
But the preview image "piTest" is coming null.
using (var tempDoc = app.Application.OpenDocumentFile(rfa))
{
var symbols = new FilteredElementCollector(tempDoc).OfClass(typeof(FamilySymbol)).Cast<FamilySymbol>().ToList();
var symWithLocFromTems = symbols.Select(x => new SymWithLocation() { location = rfa, symbol = x });
var piTest = symbols[0].GetPreviewImage(new System.Drawing.Size(50, 50));
var tempFamData = CommonMethods.StaticDataGeneration(symWithLocFromTems);
FamData.AddRange(tempFamData);
}