skip to Main Content

We use a custom ipt template for Autodesk Inventor that has the default orientation as ‘Z up’. When we translate files that were created with this template using the autodesk-model-derivative services or even if using the translation tools in the platform services extension in Visual Studio code, the orientation defaults to Front view.

The default orientation(https://phpout.com/wp-content/uploads/2023/06/JkEcm-jpg.webp)

The translated orientation:(https://phpout.com/wp-content/uploads/2023/06/HQf7T-jpg.webp)

This is a new issue that we haven’t see before as we’ve been running the same way for 3 years now on our site. This has only happened to our files upon a recent move to a new PS account and new bucket setups / translations.

Are there any changes done to the autodesk-model-derivative services that would cause something like his to happen or are we missing something else?

Again, this only happens to any file that was created with our custom Inventor template and then uploaded and translated.

We tested the process of using the standard IPT template to create a file, uploading and translating and it comes across fine.

2

Answers


  1. Chosen as BEST ANSWER

    This is still unclear to why the conversion is now changing the default view. The problem seems to have stemmed from moving our previously working files from 2020 Inventor to 2022. When we translate to SVF, the orientation is wrong. Very strange issue that has just popped up recently for us. Only happens with Inventor files that use our custom templates with Z 'Up' orientations. I'll setup the viewcube and see what happens. Thanks for the help.


  2. As mentioned in the comments under your question, it’s not clear whether you’re having problems with model orientation or with default camera view. If it’s the latter, please note that you can control the camera using various viewer APIs as well. For example, the following code snippet will wait until the initial model data is loaded, and after that it will set the camera to the "top right back" view:

    viewer.addEventListener(Autodesk.Viewing.MODEL_ROOT_LOADED_EVENT, async function () {
        const viewCubeExt = await viewer.loadExtension('Autodesk.ViewCubeUi');
        viewCubeExt.setViewCube('top right back');
    });
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search