-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathSampleCsCommandsCommand.cs
41 lines (37 loc) · 1.05 KB
/
SampleCsCommandsCommand.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System;
using System.Collections.Generic;
using System.IO;
using Rhino;
using Rhino.Commands;
using Rhino.DocObjects;
using Rhino.Geometry;
using Rhino.Input;
using Rhino.Input.Custom;
namespace SampleCsCommands
{
[System.Runtime.InteropServices.Guid("2137ef57-cf08-4002-8e25-960af352442c")]
public class SampleCsCommandsCommand : Command
{
public SampleCsCommandsCommand()
{
// Rhino only creates one instance of each command class defined in a
// plug-in, so it is safe to store a refence in a static property.
Instance = this;
}
///<summary>The only instance of this command.</summary>
public static SampleCsCommandsCommand Instance
{
get;
private set;
}
///<returns>The command name as it appears on the Rhino command line.</returns>
public override string EnglishName
{
get { return "SampleCsCommandsCommand"; }
}
protected override Result RunCommand(RhinoDoc doc, RunMode mode)
{
return Result.Success;
}
}
}