From 7931d2160c7a96da71d2cccf210f7fb2dfd4047b Mon Sep 17 00:00:00 2001 From: Alan Rynne Date: Thu, 10 Oct 2024 15:43:40 +0200 Subject: [PATCH] fix: Using statements --- .../ToSpeckle/Raw/MultipatchFeatureToSpeckleConverter.cs | 1 - .../ToSpeckle/Raw/PointToSpeckleConverter.cs | 3 ++- .../AutocadRootToHostConverter.cs | 1 + .../Civil3dRootToHostConverter.cs | 1 - .../Helpers/ParameterValueSetter.cs | 1 - 5 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Converters/ArcGIS/Speckle.Converters.ArcGIS3/ToSpeckle/Raw/MultipatchFeatureToSpeckleConverter.cs b/Converters/ArcGIS/Speckle.Converters.ArcGIS3/ToSpeckle/Raw/MultipatchFeatureToSpeckleConverter.cs index cb1ae679..46ba7c66 100644 --- a/Converters/ArcGIS/Speckle.Converters.ArcGIS3/ToSpeckle/Raw/MultipatchFeatureToSpeckleConverter.cs +++ b/Converters/ArcGIS/Speckle.Converters.ArcGIS3/ToSpeckle/Raw/MultipatchFeatureToSpeckleConverter.cs @@ -1,7 +1,6 @@ using Speckle.Converters.ArcGIS3.Utils; using Speckle.Converters.Common; using Speckle.Converters.Common.Objects; -using Speckle.Sdk.Common.Exceptions; using Speckle.Sdk.Models; using ValidationException = System.ComponentModel.DataAnnotations.ValidationException; diff --git a/Converters/ArcGIS/Speckle.Converters.ArcGIS3/ToSpeckle/Raw/PointToSpeckleConverter.cs b/Converters/ArcGIS/Speckle.Converters.ArcGIS3/ToSpeckle/Raw/PointToSpeckleConverter.cs index 6819f0c4..65707790 100644 --- a/Converters/ArcGIS/Speckle.Converters.ArcGIS3/ToSpeckle/Raw/PointToSpeckleConverter.cs +++ b/Converters/ArcGIS/Speckle.Converters.ArcGIS3/ToSpeckle/Raw/PointToSpeckleConverter.cs @@ -2,6 +2,7 @@ using ArcGIS.Core.Geometry; using Speckle.Converters.Common; using Speckle.Converters.Common.Objects; +using Speckle.Sdk; namespace Speckle.Converters.ArcGIS3.ToSpeckle.Raw; @@ -52,7 +53,7 @@ is not MapPoint reprojectedPt } catch (ArgumentException ex) { - throw new SpeckleConversionException( + throw new SpeckleException( $"Conversion to Spatial Reference {_settingsStore.Current.ActiveCRSoffsetRotation.SpatialReference.Name} failed", ex ); diff --git a/Converters/Autocad/Speckle.Converters.AutocadShared/AutocadRootToHostConverter.cs b/Converters/Autocad/Speckle.Converters.AutocadShared/AutocadRootToHostConverter.cs index ef6456d1..a165142a 100644 --- a/Converters/Autocad/Speckle.Converters.AutocadShared/AutocadRootToHostConverter.cs +++ b/Converters/Autocad/Speckle.Converters.AutocadShared/AutocadRootToHostConverter.cs @@ -1,6 +1,7 @@ using Autodesk.AutoCAD.DatabaseServices; using Speckle.Converters.Common; using Speckle.Converters.Common.Objects; +using Speckle.Converters.Common.Registration; using Speckle.Sdk.Common.Exceptions; using Speckle.Sdk.Models; diff --git a/Converters/Civil3d/Speckle.Converters.Civil3dShared/Civil3dRootToHostConverter.cs b/Converters/Civil3d/Speckle.Converters.Civil3dShared/Civil3dRootToHostConverter.cs index c54f6f0f..54b04765 100644 --- a/Converters/Civil3d/Speckle.Converters.Civil3dShared/Civil3dRootToHostConverter.cs +++ b/Converters/Civil3d/Speckle.Converters.Civil3dShared/Civil3dRootToHostConverter.cs @@ -2,7 +2,6 @@ using Speckle.Converters.Common; using Speckle.Converters.Common.Objects; using Speckle.Converters.Common.Registration; -using Speckle.Sdk; using Speckle.Sdk.Common.Exceptions; using Speckle.Sdk.Models; diff --git a/Converters/Revit/Speckle.Converters.RevitShared/Helpers/ParameterValueSetter.cs b/Converters/Revit/Speckle.Converters.RevitShared/Helpers/ParameterValueSetter.cs index 36e8e61b..0e6c2399 100644 --- a/Converters/Revit/Speckle.Converters.RevitShared/Helpers/ParameterValueSetter.cs +++ b/Converters/Revit/Speckle.Converters.RevitShared/Helpers/ParameterValueSetter.cs @@ -4,7 +4,6 @@ using Speckle.Sdk.Common; using Speckle.Sdk.Common.Exceptions; using Speckle.Sdk.Models; -using ArgumentException = Autodesk.Revit.Exceptions.ArgumentException; namespace Speckle.Converters.RevitShared.Helpers;