About the Create camera flyby from path Sample
[C#]
clsCameraFlyby.cs
using System; using System.Collections.Generic; using System.Text; using System.IO; using System.Windows.Forms; using System.Runtime.InteropServices; using ESRI.ArcGIS.Analyst3D; using ESRI.ArcGIS.Carto; using ESRI.ArcGIS.Geometry; using ESRI.ArcGIS.esriSystem; using ESRI.ArcGIS.SystemUI; using ESRI.ArcGIS.ADF.CATIDs; using ESRI.ArcGIS.GlobeCore; using cameraflybyfrompath; namespace CameraFlybyFromPath { public class clsCameraFlyby : ESRI.ArcGIS.Desktop.AddIns.Button { public clsCameraFlyby() { } protected override void OnClick() { frmCameraPath formFlyby = new frmCameraPath(); formFlyby.SetVariables(ArcGlobe.Globe); formFlyby.Show(); } protected override void OnUpdate() { Enabled = ArcGlobe.Application != null; } } }
[Visual Basic .NET]
clsCameraFlyby.vb
Imports Microsoft.VisualBasic Imports System Imports System.Collections.Generic Imports System.Text Imports System.IO Imports System.Windows.Forms Imports System.Runtime.InteropServices Imports ESRI.ArcGIS.Analyst3D Imports ESRI.ArcGIS.Carto Imports ESRI.ArcGIS.Geometry Imports ESRI.ArcGIS.esriSystem Imports ESRI.ArcGIS.SystemUI Imports ESRI.ArcGIS.ADF.CATIDs Imports ESRI.ArcGIS.GlobeCore Imports cameraflybyfrompath Namespace CameraFlybyFromPath Public Class clsCameraFlyby : Inherits ESRI.ArcGIS.Desktop.AddIns.Button Public Sub New() End Sub Protected Overrides Sub OnClick() Dim formFlyby As frmCameraPath = New frmCameraPath() formFlyby.SetVariables(ArcGlobe.Globe) formFlyby.Show() End Sub Protected Overrides Sub OnUpdate() Enabled = Not ArcGlobe.Application Is Nothing End Sub End Class End Namespace