Migrating apps using Revit 2017 Beta

Migrating apps using Revit 2017 Beta

Anonymous
Not applicable
2,016 Views
4 Replies
Message 1 of 5

Migrating apps using Revit 2017 Beta

Anonymous
Not applicable

Hello,

 

I downloaded the beta because I got an e-mail from Autodesk urging me to start the 2017 migration process. 

Compiling against the new dll's caused a lot of errors that made no sense, so I started a simple project from scratch in VS 2013, framework 4.5

 

Created a class library that refers RevitAPI.dll and RevitAPIUI.dll, added a few lines of code to see if it compiles. That's all

 

When I use the 2016 dll's this compiles fine,  but when I use the 2017 dll's I get errors, see below

Does this relate to the .Net framework (target framework) I am using?

Do I need to migrate to 2015 for this?

 

I could not find any documents online yet for this, maybe I overlooked something

revit.PNG

 

Error 50 The type or namespace name 'IExternalCommand' could not be found (are you missing a using directive or an assembly reference?) C:\development\vs2013\BIMHelpers 2015\CSharp projecten\APITest\BHTest.cs 14 27 APITest
Error 51 The type or namespace name 'Result' could not be found (are you missing a using directive or an assembly reference?) C:\development\vs2013\BIMHelpers 2015\CSharp projecten\APITest\BHTest.cs 16 16 APITest
Error 52 The type or namespace name 'ExternalCommandData' could not be found (are you missing a using directive or an assembly reference?) C:\development\vs2013\BIMHelpers 2015\CSharp projecten\APITest\BHTest.cs 16 31 APITest

 

 

 

0 Likes
Accepted solutions (1)
2,017 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
Accepted solution

Found it. I have to set target framework to 4.5.2 

 

cheers

Jeroen

 

0 Likes
Message 3 of 5

jeremytammik
Autodesk
Autodesk

Dear Jeroen,

 

Please be aware that discussing this issue in public is probably in violation of your non-disclosure agreement.

 

Issues regarding this topic can be discussed in the private Autodesk beta forum.

 

Thank you for your understanding.

 

Best regards,

 

Jeremy



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

0 Likes
Message 4 of 5

Anonymous
Not applicable

Oooooops! I am sorry. Well, at least I did not disclose any information regarding the Revit API functionality. 

Thank you for pointing this out to me though

 

cheers

Jeroen

0 Likes
Message 5 of 5

jeremytammik
Autodesk
Autodesk

Dear Jeroen,

 

Thank you for taking notice! 

 

No problem, I assume, and you are not the first to mention those taboo words here in the forum.

 

Still, it is important to be aware of the NDA.

 

Thank you!

 

Cheers,

 

Jeremy



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

0 Likes