faa5208bc4
* add shared DI * made revit 2024 shared * add shared tests for revit * VS2022 fix up * Really fix the solution * add tests, nunit analyzer and update fakes to have Revit 2024 support
21 lines
441 B
C#
21 lines
441 B
C#
using Speckle.InterfaceGenerator;
|
|
|
|
namespace Speckle.Converters.RevitShared;
|
|
|
|
[GenerateAutoInterface]
|
|
public class RevitVersionConversionHelper : IRevitVersionConversionHelper
|
|
{
|
|
public bool IsCurveClosed(DB.NurbSpline nurbsSpline)
|
|
{
|
|
try
|
|
{
|
|
return nurbsSpline.IsClosed;
|
|
}
|
|
catch (Autodesk.Revit.Exceptions.ApplicationException)
|
|
{
|
|
// POC: is this actually a good assumption?
|
|
return true;
|
|
}
|
|
}
|
|
}
|