erfajo / OrchidForDynamo

This repository contains the content of the Orchid package for Dynamo
http://www.dynamobim.com
Other
99 stars 56 forks source link

The type initializer for 'Orchid.Core.Document' threw an exception. #26

Closed peterlund0 closed 2 years ago

peterlund0 commented 5 years ago

Revit version Revit 2018.3, revit 2019.2 Dynamo version 2.0.2 .6826 Basic scripts using Orchid fail to work currently, they all seem to have the 'The type initializer for 'Orchid.Core.Document' threw an exception' in common. Document.Name is one example of this.

erfajo commented 5 years ago

please attach a graph file so I can see what is going on.

In my test did all work as expected Capture

peterlund0 commented 5 years ago

thanks, I replicated the same thing an get this: error Orchid is the only package currently installed

erfajo commented 5 years ago

could you attach the graph file as well? you might have to rename the extension, you can do that by adding .txt in the end and then attach it.

peterlund0 commented 5 years ago

Yes, of course! Orchid_DocumentName.txt Sadly the same error occurs on most Orchid nodes. Something seems to stop it from starting up properly

erfajo commented 5 years ago

Your graph worked perfectly at me... So the problem must be another package you have installed. Try to remove the other packages (move them to desktop) to see if my package works. Try then to put the packages back one for one until you find the one which causes the error.

Could it be so, that you have installed Lunchbox and you had taken the last one available at the PM? if so, please remove that and install Lunchbox using their installer. I know that Lunchbox had a couple of older versions which gave problems before they also moved out of the PM as i did.

peterlund0 commented 5 years ago

I've already tried removing other packages. But there are some (10) notifications on dynamo startup, see the attached txt file. DynamoNotification.txt. Outside of revit I also have enscape and pyRevit, could it be another addin causing this? Revitapi

erfajo commented 5 years ago

pyRevit has another version of Json which gives problems, but then I would expect other ZT packages in the 2.x range would give errors as well. do you have access to other computers? If so, do they give errors?

I think it is a system error somewhere... mixing many plugins and dynamo and all the version conflicts there is with different version of revit could be a problem.

peterlund0 commented 5 years ago

Yes, I've had problems on other computers already, but virtual ones (with folder redirect that was shared between desktops...), This was a test on a somewhat simpler setup. But I can maybe try another one, without the extras first and provoke this to happen again.

erfajo commented 5 years ago

are you using virtual computers? this might be a problem. I dont have such an environment, so I dont test for this in any way...

at DynamoDS github could you try to search for issues concerning pyRevit and Dynamo, try to see if there is anything solved in relation to this

peterlund0 commented 5 years ago

No, I've failed before on virtual computers, but this particular problem was at an physical computer

erfajo commented 5 years ago

Well I am afraid you problem is outside the range of where I can solve your issue. What is causing it can be many things. I hope you will succeed finding the needle in the haystack :-)

peterlund0 commented 5 years ago

Ok, thanks anyway! I'll probably investigate it further with a clean install and see if I can find the cause of the issue, the package seems really useful!

erfajo commented 5 years ago

I have just released a huge rebuild of the existing version and a release for Dynamo 2.1.x Try to download the update, but be aware of the migration problem dynamo has! https://erfajo.blogspot.com/2019/04/minor-release-13450-20250-and-major.html

DeLaPampa commented 5 years ago

Hello, I have exactly the same problem (in French). It's not possible for me to use Orchid anymore because most of nodes returns this error (translated) Warning: Parameter.AddParameter the operation failed. An exception was thrown by the type initializer for 'Orchid.Core.Document'

DeLaPampa commented 5 years ago

Maybe if someone has the answer....one day...

erfajo commented 5 years ago

Try to upload your graph file, remember to add the extension ".txt" to the file so it can be uploaded.

French could be a problem... I heard the other day some other programmers I know had a problem with Revit released in other languages than English. Methods got a completely other name. In such case will I try to see if it is a very small revision it takes, if not, then is my suggestion to shift into English version of Revit.

erfajo commented 2 years ago

This issue is being closed due to no activity for a while.