|
@@ -12,6 +12,7 @@ using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Threading.Tasks;
|
|
using JBIM;
|
|
using JBIM;
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json;
|
|
|
|
+using Newtonsoft.Json.Converters;
|
|
|
|
|
|
namespace RevitToJBim.JsonConverter
|
|
namespace RevitToJBim.JsonConverter
|
|
{
|
|
{
|
|
@@ -21,6 +22,8 @@ namespace RevitToJBim.JsonConverter
|
|
{
|
|
{
|
|
JsonSerializerSettings jsetting = new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore };
|
|
JsonSerializerSettings jsetting = new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore };
|
|
jsetting.Converters.Add(new BimIdConverter());
|
|
jsetting.Converters.Add(new BimIdConverter());
|
|
|
|
+ jsetting.Converters.Add(new XYZConverter());
|
|
|
|
+ jsetting.Converters.Add(new StringEnumConverter());
|
|
//var serializer = JsonSerializer.Create(jsetting);
|
|
//var serializer = JsonSerializer.Create(jsetting);
|
|
//JObject jobject = new JObject();
|
|
//JObject jobject = new JObject();
|
|
//foreach (var collection in m_DataSource)
|
|
//foreach (var collection in m_DataSource)
|