How to import and visualize 2D drawings in Web Toolkit

How to import and visualize 2D drawings in Web Toolkit

We have a ready-made Drawing Viewer Example that shows drawings: sheets, layers, elements in a browser. Its source code is available here on GitHub. It can be implemented into your solution.
​
In order for the Web Toolkit to display the drawing, the latter will need to be converted to CDXWEB format first. CDXWEB is a highly compressed web-friendly format we use in Web Toolkit. Here's an a demonstration of how a JT file is prepared.


    • Related Articles

    • Web Toolkit

      CAD Exchanger Web Toolkit is a set of JavaScript libraries to visualize, explore and analyze 3D CAD models. Unlike Autodesk Forge, Web Toolkit can be used to develop web applications running entirely on premise (i.e. inside a corporate network) ...
    • Is it possible to save edits applied in Web Toolkit?

      Web Toolkit add-on provides functionalities for visualization, analysis and export of 3D data in web browsers. However unfortunately since it's mostly a visualization tool, it doesn't allow editing. A user will be able to manipulate parts of the ...
    • How to measure distance between Shapes, lengths of Edges and surface area in Web Toolkit

      To measure the minimal distance between two selected Shapes, use createDistanceFromShapes method of ModelPrs_MeasurementFactory class. To measure the length of an Edge, use computeEdgeLength method of ModelAlgo_CurveLength class. It will be computed ...
    • How to import PMI into Unity

      CAD Exchanger Unity plugin can import PMI into Unity. See our ready-made Unity PMI Viewer Example. ModelData_ModelReader has the ReadPMI parameter. It has to be set to True using SetReadPMI method. This will make CAD Exchanger import PMI from the ...
    • How to import CATIA models with hidden elements

      CAD Exchanger SDK does not import hidden elements from CATIA by default. To import them, enable the ImportHiddenObjects parameter for CAT_Reader: CAT_Reader aReader; CAT_ReaderParameters aParams; aParams.ImportHiddenObjects() = true; ...