TaskLoadModuleFromFile Method |
Loads a RAPID module to the task.
Namespace:
ABB.Robotics.Controllers.RapidDomain
Assembly:
ABB.Robotics.Controllers (in ABB.Robotics.Controllers.dll) Version: 6.5.129.0
Syntax Exceptions Exception | Condition |
---|
GeneralException | A General Exception has occurred. |
ArgumentException | The filename isn't recognized as a RAPID module file. The file extension has to be .mod or .sys |
Examples This example loads a RAPID module.
private void _gtpuopendialog_Closed(object sender,EventArgs e)
{
try
{
if (_gtpuopendialog.DialogResult == System.Windows.Forms.DialogResult.OK)
{
string stFileName = _gtpusavedialog.FileName;
myTask.LoadModuleFromFile(stFileName,LoadMode.Add);
}
}
catch (GeneralException ee)
{
}
catch (System.Exception ee)
{
}
finally
{
}
}
See Also