Beispiel #1
0
 /// <summary>
 /// Execute the command.
 /// </summary>
 public override void execute()
 {
     CadKit.Interfaces.ICamera camera = CadKit.Documents.Manager.Instance.ActiveView as CadKit.Interfaces.ICamera;
     if (null != camera)
     {
         camera.camera(this.Option);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Determine if the button should be enabled.
 /// </summary>
 protected override bool _shouldBeEnabled()
 {
     CadKit.Interfaces.ICamera camera = CadKit.Documents.Manager.Instance.ActiveView as CadKit.Interfaces.ICamera;
     return(null != camera);
 }