Language and Menu Layout
Language Settings
All text elements in the menu system is loaded in from an XML file at initialization. The method cvjs_loadCADViewerLanguage() sets the language and location of the XML file.
Click on the method to open the API documentation.
- cvjs_loadCADViewerLanguage() - required
Icon Menu Layout
Application programmers can control the menu interface through the menu settings. The menu system is built based on instructions in an XML file loaded from cvjs_setTopMenuXML().
Furthermore, application programmers can also turn off the CADViewer icon interface and the CADViewer page navigation modal, and use the API to access the CAD canvas through their own interface.
Methods to control visibility of the CADViewer Icon Interface. Click on the method to open the API documentation.
-
cvjs_displayAllInterfaceControls() - optional
-
cvjs_displayTopMenuIconBar() - optional
-
cvjs_displayTopNavigationBar() - optional
Method to control the layout of the CADViewer Icon Interface. Loads in the top icon menu system from an XML file The XML file. The XML file allows custom settings of the number of menu pages, the start menu page and content of each page, based on the selection set of available API commands. Click on the method to open the API documentation.
- cvjs_setTopMenuXML() - optional
Sample XML Icon Menus
Below is a set of sample XML Icon Menus: