Not applicable
10-11-2020
09:47 PM
HI ! I use api to write a program to change the toolpath name,but it returns an error
The code is as follows:
private void button1_Click(object sender, EventArgs e)
{
PMAutomation powerMill = new PMAutomation(Autodesk.ProductInterface.InstanceReuse.UseExistingInstance);
PMProject session = powerMill.ActiveProject;
powerMill.DialogsOff();
int row = (int)rowChooser.Value;
foreach (PMToolpath toolpath in session.Toolpaths)
{
toolpath.Name = "O" + row;
row += 1;
toolpath.IsActive = false;
}
}
The error is as follows
It
It seems that it is because the pattern conversion toolpath
how can I fix the error?
Thanks and Best Regards!
Chris Yu
Solved! Go to Solution.
Link copied