Hi, I noticed that python API provided a ‘interactiveSnap’ command, is there anything equivalent in .Net program?
Thanks
Hi, I noticed that python API provided a ‘interactiveSnap’ command, is there anything equivalent in .Net program?
Thanks
You can use the SnapAction. Something like this:
SnapType[] types = new SnapType[] { SnapType.Face, SnapType.FaceCenter }; var snapAction = new SnapAction(true, SnapOptionsContext.NormalSnap); snapAction.ActionSnapOptions = types; snapAction.ContinuousMode = false; snapAction.Completed += SnapActionCompleted; (...) void SnapActionCompleted(object sender, ResultCompletionEventArgs e) { (...) }