gxNewDocumentByDevice (string) : string

Opens a new project document with a certain device. This is similar to selecting the device in the GalepX user interface.

Parameters:

string - path of the device relative to the device tree root, f.i. "standard/dnATMega88.fmMCU.mnAtmel/edGALEP.ev00+GX.mdDIL28.pkDIL28"

Returns:

string - identifier of the new document. Normally a document ID consists of the string "document" followed by a number, such as "document0", "document1", etc.

Example:

#include "gxAPI/gxBasic1.h"  
string sDevice = "standard/dnATMega88.fmMCU.mnAtmel/edGALEP.ev00+GX.mdDIL28.pkDIL28";
gxNewDocumentByDevice(sDevice);

See also:

gxImportProject, gxStartAction

► latest version online