![]() That's it! Now you can use the gltf viewer in your Onshape documents, and you can refer to your app-gltf-viewer-clone repository in Github to see how the app handles authentication. Once the model is rendered, the following controls are available to you: If you think there is an issue loading or rendering your model, you can open the Javascript console of your browser to check for any errors. Note that if you have a complex model with a lot of parts, translating the model to GLTF can be time consuming. Give the gltf viewer a few moments to load. Click the Select an item dropdown and choose an Element.When prompted, click Authorize application.With at least one Part in the document, click the + button in the bottom-left corner of the Onshape screen, then click Applications > gltf-viewer.Create a new Onshape document or open an existing one.Search for gltf-viewer- and select it from the search results.Run the following in your command line: git push heroku.Commit your changes by running git commit -am "First commit".Run heroku config and confirm your settings are correct. Heroku config:set SESSION_SECRET=.booties.at.midnight.37 ! Heroku config:set WEBHOOK_CALLBACK_ROOT_URL= Heroku config:set OAUTH_CLIENT_SECRET=SECRETVERYLONGSTRING= Heroku config:set OAUTH_CLIENT_ID=VERYLONGSTRING= Replace the bracketed text with a secure password string.heroku config:set WEBHOOK_CALLBACK_ROOT_URL=/.Replace the bracketed text with your OAuth client secret from the dev portal from Create an Onshape OAuth app, Step 6.Replace the bracketed text with your OAuth client ID from the dev portal from Create an Onshape OAuth app, Step 7.Replace the bracketed text with your Heroku app URL from Create a Heroku app, Step 6.heroku config:set OAUTH_CALLBACK_URL=/oauthRedirect.For example: ALT + P: accesses the PMI tab on the ribbon. Commands for the quick access toolbar, ribbon bar, and Solid Edge application menu can all be accessed here. In your command line, run heroku login and follow the onscreen prompts to log in to your Heroku account. Begin by pressing the ALT key, which presents the shortcut keys for the commands. Make sure Docker is open and running on your machine. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |