Hi,
I know that I can create a new sheet and place a material takeoff on it like so:
// Create material takeoff
ViewSchedule materialTakeoff = AssemblyViewUtils.CreateMaterialTakeoff(_doc, _assemblyInstance.Id );
ScheduleSheetInstance.Create(_doc, viewSheet.Id, materialTakeoff.Id, new XYZ(2.25, 1.5, 0));
but, what if I want to duplicate the capability of Revit to create a Material Takeoff independently? If you right-click on Schedules\Quantities (all) in Revit, you can create a "New Material Takeoff" which will not be placed on any sheet, and will be create independently.
I can do the following:
ViewSchedule materialTakeoff = AssemblyViewUtils.CreateSingleCategorySchedule(doc,
assemblyInstance.Id, categoryId);
but this doesn't translate into anything real in Revit (after ending the Transaction).
So is there a way to create the takeoff without placing it on an existing sheet?
Thanks