integrate Revit 2025 SDK

This commit is contained in:
Jeremy Tammik
2024-04-11 13:47:20 +02:00
parent e786953544
commit f414362f2b
889 changed files with 26676 additions and 26865 deletions
@@ -96,10 +96,10 @@ namespace Revit.SDK.Samples.RoutingPreferenceTools.CS
{
ParseFamilyFromXml(xfamily, findFolderUtility); //Load families.
}
catch (Exception ex)
catch (Exception)
{
loadFamilies.RollBack();
throw ex;
throw;
}
loadFamilies.Commit();
@@ -111,10 +111,10 @@ namespace Revit.SDK.Samples.RoutingPreferenceTools.CS
{
ParsePipeTypeFromXml(xpipeType); //Define new pipe types.
}
catch (Exception ex)
catch (Exception)
{
addPipeTypes.RollBack();
throw ex;
throw;
}
addPipeTypes.Commit();
@@ -126,10 +126,10 @@ namespace Revit.SDK.Samples.RoutingPreferenceTools.CS
{
ParsePipeScheduleTypeFromXml(xpipeScheduleType); //Define new pipe schedule types.
}
catch (Exception ex)
catch (Exception)
{
addPipeSchedules.RollBack();
throw ex;
throw;
}
addPipeSchedules.Commit();
@@ -146,10 +146,10 @@ namespace Revit.SDK.Samples.RoutingPreferenceTools.CS
{
ParsePipeSegmentFromXML(xpipeSegment);
}
catch (Exception ex)
catch (Exception)
{
addPipeSchedules.RollBack();
throw ex;
throw;
}
addPipeSchedules.Commit();
@@ -165,10 +165,10 @@ namespace Revit.SDK.Samples.RoutingPreferenceTools.CS
{
ParseRoutingPreferenceManagerFromXML(xroutingPreferenceManager);
}
catch (Exception ex)
catch (Exception)
{
addRoutingPreferences.RollBack();
throw ex;
throw;
}
addRoutingPreferences.Commit();
@@ -239,11 +239,11 @@ namespace Revit.SDK.Samples.RoutingPreferenceTools.CS
}
catch (Exception)
{
throw new Exception("Could not find embedded xml RotingPreferenceBuilder schema resource.");
throw new Exception("Could not find embedded xml RoutingPreferenceBuilder schema resource.");
}
if (schemaStream == null)
{
throw new Exception("Could not find embedded xml RotingPreferenceBuilder schema resource.");
throw new Exception("Could not find embedded xml RoutingPreferenceBuilder schema resource.");
}
System.IO.StreamReader stReader = new StreamReader(schemaStream);
return stReader.ReadToEnd();