Hello.
I'm studying AutoCAD Map 3D 2017 Platform API in C# and making sample program.
I want to get the difference between the feature being updated and the original one occuring AcMapFeatureService.FeatureToBeUpdated event, however AcMapFeature class, which Get(Original)Feature()#AcMapFeatureToBeEventArgs returns, does not have geometric values.
Using this class, I want to get how much it moves from the original position.
Here is my code.
var fs = AcMapServiceFactory.GetService(MgServiceType.FeatureService) as AcMapFeatureService;
fs.FeatureToBeUpdated += (sender, args) =>
{
var originalFeature = args.GetOriginalFeature();
var updatedFeature = args.GetFeature();
// get the difference
}
Anyone knows how to do that? Or another solution exists? Any comments would be gratefully appreciated. Thank you.