private void SendModel_Click(object sender, RoutedEventArgs e) { string ro = RhinoManagement.ConvertModelToString(); if (ro != null) { FireBaseConnection.SendModelToDB(ro, "models", projectName); } }
public void Execute(UIApplication app) { var _doc = app.ActiveUIDocument.Document; RevitManagement.SetCurrentDocument(_doc); RevitManagement.SetCurrentUIDocument(app.ActiveUIDocument); if (_doc.ActiveView.ViewType != ViewType.ThreeD) { var td = new TaskDialog("Wrong view type"); td.MainInstruction = "Select a 3D View to start the app"; td.Show(); return; } RevitManagement.SetView3D(_doc.ActiveView as View3D); var CurrentRootObject = RevitManagement.ProcessAllModel(); FireBaseConnection.SendModelToDB(CurrentRootObject, "models", _doc.Title); }