Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Independent Material Takeoff sheet

1 REPLY 1
Reply
Message 1 of 2
yafimski
272 Views, 1 Reply

Independent Material Takeoff sheet

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

1 REPLY 1
Message 2 of 2
RPTHOMAS108
in reply to: yafimski

If your takeoff isn't specific to assemblies???

 

ViewSchedule.CreateMaterialTakeoff(Document, Category)

Category = InvalidElementID for multi category.

 

I prefer to filter elements by Category.HasMaterialQuantities

and use Element.GetMaterialVolume(Material as ElementID)

 

Then you find Categories such as stairs don't have material quantities.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Customer Advisory Groups


Rail Community