Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

As mentioned in this page https://docs.techsoft3d.com/hps/latest/prog_guide/0906_exchange_integration.html#importing-multiple-models
You can import multiple models into the same scene graph using HPS::Exchange::ModelFileImportOptionsKit::SetLocation.

This sample shows in our forum post how to import multiple models which have different units into the same scene graph and display the model in the correct size.

 Instructions

  1. Import CAD model using HOOPS Exchange API

  2. Get the unit of A3DAsmModelFile using A3DAsmModelFileGetUnit

  3. Create a scale matrix from the units to display the model in millimeter

  4. Import A3DAsmModelFile under the existing CADModel in the scene graph with SetLocation

...

.

...

When using HOOPS Exchange API, you need to include header file, and load and initialize Exchange library. https://docs.techsoft3d.com/exchange/latest/guide/start/initialize-hoops-exchange.html

...