Description: Removes selected RunMaterials records from a run when their materials are not used by experiment parameters. Used materials are retained and listed in a warning.
Calling convention: CIP_RaceLab_RemoveRunMaterials("RunID": Integer, "CommaSeparatedListOfRunMaterialIDs": String): NULL
Parameters:
RunID: database identifier of the owning run.
CommaSeparatedListOfRunMaterialIDs: comma-separated RunMaterials record IDs, not material IDs.
Returns: Always Variant NULL. An empty list has no effect; invalid IDs, configuration errors and SQL errors may raise exceptions.
Availability: Conditional: available only in builds compiled with CIP_RACELAB. Requires write access and the RaceLab/Chemspeed configuration.
Example:
CIP_RaceLab_RemoveRunMaterials(RunID, "501,502");