-1

I want to view revit and inventor files at the same time using autodesk forge. But one of the files is not standing straight.

to the revit file;

model.getUpVector()

output when i type

(3) [0, 0, 1]

to the inventor file;

model.getUpVector()

output when i type

(3) [0, 1, 0]

way it happens. Is there a function where I can set the setUpVector while loading the models?

1 Answers1

0

In LoadModelOptions use placementTransform to change the scale and rotate the model 90' on the Y axis.

Please refer this blog

varunpatil
  • 428
  • 1
  • 3
  • 6
  • Thank you for your answer, I already use it as you stated. But this may not be a healthy solution. For example, https://imgur.com/a/PxLP1ey, as seen in the picture, the door dimensions we drew in the inventor are correct, but not in the example we got from the inventor's own site. So we may need to write a separate "LoadModelOptions" for each inventor file. I want to make this more standardized. https://imgur.com/a/zUj6G0C I think the main reason for this problem is that the scales and vectors of inventor and revit do not fit together as seen in the picture. – MucahidTadik Sep 21 '22 at 06:56
  • yes, the scales between Revit and inventor files are different, we cannot standardize building and nut sizes. – varunpatil Oct 27 '22 at 11:32