Importing json into Revit using the API:

Importing json into Revit using the API:

J450NP13
Advisor Advisor
10,814 Views
22 Replies
Message 1 of 23

Importing json into Revit using the API:

J450NP13
Advisor
Advisor

So I have the CustomExporterAdnMeshJson solution.  I got it working in 2021.

 

Is there a way to import json the same way?  if so is there an example.

 

 

 

 

10,815 Views
22 Replies
Replies (22)
Message 21 of 23

J450NP13
Advisor
Advisor

@mastjaso  are you using it to send json to Revit?

0 Likes
Message 22 of 23

mastjaso
Advocate
Advocate

Honestly, no idea if it will help in your case. I use often use it to send JSON data around between processes but I'm not typically sending geometry data nor running into json length issues so I don't actually know if it will help or not. It's just a relatively popular and often better JSON serializer/deserializer than .NET's built in one, so it may be worth trying to see if you run into the same issues, but I have no way of knowing one way or another. 

Message 23 of 23

J450NP13
Advisor
Advisor

@mastjaso 

 

I’ll try it.

 

I figured out why it wasn’t working.  It’s because I had pts that we’re sharing the same location.

 

Instead of mesh data I am going to just pass their dimensions.

 

 

0 Likes