Hi all,
As the title suggests I am having difficulty building the sample solution. I have followed the read me, adding in the environment variables etc. yet for some reason Visual Studio simply won't build the solution!
I checked the environment variables many times, checked that the references are loaded in the project correctly as well but when I go to build there are 86 errors:
My references look ok though:
Has anyone experienced this issue before? I am using VS 2017 community edition, with the following workloads installed:
Additionally I have installed .Net framework 4.6.1 & 4.6.2
I get the feeling there might be issues with the latest sample solution or assemblies, since when I run the 'last successful build' I get the following error:
Which obviously doesn't exist since the path should read "C:\Program Files\Bentley\OpenBuildings CONNECT Edition\OpenBuildingsDesigner" not "C:\Program Files\Bentley\OpenBuildings CONNECT Edition\Designer"
Any help would be greatly appreciated!
Thanks,
Edward
Hi Ed,
I recall changing the paths a bit to get it working.
I am using VS 2019 but all should be the same.
Right click on the sample Add-in in the solution explorer and select properties.
I changed the paths under the debug tab.
I did also change the .NET version in the targeted framework in on the application tab.
attached a couple of images.
That should get it working.
Thanks
Wayne
Answer Verified By: Edward Ashbolt
Fantastic thanks for that Wayne, I'll give that a try. It does seem to be an issue with paths so hopefully that is all that is necessary to get it up and running.
Have a great Christmas mate!
Ed
Thanks for that Wayne, that was a big help: It was the target framework that was giving me the errors... who would have thought that it would be delivered with the wrong .NET framework set lol.I've made a start on a custom node to enable a more comprehensive property handler:
This was just phase 1 to retrieve a list of all the properties; next I will complete the list of values and enable read/write access to them. This will mean that we can have enhanced filtering of all elements (by element description or ID for example), and also the get/set of Parametric cell values.
Will let you know how it all goes, and thanks again for the help it was much appreciated!
Edit -
Got a full list of values now; so this node method reads all the access strings and values... all that is left to do is create a new method for writing values back to the element based on user specified access strings and it's good to go!Cheers,Ed