assembly reference error

assembly reference error

Anonymous
Not applicable
1,119 Views
5 Replies
Message 1 of 6

assembly reference error

Anonymous
Not applicable

I am getting "the type name or namespace name 'Revision' could not be found (are you missing a using directive or assembly reference?)" error while excuting for the same i have attached screen shot.

What is the assembly reference for this revision class, i am using Revit Structure 2014 in pc .

expecting solutions from experts.

 

Regards

Amith

0 Likes
1,120 Views
5 Replies
Replies (5)
Message 2 of 6

rosalesduquej
Alumni
Alumni

Dear Amith,

 

 

Did you copy the code you are using from another project where Revision Namespace existed and you forgot about it?

This error it is pretty self explanatory. It is telling you that a missing Assembly reference cannot be found in your code and you are referencing to it. I know it sounds repetitive but that is pretty much it. See the following link. 

 

https://support.microsoft.com/en-us/kb/304656 

 

The screenshot provided does not help, since there is not a lot of information other than the one you already described. So, maybe providing a bit more information about your code will help the community identify what you are missing. 

 

Cheers,



Jaime Rosales D.
Sr. Developer Consultant
Twitter | AEC ADN DevBlog
0 Likes
Message 3 of 6

Anonymous
Not applicable

Dear Jaime,

 

As i know that this reision class is newly added in revit 2015, Hope it will not work in 2014.

 

Regards

Amith

0 Likes
Message 4 of 6

rosalesduquej
Alumni
Alumni

Dear Amith,

 

Yes you are correct, this class got its first version on Revit 2015, so unfortunately 2014 will not have access to such class, sorry for the bad news.

 

Cheers,



Jaime Rosales D.
Sr. Developer Consultant
Twitter | AEC ADN DevBlog
0 Likes
Message 5 of 6

atk_vinay.krishna
Enthusiast
Enthusiast

Is there any alternatate way to create revision clouds

0 Likes
Message 6 of 6

rosalesduquej
Alumni
Alumni

Dear Vinay,

 

I did a quick search and I saw a couple of post by Jeremy where he points out that the Revision class was one of the major implementations for Revit API 2015. 

 

"

One of the major Revit 2015 API additions is access to revisions.

All prior versions provided very limited access to revision data in a project. Here are some things people achieved in spite of the limitations:

But if you read a bit more you will see there is a Wrapper Class that another API 3rd party developer used to bypass the limitation of the non-existency in Revit 2014 for example. 

 

Here is the link from where I'm quoting Jeremy. http://thebuildingcoder.typepad.com/blog/2014/06/the-revision-api-and-a-form-on-the-fly.html

 

And here is Max's Revision Wrapper Class for you to use in Revit 2014 http://thebuildingcoder.typepad.com/blog/2013/09/max-revision-wrapper-class.html

 

Cheers,

 

 



Jaime Rosales D.
Sr. Developer Consultant
Twitter | AEC ADN DevBlog
0 Likes