Basic Principles

Each "object" within a project file has its own handle ("DOM handle"). The functions of the DOM-API use this handle to uniquely identify objects. An "object" in this sense is any designer object, but also other elements such as auxiliary lines, project parameters etc. The DOM viewer included in the scope of supply enables a quick overview of all objects, their value and other properties. In addition, properties / values can be changed with the viewer, and saved in the project. The clipboard function enables any object or property to be copied to the clipboard for further use.

The functions relevant for the DOM-API are divided into 2 groups: first, project files can be loaded, created and saved. The functions LlProjectOpen(), LlProjectClose() and LlProjectSave() are available for this purpose. The function LlDomGetProject() (called immediately after LlProjectOpen()) returns the DOM handle for the project object. This then provides the basis for using the other functions.