SlabShapeEditorResetSlabShape Method |
Removes the modifications made during editing and resets the element geometry back to the unmodified state.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 27.0.4.0 (27.0.4.0)
Syntaxpublic void ResetSlabShape()
Public Sub ResetSlabShape
public:
void ResetSlabShape()
member ResetSlabShape : unit -> unit
RemarksCalling this method will reset the slab back to its original state and disable Slab Shape Editing. If further
editing is needed, call Enable again.
Exampleprivate void ResetSlabShapes(Autodesk.Revit.DB.Document document)
{
UIDocument uidoc = new UIDocument(document);
ICollection<ElementId> selectedIds = uidoc.Selection.GetElementIds();
foreach (ElementId id in selectedIds)
{
Floor floor = document.GetElement(id) as Floor;
if (floor != null)
{
SlabShapeEditor slabShapeEditor = floor.GetSlabShapeEditor();
slabShapeEditor.ResetSlabShape();
}
}
}
See Also