DynamoDS / RevitTestFramework

Unit Testing on Revit
119 stars 81 forks source link

unrecoverable error" If Add-In used Code Check Framework dll #31

Open gopsur1975 opened 9 years ago

gopsur1975 commented 9 years ago

Hi

We have created one DLL for Revit Add-in and DLL is based Code check framework(Structural Analysis Toolkit 2015) https://apps.exchange.autodesk.com/RVT/en/Detail/Index?id=appstore.exchange.autodesk.com%3Astructuralanalysistoolkit2015_windows64%3Aen The structural analysis DLLs are located in C:\ProgramData\Autodesk\ApplicationPlugins.. We found couple issue as below

Structural Toolkit dll not loaded

  1. When we launch Revit structure explicitly, it will load all code check dlls from from above location with our Revit Add-in dll without any issue. But when revitTestFrameowrk launch Revit structure, it doesn't load any code check dlls and give error as "unrecoverable error".

Missing Third party updater

  1. When we opening job from [TestModel] its shows Missing Third party updater and show our Updater class name which have been used in our Revit-Add-in dll.. missing third party updater

journal error

StorageDocument is Null (if load the code check from debug location of RevitTestFramework folder)

1. CodeSample [Test] [TestModel(@"./Example04withresults.rvt")] public void UpdateRebarAndExpectedRebarCount() { Autodesk.Revit.DB.CodeChecking.Storage.StorageService service = Autodesk.Revit.DB.CodeChecking.Storage.StorageService.GetStorageService(); Assert.IsNotNull(service,"service is null"); //Success //Autodesk.Revit.DB.CodeChecking.Storage.StorageDocument storageDocument = service.GetStorageDocument(DocumentManager.Instance.CurrentUIDocument); //Assert.IsNotNull(storageDocument, "storageDocument is null"); //Fail } The above code is works if we use through our Revit-Addin.