Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Issue with SDK and Visual Studio

28 REPLIES 28
Reply
Message 1 of 29
Anonymous
2326 Views, 28 Replies

Issue with SDK and Visual Studio

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,

 

28 REPLIES 28
Message 2 of 29
jeremytammik
in reply to: Anonymous

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

Message 3 of 29
Anonymous
in reply to: jeremytammik

Thank you Jemery !

Message 4 of 29
Anonymous
in reply to: jeremytammik

Hi,

 

Do you have somes news ?

 

Regards,

Message 5 of 29
jeremytammik
in reply to: Anonymous

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

Message 6 of 29
jeremy_tammik
in reply to: Anonymous

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
Message 7 of 29
Anonymous
in reply to: jeremy_tammik

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

Message 8 of 29
jeremy_tammik
in reply to: Anonymous

Thank you for the details. I passed them on.

Jeremy Tammik, Developer Advocacy and Support, The Building Coder, Autodesk Developer Network, ADN Open
Message 9 of 29
Anonymous
in reply to: jeremy_tammik

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...

Message 10 of 29
jeremytammik
in reply to: Anonymous

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

Message 11 of 29
Anonymous
in reply to: jeremytammik

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

Message 12 of 29
Anonymous
in reply to: Anonymous

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

 

 

Message 13 of 29
Anonymous
in reply to: Anonymous

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 🙂

 

 

Message 14 of 29
Anonymous
in reply to: jeremytammik

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

Message 15 of 29
jeremytammik
in reply to: Anonymous

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

Message 16 of 29
Anonymous
in reply to: jeremytammik

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,

 

Message 17 of 29
jeremytammik
in reply to: Anonymous

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

Message 18 of 29
Anonymous
in reply to: jeremytammik

Hi ! 

 

Do you have somes news ? 🙂

 

Regards,

Message 19 of 29
jeremytammik
in reply to: Anonymous

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

Message 20 of 29

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.

 

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community