PreviousNext
Help > Programming PhotoModeler - Scripting/DDE Interface
Programming PhotoModeler - Scripting/DDE Interface

PhotoModeler has a text / script command API that provides many functions that duplicate user interface functions. The commands can be entered in the Run Script Dialog or can be sent to PhotoModeler from external applications through  Windows DDE  (Dynamic Data Exchange).

For external access, PhotoModeler acts as a DDE server (a server accepts DDE commands and responds to them).  To talk to PhotoModeler you will need to use a DDE client (a client initiates a DDE connection to a DDE server and sends commands to it).

DDE clients can be written in many Windows programming languages but one of the easiest is Visual Basic by Microsoft. Other programs like Microsoft Word, Microsoft Excel and Autodesk AutoCAD can act as DDE clients by using Visual Basic for Applications (VBA).  Other programming languages like C, C++ and Java may also have DDE command interfaces.

Not every aspect of PhotoModeler can be accessed through scripting.  The following subsections outline the API commands and provide an example using Microsoft VBA for external programmatic access.

Note: DDE is a mechanism built into Microsoft Windows and is not a system developed by PhotoModeler Technologies.  To that extent, PhotoModeler's DDE capability is dependent on DDE functioning correctly on your machine.