-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJsonDatabase.cs
43 lines (37 loc) · 1.08 KB
/
JsonDatabase.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
42
43
using Grasshopper.Kernel;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json.Linq;
using Rhino.Geometry;
namespace BuildSystemsGH
{
public class JsonDatabase
{
private readonly string _databasePath;
/// <summary>
/// Constructor that assings the database folders path
/// </summary>
/// <param name="databasePath"></param>
public JsonDatabase(string databasePath)
{
_databasePath = databasePath;
}
public List<string> GetFileNames(string libName, GH_ActiveObject gH_ActiveObject)
{
try
{
// I didn't continue here because I don't know how to deal with errors in GH using an external class.
// I wanted to create an error with AddRuntimeMessage() but then I would have to refer to GH_ActiveObject
return null;
}
catch
{
return null;
}
}
}
}