Skip to content
This repository has been archived by the owner on Aug 15, 2023. It is now read-only.

Not an issue - seeking help #418

Open
paulojserrano opened this issue Sep 13, 2021 · 6 comments
Open

Not an issue - seeking help #418

paulojserrano opened this issue Sep 13, 2021 · 6 comments

Comments

@paulojserrano
Copy link

Hi. Forgive me if this is in the wrong section, but I have a few questions that may be simple to answer for someone with more experience.

  1. What files must I modify to change the header to include my own styling?
  2. How can I add a "export as .stp" and "export as .dwg" option?

Thanks so much,
Paulo

@mivasi
Copy link
Collaborator

mivasi commented Sep 13, 2021

Hi @paulojserrano ,

  1. I hope I understand well that you are interested in change the header branding like (Logos and name of the application in title)
    a. Forge logo is in https://github.com/Autodesk-Forge/forge-configurator-inventor/blob/master/WebApplication/ClientApp/public/logo.png
    b.Title Autodesk Forge can be changed in here https://github.com/Autodesk-Forge/forge-configurator-inventor/blob/master/WebApplication/ClientApp/src/components/toolbar.js#L75
    c. Autodesk logo is in https://github.com/Autodesk-Forge/forge-configurator-inventor/blob/master/WebApplication/ClientApp/public/logo-xs-white-BG.svg
    If you change these files and make sure sizes are the same it should work. If you need to change them more (including sizes or positions) just look for the filenames in code where you can do necessary changes.

  2. It will include changes in UI application, Backend application and also creating new Inventor plugin doing stp export. Last two are described here https://github.com/Autodesk-Forge/forge-configurator-inventor/wiki/How-to-add-new-Inventor-plugin. UI changes should be done in downloads component which is here https://github.com/Autodesk-Forge/forge-configurator-inventor/blob/master/WebApplication/ClientApp/src/components/downloads.js

@paulojserrano
Copy link
Author

paulojserrano commented Sep 14, 2021

Thanks, that was very helpful! I have another question:

I was able to deploy to Azure, but it only works if I keep completion check as "Polling". Relevant code below. Is this something you've seen before?

appsettings:
"Publisher": { "CompletionCheck": "Polling", "CallbackUrlBase": "http://myapp.azurewebsites.net/" }
Program.cs
if (cmdLine.GetValue<bool>("migration") == true) { host.ConfigureServices((hostContext, services) => { ServiceConfigurator.ConfigureServices(hostContext.Configuration, services); }); } else { host.ConfigureWebHostDefaults(webBuilder => { webBuilder.UseStartup<Startup>(); var port = Environment.GetEnvironmentVariable("PORT"); // If deployed to a service like Heroku, need to listen on port defined in the environment, not the default one if (!string.IsNullOrEmpty(port)) { webBuilder.UseUrls("http://*:" + port); Log.Logger.Information($"PORT environment variable defined to:{port}"); } }); }

when I change the "Polling" to "CallbackUrlBase" the app fails to load.

@mivasi
Copy link
Collaborator

mivasi commented Sep 16, 2021

Hi @paulojserrano,
you are not the first one having issue on Azure with using callbacks on FDA. See #417

Let me try it on our own, to try to reproduce your issue and I will get back to you.

@mivasi
Copy link
Collaborator

mivasi commented Oct 14, 2021

Hi @paulojserrano,

I don't know if you already read that, so just to make sure, this should help #417 (comment)

@paulojserrano
Copy link
Author

Hi @mivasi , I think the callback issue is still not resolved. (If I understood correctly)

It seems that #417 can only work if it is set to "polling"

@MikeGie
Copy link

MikeGie commented Oct 28, 2021

Hi @paulojserrano,
yes, I am still using polling and waiting for some help to change to callback.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants