EBDN - Community - Question & Answers

  Thursday, 09 March 2023
  1 Replies
  840 Visits
0
Votes
Undo
Hello Team,

I am using following code in one of my c# macro to replace device inside my project equipment folder with the device from catalog that is associated with project.

Device.ReplaceBy(DeviceFromCatalog, true, ReplaceBehavior.WithPreferredMaster | ReplaceBehavior.Position | ReplaceBehavior.DontCheckNotUsed);

When multiple users run macro at same time, the above code is failing to replace the device for few devices with error: Error replacing object.
When single user run macro there are no errors observed.

Could you please help me in resolving this issue. Thank you.

Thank you,
Penchala.