Autodesk-Forge / forge-configurator-inventor

[DEPRECATED] Demo for Autodesk Forge Design Automation for Inventor
http://inventor-config-demo.autodesk.io
MIT License
44 stars 34 forks source link

I do not know how to add projects. #482

Closed genryianchev closed 1 year ago

genryianchev commented 1 year ago

Maybe a stupid question, but I'm new to this field. Everything is running, but I can't find how to add files or projects to this application, please tell me

mivasi commented 1 year ago

There are 2 ways how you can add project as there are two places where we can put the projects:

  1. Public space, where everyone are looking at. No one can add project there from within web app, but you can change the list of the projects during deployment by changing the config file https://github.com/Autodesk-Forge/forge-configurator-inventor/blob/master/WebApplication/appsettings.json#L23. There you just need to add publicly available URL leading to zip of you Inventor project you would like to add.
  2. Private space, for each of the logged in user. On the top right you can log in using the autodesk account, and then you can add you projects using web app UI button for adding the project. The only problem is, that you can see it only after login.
Gena-developer commented 1 year ago

Thank you very much, I have one more question. I 'm trying to create a file .zip it and put it in the general list, but I can't upload it to my cart. Could you please explain to me how I can create a proper zip file. This is my example. https://drive.google.com/file/d/1RPmqT-WBtyzudaoWs6GxG5mM2EoyLNU0/view?usp=drive_link

mivasi commented 1 year ago

Can you send me how does your json record looks like? I am talking about appsettings.json, where you need to put something like:

{ "Url": "https://sdra-default-projects.s3.us-west-2.amazonaws.com/WrenchForm_2023.zip", "TopLevelAssembly": "Wrench.iam", "Name": "Wrench" }

genryianchev commented 1 year ago

"DefaultProjects": { "Projects": [ { "Url": " https://drive.google.com/file/d/1iSTPlqaIRlYrqiXLCBrPfc8qJejnCXTb/view?usp=drive_link ", "TopLevelAssembly": "14-0001122.ipt", "Name": "14-0001122" }, ] },

On Wed, Jun 28, 2023 at 8:50 AM Michal Vašíček @.***> wrote:

Can you send me how does your json record looks like? I am talking about appsettings.json, where you need to put something like:

{ "Url": " https://sdra-default-projects.s3.us-west-2.amazonaws.com/WrenchForm_2023.zip ", "TopLevelAssembly": "Wrench.iam", "Name": "Wrench" }

— Reply to this email directly, view it on GitHub https://github.com/Autodesk-Forge/forge-configurator-inventor/issues/482#issuecomment-1611451171, or unsubscribe https://github.com/notifications/unsubscribe-auth/A62VPYX6BGRHOJK2SFNZRULXNQZA5ANCNFSM6AAAAAAZU4NTJU . You are receiving this because you authored the thread.Message ID: @.*** com>

--

Yours sincerely,

Gennadii Ianchev

mivasi commented 1 year ago

The link to you google drive is wrong. You need the link which immediately goes to download the thing.

Gena-developer commented 1 year ago

OK, thanks for your help, I'll try to find a way.

Gena-developer commented 1 year ago

I hope last question, I try to get my zip file but I always have like this one. I cannot understand what is wrong, I hope you can help me.

Screenshot 2023-06-28 140038

mivasi commented 1 year ago

When it fails to adopt your project, it produces report file. You can see in log output information what is the name is using to save it to "Saving ....... report to ......". It is somewhere inside the app folder, under the Reports folder. I need to see the file belonging to this processing, because without that I cannot know what is wrong.

Gena-developer commented 1 year ago

I hope this one console.log

mivasi commented 1 year ago

No. Look for this, after trying to deploy

2023-06-28 15:12:14.681 -05:00 [INF] Saving c68be8864de1473696b4f117b4d778c2 report to 2023-06-28_20-12-14_c68be8864de1473696b4f117b4d778c2.txt
Gena-developer commented 1 year ago

here all from folder Reports Reports.zip

Gena-developer commented 1 year ago

last one Reports2.zip

mivasi commented 1 year ago

What is the Inventor version you used to create the model you are using?

Gena-developer commented 1 year ago

2024

mivasi commented 1 year ago

Ok, that is the issue. This example is not yet set to use the latest version of the engine. It is using 2023, so you cannot open there assembly done in newer Inventor. Here is what you can do: Just got to this line and change 2023 to 2024 and completely redeploy the app.

https://github.com/Autodesk-Forge/forge-configurator-inventor/blob/master/WebApplication/Processing/ForgeAppBase.cs#L51

BTW: this repo should be deprecated. New stuff will happen on https://github.com/autodesk-platform-services/aps-configurator-inventor/

Gena-developer commented 1 year ago

All good, thank you so much!