-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCommandLCAparameter2.cs
33 lines (29 loc) · 978 Bytes
/
CommandLCAparameter2.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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
using Autodesk.Revit.ApplicationServices;
using Autodesk.Revit.Attributes;
using Autodesk.Revit.UI.Selection;
namespace TestWorks
{
[Transaction(TransactionMode.Manual)]
public class CommandLCAparameter2 : IExternalCommand
{
public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
{
UIApplication uiapp = commandData.Application;
UIDocument uidoc = uiapp.ActiveUIDocument;
Application app = uiapp.Application;
Document doc = uidoc.Document;
#region SHARED PARAMETER ISSUES
SettingLCAParameter2 scsp = new SettingLCAParameter2();
scsp.CreateSampleSharedParameters2(doc, app);
#endregion
return Result.Succeeded;
}
}
}