mirror of
https://github.com/jeremytammik/RevitSdkSamples.git
synced 2026-09-19 18:48:48 +00:00
integrate Revit 2025 SDK
This commit is contained in:
+10
-10
@@ -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();
|
||||
|
||||
|
||||
+2
-2
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user