CADViewer Technical Documentation, Installation Guide and Reference Samples Library

CADViewer Callback Methods

CADViewer has implemented a set of call-back methods when an action has been performed on the canvas or a file has loaded:

General Functional Callback Methods

These Java Script callback methods must be implemented as placeholders.

Canvas Interaction Callback Methods

CADViewer provides the ability to add click-handlers to graphical objects in display CAD file. These objects are defined by the Entity Handle in the originating AutoCAD or MicroStation file being displayed by CADViewer. The *Entity Handles are parsed by adding the following conversion control parameter -hlall , see more in the section Conversion Control Parameters and AutoXchange 2023 parameter interface.

          cadviewer.cvjs_conversion_addAXconversionParameter("HLALL", "");		 

These Java Script callback methods should be implemented as placeholders. In the npm based CADViewer GitHub repository samples, these are all implemented as defined callback methods.

Last updated on 10 Aug 2022
Published on 9 Apr 2020