Issue with SDK and Visual Studio

Issue with SDK and Visual Studio

Anonymous
Not applicable
4,152 Views
28 Replies
Message 1 of 29

Issue with SDK and Visual Studio

Anonymous
Not applicable

Hi ! 

 

I working on a add-in for revit.

I installed the SDK and I have got Visual Studio 2015 and 2017.

 

I followed "Getting Started for Extensions SDK", so i copy past the folder from "..\Software Development Kit\REX SDK\Visual Studio templates\items\" to "C:\Users\<current user>\Documents\Visual Studio 2015\Templates\ItemTemplates\Visual C#\" and same for Project.

 

When i want to create my project, i see the revit extension WPF/Form. 

But when I want to process, i got a error message :

 

"Error : this template attempted to load component assembly 'Autodesk.REX.Framework, Version=2018.0.0.0, Culture=neutral, PublicKeyToken=<a code i don't know if i can put>'. For more information on this problem and how to enable this tempalte, please see documentation on Customizing Project Template.

 

Can you help me to fix it out ?

 

Best Regards,

 

0 Likes
4,153 Views
28 Replies
Replies (28)
Message 2 of 29

jeremytammik
Autodesk
Autodesk

Please hang on... I asked the Revit Structure API and REX experts to take a look at your question.

 

Cheers,

 

Jeremy

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 3 of 29

Anonymous
Not applicable

Thank you Jemery !

0 Likes
Message 4 of 29

Anonymous
Not applicable

Hi,

 

Do you have somes news ?

 

Regards,

0 Likes
Message 5 of 29

jeremytammik
Autodesk
Autodesk

Sorry that they have not responded yet. I re-prompted for an answer...

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 6 of 29

jeremy_tammik
Alumni
Alumni

They now replied:

 

I tried to reproduce the problem with Revit 2018,  Revit 2018 SDK and unfortunately it works correctly.

 

I need more information from the customer.

  

Which version of Revit the customer has installed and which version of SDK he has?

  

The Autodesk.REX.Framework should be installed in GAC with Revit.

 

C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Autodesk.REX.Framework\v4.0_2018.0.0.0__51e16e3b26b42eda

 

Cheers,

 

Jeremy

 

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 7 of 29

Anonymous
Not applicable

Hi !

 

I have revit 2019

The SDK has been setup with the revit setup

I have the dll AutoDesk.Rex.Framework on C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Autodesk.REX.Framework\v4.0_2018.0.0.0__51e16e3b26b42eda

 

Regards,

Maxence

0 Likes
Message 8 of 29

jeremy_tammik
Alumni
Alumni

Thank you for the details. I passed them on.

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 9 of 29

Anonymous
Not applicable

Something else,

 

I followed this walkthrough http://help.autodesk.com/view/RVT/2019/ENU/?guid=Revit_API_Revit_API_Developers_Guide_Introduction_G...

 

I followed all the step, third times on tree different computer, i don't get error, but i don't have the "external button" in Add In tab...

 

What's wrong with my configuration ? 

I'm out of solution...

0 Likes
Message 10 of 29

jeremytammik
Autodesk
Autodesk

Your new question has been discussed many times previously in many variations.

 

Search the forum for an answer.

 

On the REX SDK for Revit 2019, please refer to this new blog post that I published, just for you:

 

http://thebuildingcoder.typepad.com/blog/2018/06/rex-sdk-visual-studio-templates-for-revit-structure...

 

Cheers,

 

Jeremy

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 11 of 29

Anonymous
Not applicable

Super, i don't get the error when creating project with the template now.

 

I didn't go further, i gonne make more test next week and keep you update

 

Thank you !

 

Regards,

Maxence

0 Likes
Message 12 of 29

Anonymous
Not applicable

Hello,

 

Somes fresh news,

 

I created the project, and modifie the Run methode in the ExtensionsRevit.cs, but when i rebuild the solution, i got those compilating error :

 

What can i do ?

 

Regards

 

 

0 Likes
Message 13 of 29

Anonymous
Not applicable

So... i'm an idiot..

 

I just changed the targeted framework and only left 2 Warning, about missmatch between the processor, but i think i sew how to resolve that in one of your post.

 

Keep going 🙂

 

 

0 Likes
Message 14 of 29

Anonymous
Not applicable

Hey @jeremytammik 

 

We are getting the same problem with the version 2020 of the sdk as we got for the version 2019.

 

Can you check ?

 

Thanks,

Maxence

0 Likes
Message 15 of 29

jeremytammik
Autodesk
Autodesk

No, sorry, I cannot check, since I do not know exactly what you are talking about.

 

Please describe in detail what you are doing and what behaviour you observe.

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 16 of 29

Anonymous
Not applicable

Sorry, the button reply dont work as I thought it does.

 

So, we have the same problem as the first post of this thread :

 

We got the sdk 2020 and when we use the template to create de new project, we are getting this error :

 

"Error : this template attempted to load component assembly 'Autodesk.REX.Framework, Version=2018.0.0.0, Culture=neutral, PublicKeyToken=<a code i don't know if i can put>'. For more information on this problem and how to enable this tempalte, please see documentation on Customizing Project Template.

 

We got the same problem when we got the sdk 2019, and you helped me through :

https://thebuildingcoder.typepad.com/blog/2018/06/rex-sdk-visual-studio-templates-for-revit-structur...

 

Regards,

 

0 Likes
Message 17 of 29

jeremytammik
Autodesk
Autodesk

Thank you for the explanation.

 

Okey-doke, I asked the development team for you.

 

Best regards,

 

Jeremy

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 18 of 29

Anonymous
Not applicable

Hi ! 

 

Do you have somes news ? 🙂

 

Regards,

0 Likes
Message 19 of 29

jeremytammik
Autodesk
Autodesk

Thank you for the prompt.

 

Nothing new yet, so I re-prompted the developer team as well.

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 20 of 29

Anonymous
Not applicable

Has this issue been resolved for the 2020 SDK?

 

I'm getting virtually the same error message as m.degraux. Using Revit 2020 and VS 2017.

The only difference is, my error message states 'Version=2019.0.0.0' while m.degraux's refers to 2018.

 

 

0 Likes