Hi
Can I inject the requestheader in communicator Webviewer property information?
hwv = new Communicator.WebViewer ({
containerId : viewerId,
endpointUri : modelpath,
requestHeader(?) : ~ ← like this
})
I wonder if there is any attribute information that can inject the requestheader.
And I have one more question
I want to convert the ifc file stored in object storage
through convert.bat in docker and store it in object storage again.
Is it possible to run covenert.bat on docker?
If it is possible to run it,
I wonder if I have to place the convert.js file as well.
If you have any examples or information about it, please.
I just wanted to chime in on this thread regarding running a Docker container. Please find below steps to get Converter up and running:
Download a fresh Linux copy of Communicator from the Developer Zone, if you don’t have one already.
Download the following zip file and unzip its contents to the root directory of the extracted package from step #1: docker_files.zip (563 Bytes)
So at this point, if you called ls -l on the root directory, you would get this:
Run the following command to ensure that converter-entrypoint.sh has the proper permissions BEFORE building the image: chmod +x converter-entrypoint.sh
Build the Docker image with this command: sudo docker build -t communicator-converter:latest .
Run a Docker container with the following command (NOTE: modifications are needed to fit your environment – marked in bold font):
sudo docker run --mount type=bind,source=/home/ubuntu/HOOPS_Communicator_2023_SPXx /authoring/converter/example/_data/Moto,target=/opt/ts3d/cadfiles --mount type=bind,source=/home/ubuntu/HOOPS_Communicator_2023_SPXx ,target=/opt/ts3d/output communicator-converter --input /opt/ts3d/cadfiles/_MOTO_X.asm --output_scs /opt/ts3d/output/moto.scs --output_png /opt/ts3d/output/moto.png –license ‘your_license_key’
Please change the root directory to fit your environment. Also, you will need to get your own license key and place it between the single quotes.
Now if all goes according to plan, you should now see moto.png and moto.scs in the root directory:
You can, of course, further modify the command in step #5 to include other Converter command-line options.
With respect to using object storage, the answer is yes, you can retrieve and store from object storage such as Amazon S3. A brief high-level description of the workflow is provided in our docs covering Docker support.