EDIT: SOLVED
I'm writing a tool but hit a serious snag.
What I'm trying to make (first real plugin) is a solution to create a family document, populate it with parameters (successful up to this point), load a size lookup table and insert the size lookup formulas for the parameters.
Where it goes wrong is that in order to import a SizeTable, I need an instance of the FamilySizeTableManager, which can only be created through a static function in the Revit API (FamilySizeTableManager.CreateFamilySizeTableManag er(doc, ElementId) or FamilySizeTableManager.GetFamilySizeTableManager(d oc, ElementId)) that requires a project document and an element id.
Is it possible to get the FamilySizeTableManager from a FamilyDocument instance, and import a SizeTable that way?
Using Revit 2014
I'm writing a tool but hit a serious snag.
What I'm trying to make (first real plugin) is a solution to create a family document, populate it with parameters (successful up to this point), load a size lookup table and insert the size lookup formulas for the parameters.
Where it goes wrong is that in order to import a SizeTable, I need an instance of the FamilySizeTableManager, which can only be created through a static function in the Revit API (FamilySizeTableManager.CreateFamilySizeTableManag er(doc, ElementId) or FamilySizeTableManager.GetFamilySizeTableManager(d oc, ElementId)) that requires a project document and an element id.
Is it possible to get the FamilySizeTableManager from a FamilyDocument instance, and import a SizeTable that way?
Using Revit 2014
Comment