Autodesk-Forge/forge-configurator-inventor

Changing and reading the bom contents error

hamdidamar opened this issue · 3 comments

I found fault around here and here . Does not appear when compiling via visual studio, but detected as an error on vs code. The second problem can be solved simply by adding tostring at the end. But i don't know how to solve the first problem
image
image

Also, although I change the columns and compile the project, the incoming data does not change.

Hello. Projects you are referencing above are Windows .NET Framework projects and therefore need to be compiled by Visual Studio, not VS Code. Those projects are Design Automation AppBudles, which are running on the Autodesk servers not your machine, so if you want to make there changes you need to upload them to DA afterwards. This can be either done manually, or automatically by running the server with the argument dotnet run bundles=true from the WebApplication folder.

I am compiling from visual studio already. and I run the project from there. After the compilation, it works successfully on 13 projects. But errors appear where I point. And although I changed the code and compiled it, there is no change on the boom list.
I simply want to do, for example, I'll add the total quantity column. I write this
new Shared.Column { Label = "Material" }, new Shared.Column { Label = "Total Quantity" }
here and add the property inside the object.Like material.Value, row.TotalQuantity then I compile and run the project. But there is no change in the boom data and the new column does not appear.

image

as you can see in the picture when i print the boom data to console, there is no change
image

Hello.

Let me elaborate on my earlier post in regards to your finding, that changes you make in the AppBundles has no effect. This project consist of two independent parts:

  1. Most of the content of the WebApplication folder can run on your local machine, you can debug it there and any change you make there is visible in runtime right after you compile it and run it
  2. Sources in the AppBundles directory are on the other hand compiled to dlls (we call them AppBundles), which does not run on your machine. Since Design Automation is a Cloud service allowing customers to run their code (AppBundles) on the Autodesk machines on the internet, those DLLs needs to be deliver there. That can be accomplished by the Design Automation API, which is in this case already employed in our WebApplication server. So, once you compile the AppBundles using Visual Studio, you need to ask the WebApplication code to publish your changed dlls on the Autodesk server. And that can be done by running the web server using this command dotnet run bundles=true.

Regards, Michal