Message 1 of 3
Edit Family from project document
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I want to parameterise a Family from inside a project document. In a dialog, the user can choose a Family from a dropdown, then edit the paramters to create a new .rfa file, and then use that new loaded family in the project document. When I run the follwing code, the value for symbol is null:
Document familyDoc = doc.Application.OpenDocumentFile(FamilyPath);
using (Transaction trans = new Transaction(familyDoc, "trill"))
{
trans.Start();
var good = familyDoc.LoadFamilySymbol(FamilyPath,
FamilyName,
new FamilyLoadingOverwriteOption(),
out symbol);
trans.Commit();
}
Any ideas?