By Penchala Veerapalli on Thursday, 09 March 2023
Posted in C# Development
Likes 0
Views 803
Votes 0
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.
View Full Post