MeasureManagerOnAddMeasureEvent Event |
Namespace: VIZCore3D.NET.Manager
// VIZCore3D.NET Control private VIZCore3D.NET.VIZCore3DControl vizcore3d; private void Example() { // Add Event vizcore3d.Review.Measure.OnAddMeasureEvent += Measure_OnAddMeasureEvent; vizcore3d.Review.Measure.AddBasicPosition(); // Call Measure_OnAddMeasureEvent //vizcore3d.Review.Measure.AddBasicDistance(); } private void Measure_OnAddMeasureEvent(object sender, Event.EventManager.MeasureEventArgs e) { System.Diagnostics.Trace.WriteLine(e.Kind.ToString()); switch (e.Kind) { case Data.MeasureKind.BASIC_POSITION: // code... break; case Data.MeasureKind.BASIC_DISTANCE: // code... break; case Data.MeasureKind.BASIC_ANGLE: // code... break; default: // code... break; } }