Saving PDF Calibration in Autodesk Forge Viewer - autodesk-forge

Does the Calibration measurements performed on the PDF file in Autodesk Forge Viewer can be saved along with the PDF, so that opening the PDF again can show the saved calibrations.
Thanks!

You can get the calibration factor with this function :
var calibrationFactor = viewer.getExtension("Autodesk.Measure").calibrationTool.getCalibrationFactor()
And then you can apply it using :
viewer.getExtension("Autodesk.Measure").calibrationTool.setCalibrationFactor(calibrationFactor)

Related

Autodesk Forge Custom parameters from revit

In revit project, my plugin add custom parameters in some of the sheets
Now, I convert the rvt file to svf2 format with derivative api and display the svf2 with the forge viewer.
I should read my custom parameters and there values (only read, not display) and use them in my viewer extension, but I do not find them in the model.
so question:
are the parameters exported ?
if yes, how can I retrieve them ?
thanks in advance
regards
Luc

Is IDF format file viewable in Autodesk Forge?

I would like to export circuit file to idf format in Altium Designer and see it on Forge. Is it possible?
If you talk about the forge viewer, you will find a list of supported formats for translation here :
https://forge.autodesk.com/en/docs/model-derivative/v2/developers_guide/supported-translations/
To visualiaze a file in forge viewer you need to previously upload, then translate it to SVF/SVF2 which is the viewer default format

Open Excel file in Autodesk Viewer

I want to open Excel and Doc file (.xlxs and .docx) in Autodesk viewer using datamanagement api .
I want to open Excel and Doc file (.xlxs and .docx) in Autodesk viewer using datamanagement api
Can anyone give an idea on this .
Any help is appericiated.
In the case of PDF files, you don't even have to translate them in order to show them in the Viewer - if you translate them, then Leaflets will be generated for them: https://forge.autodesk.com/blog/markups-leafletloader-vs-pdfloader
I think the easiest thing would be if you generated PDF for your Excel and Word documents and opened them in the Viewer like that.

How to know file size of translated SVF file in forge viewer

I have using for forge API services for Revit and Naviswork files display. In that how to check translated SVF file size.
Please provide the solution to check file size of translated SVF file.
Thanks.
As soon as you load a model of the Viewer, it will show the memory used (see console output). As the viewer loads files on demand, the total SVF size (on disk) should not affect your app.

Generate one Viewer file from two design files on Autodesk Forge

Using Autodesk Forge Viewer
I want to generate one viewer file from two IFC files with the Forge API.Can I do that with the Model Derivative API?
You can translate “composed” files (e.g., assembly and part files in Inventor, or XREFs in AutoCAD): https://forge.autodesk.com/en/docs/model-derivative/v2/tutorials/translate-composite-source-file-to-stl.
Alternatively, you could translate your IFC files separately and load them both into the viewer: https://forge.autodesk.com/blog/supporting-multiple-models-new-modelstructurepanel.