Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All,
I'm having trouble using the Document.LoadFamily method to load a family when an older version of the family exists in the model.
My code looks like this:
public class FamilyLoadOptions : IFamilyLoadOptions { public bool OnFamilyFound(bool familyInUse, out bool overwriteParameterValues) { overwriteParameterValues = true; return true; } public bool OnSharedFamilyFound(Family sharedFamily, bool familyInUse, out FamilySource source, out bool overwriteParameterValues) { source = FamilySource.Family; overwriteParameterValues = true; return true; } }
Family loadedFamily = null;
var success = doc.LoadFamily(localPath, new FamilyLoadOptions(), out loadedFamily);
When the family already exists in the model success is always false and loadedFamily is always null.
Also when I try to debug the FamilyLoadOptions neither of its methods are every accessed.
Thanks in advance,
Sean
Solved! Go to Solution.