GridLoadCallback_xxx is called when the user presses the Load button in the data browser.
Return Value
bool is TRUE (1), when the function was successful and otherwise FALSE (0).
Example
ADDIN_AddToUI(ADDIN_LOAD_FUNCTIONS, _s("3D: x/y/z"), "3D");
def GridLoadCallback_3D()
{
ncid = GridGetNCID();
ssNetCDFName = NC_DlgGetFileName();
_CreateDataset(ncid, ssNetCDFName, 2);
return TRUE;
}
def GridLoadEnableCallback_3D()
{
return ["x:", "y:", "z:", ""];
}
See also
Overview netCDF File Browser, Overview UniPlot Data Files, GridLoadEnableCallback_xxx, GridLoadEnableCallback_xxx, ADDIN_AddToUI, NC_DlgGetFileName
id-1216008