<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Importing json into Revit using the API: in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/importing-json-into-revit-using-the-api/m-p/10139337#M27692</link>
    <description>&lt;P&gt;In all honesty I often run into issues with .NET's built in JSON serializer. I don't actually know if it will help in this case, but often the Newtonsoft.Json package on NuGet will work more reliably / quickly / intuitively.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Mar 2021 16:33:37 GMT</pubDate>
    <dc:creator>mastjaso</dc:creator>
    <dc:date>2021-03-08T16:33:37Z</dc:date>
    <item>
      <title>Importing json into Revit using the API:</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/importing-json-into-revit-using-the-api/m-p/10128281#M27673</link>
      <description>&lt;P&gt;So I have the CustomExporterAdnMeshJson solution.&amp;nbsp; I got it working in 2021.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to import json the same way?&amp;nbsp; if so is there an example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 23:35:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/importing-json-into-revit-using-the-api/m-p/10128281#M27673</guid>
      <dc:creator>J450NP13</dc:creator>
      <dc:date>2021-03-03T23:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Importing json into Revit using the API:</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/importing-json-into-revit-using-the-api/m-p/10128787#M27674</link>
      <description>&lt;P&gt;I found the newer examples.&amp;nbsp; The&amp;nbsp;CreateTrianglesTopography example shows a json getting imported.&amp;nbsp; So this is awesome.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, I notice in that json there is an object called "Facets"&amp;nbsp; I am assuming these are faces.&amp;nbsp; But why is there 3 values in square brackets?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;"Facets":[[0,25,3],[0,20,25],[0,11,20],[0,1,11],[1,9,11],[1,8,9],[2,18,56],[2,6,18],[4,3,24],[3,23,24],[25,23,3],[4,24,7],[5,18,6],&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I format the json like the below example I used in Unity?&amp;nbsp; I am not familiar with the three values in brackets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;"StoredTris":[14415,14414,14413,14412,14411,14410,14409,14408,14407,14406,14405,14404,14403,14402,14401,14400,14399&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 06:04:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/importing-json-into-revit-using-the-api/m-p/10128787#M27674</guid>
      <dc:creator>J450NP13</dc:creator>
      <dc:date>2021-03-04T06:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Importing json into Revit using the API:</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/importing-json-into-revit-using-the-api/m-p/10128968#M27675</link>
      <description>&lt;P&gt;The facets refer to triangles. Each triangle has three vertices. Each vertex is represented by an index into a list of vertex coordinates.&amp;nbsp; In the first example, each triangle is bracketed into its own individual sublist. In the second, apparently not. In both cases, you can check and confirm whether this assessment it true by examining the source code yourself. Don't trust me and my guesswork, for heaven's sake.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 07:54:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/importing-json-into-revit-using-the-api/m-p/10128968#M27675</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2021-03-04T07:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Importing json into Revit using the API:</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/importing-json-into-revit-using-the-api/m-p/10129536#M27676</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/824630"&gt;@jeremy_tammik&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does the json have to be formatted like that with the brackets?&amp;nbsp; I see that the json is generated....I want to use my own json.&amp;nbsp; Is this for any type of model geometry or just topo?&amp;nbsp; Can I stop the generation of this topo json and make it use a json to import into Revit?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The second example is my json out of unity.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Will Revit read any json file that is in the same directory as the DLL's for the Sample?&amp;nbsp; I'd like to do an import dialog.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 11:55:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/importing-json-into-revit-using-the-api/m-p/10129536#M27676</guid>
      <dc:creator>J450NP13</dc:creator>
      <dc:date>2021-03-04T11:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Importing json into Revit using the API:</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/importing-json-into-revit-using-the-api/m-p/10129780#M27677</link>
      <description>&lt;P&gt;The add-in is a source code sample. You can reprogram and adapt it to fit your needs in any way you like.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Revit itself does not read the JSON and has no interest in its formatting in any way whatsoever.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The add-in does all that. If you prefer to read JSON formatted in the Unity convention, go ahead and do so.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The same applies to the location of the JSON file. It can be placed wherever you like. You just need to adapt the add-in code to pick it up from your desired location.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 13:05:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/importing-json-into-revit-using-the-api/m-p/10129780#M27677</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2021-03-04T13:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Importing json into Revit using the API:</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/importing-json-into-revit-using-the-api/m-p/10129822#M27678</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/824630"&gt;@jeremy_tammik&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any Suggestions on how to get started?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 13:13:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/importing-json-into-revit-using-the-api/m-p/10129822#M27678</guid>
      <dc:creator>J450NP13</dc:creator>
      <dc:date>2021-03-04T13:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: Importing json into Revit using the API:</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/importing-json-into-revit-using-the-api/m-p/10129858#M27679</link>
      <description>&lt;P&gt;Fork the Github repository, clone it to your development environment, and adapt it to your needs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your enhancements are generic and universally useful, please also submit a pull request for integration into the main branch.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 13:23:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/importing-json-into-revit-using-the-api/m-p/10129858#M27679</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2021-03-04T13:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Importing json into Revit using the API:</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/importing-json-into-revit-using-the-api/m-p/10131265#M27680</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/824630"&gt;@jeremy_tammik&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting an error about the mxjsonlength being exceeded in Revit.&amp;nbsp; How can I give it a max value?&amp;nbsp; Since there's not a web.config file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone else experience this?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 20:19:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/importing-json-into-revit-using-the-api/m-p/10131265#M27680</guid>
      <dc:creator>J450NP13</dc:creator>
      <dc:date>2021-03-04T20:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Importing json into Revit using the API:</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/importing-json-into-revit-using-the-api/m-p/10131327#M27681</link>
      <description>&lt;P&gt;I have never heard of&amp;nbsp;&lt;SPAN&gt;mxjsonlength, and I very much doubt that Revit has ever heard of it either.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;What component is causing this error? Which line of code? Maybe this "error" is an exception? Maybe it is thrown by a library that is referenced by your add-in? Maybe you can discover more details and relevant information by debugging your add-in?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 20:48:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/importing-json-into-revit-using-the-api/m-p/10131327#M27681</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2021-03-04T20:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Importing json into Revit using the API:</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/importing-json-into-revit-using-the-api/m-p/10131380#M27682</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/824630"&gt;@jeremy_tammik&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm getting it in Revit.&amp;nbsp; Review the image I attached.&amp;nbsp; its maxjsonlength,&amp;nbsp; Sorry not mx.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been trying to debug it, but Revit doesn't give me a line.&amp;nbsp; And nothing is getting thrown in VS when built.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 21:07:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/importing-json-into-revit-using-the-api/m-p/10131380#M27682</guid>
      <dc:creator>J450NP13</dc:creator>
      <dc:date>2021-03-04T21:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Importing json into Revit using the API:</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/importing-json-into-revit-using-the-api/m-p/10131400#M27683</link>
      <description>&lt;P&gt;Wow. Well, I am surprised, and you have me totally stumped. I have no idea how you are achieving this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 21:14:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/importing-json-into-revit-using-the-api/m-p/10131400#M27683</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2021-03-04T21:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: Importing json into Revit using the API:</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/importing-json-into-revit-using-the-api/m-p/10131442#M27684</link>
      <description>&lt;P&gt;All I am doing is trying to read my json file and not the one provided in the example.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 21:37:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/importing-json-into-revit-using-the-api/m-p/10131442#M27684</guid>
      <dc:creator>J450NP13</dc:creator>
      <dc:date>2021-03-04T21:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Importing json into Revit using the API:</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/importing-json-into-revit-using-the-api/m-p/10132338#M27685</link>
      <description>&lt;P&gt;And how exactly are you trying to read it? What add-in are you using? What code?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 07:12:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/importing-json-into-revit-using-the-api/m-p/10132338#M27685</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2021-03-05T07:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Importing json into Revit using the API:</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/importing-json-into-revit-using-the-api/m-p/10133248#M27686</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/824630"&gt;@jeremy_tammik&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the Revit SDK samples, specifically the "CreateTrianglesTopography" example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I replaced the json file data with my own json data and formatted the same way besides bracketing the 3 facets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 14:28:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/importing-json-into-revit-using-the-api/m-p/10133248#M27686</guid>
      <dc:creator>J450NP13</dc:creator>
      <dc:date>2021-03-05T14:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Importing json into Revit using the API:</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/importing-json-into-revit-using-the-api/m-p/10133501#M27687</link>
      <description>&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/dotnet/api/system.web.script.serialization.javascriptserializer.maxjsonlength?view=netframework-4.8" target="_blank" rel="noopener"&gt;JavaScriptSerializer.MaxJsonLength Property (System.Web.Script.Serialization) | Microsoft Docs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Being an Integer it can be any number from 0 to&amp;nbsp;&lt;SPAN&gt;2147483647 I suppose (Int32.Max).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The default is&amp;nbsp;&lt;SPAN&gt;2097152.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 16:11:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/importing-json-into-revit-using-the-api/m-p/10133501#M27687</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2021-03-05T16:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Importing json into Revit using the API:</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/importing-json-into-revit-using-the-api/m-p/10133609#M27688</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1035859"&gt;@RPTHOMAS108&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried giving it that max and it throws an error saying:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Cannot convert object of type 'System.Int32' to type 'System.Collections.Generic.IList`1[System.Int32]'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 16:40:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/importing-json-into-revit-using-the-api/m-p/10133609#M27688</guid>
      <dc:creator>J450NP13</dc:creator>
      <dc:date>2021-03-05T16:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Importing json into Revit using the API:</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/importing-json-into-revit-using-the-api/m-p/10134509#M27689</link>
      <description>&lt;P&gt;You did this:&lt;/P&gt;&lt;P&gt;serializer.MaxJsonLength = Int32.MaxValue;&lt;/P&gt;&lt;P&gt;Crazy in a way you should need to process a string that large, probably get the actual length (the file has a content with a number of characters). The variable likely exists to set a memory buffer if so should be considered carefully in terms of performance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By doing the above you probably solved one problem and moved onto the next (that isn't clear in your response). I'm guessing it is expecting:&lt;/P&gt;&lt;P&gt;public IList&amp;lt;IList&amp;lt;int&amp;gt;&amp;gt; Facets { get; set; }&lt;/P&gt;&lt;P&gt;not&lt;/P&gt;&lt;P&gt;public IList&amp;lt;int&amp;gt; Facets { get; set; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As is the code and the brackets are significant in this respect:&lt;/P&gt;&lt;P&gt;[1,2,3,4] List(of Integer)&lt;/P&gt;&lt;P&gt;[[1,2,3],[1,2,3],[1,2,3]] List(of List(of Integer)) perhaps?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Mar 2021 00:33:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/importing-json-into-revit-using-the-api/m-p/10134509#M27689</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2021-03-06T00:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Importing json into Revit using the API:</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/importing-json-into-revit-using-the-api/m-p/10134593#M27690</link>
      <description>&lt;P&gt;Yeah I wondering if I needed to have the facets in the brackets. &amp;nbsp;Not sure how I can do that out of unity. &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I have a solid json serialization system in unity but the triangles are just as you said, a list of ints.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It won’t even read a json file exported from Revit using the json exporter example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Mar 2021 01:48:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/importing-json-into-revit-using-the-api/m-p/10134593#M27690</guid>
      <dc:creator>J450NP13</dc:creator>
      <dc:date>2021-03-06T01:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Importing json into Revit using the API:</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/importing-json-into-revit-using-the-api/m-p/10134609#M27691</link>
      <description>&lt;P&gt;I think that is a relatively easy problem to solve since they are groups of three either way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You just need to match for what serializer is expecting and convert to other form later:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt; Dim Points As New List(Of List(Of Integer)) 'The new list into Revit topo
        Dim InputPoints As List(Of Integer) 'Flat list
        Dim J As Integer = 0
        Dim CurSet As New List(Of Integer)
        For i = 0 To InputPoints.Count - 1
            CurSet.Add(InputPoints(i))
            If J = 2 Then
                J = 0
                Points.Add(CurSet)
                CurSet = New List(Of Integer)
            Else
                J += 1
            End If
        Next&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can also do the opposite of this above and in many different ways (that is just the first way that comes to mind).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If unity is fixed output then change what serializer is expecting on Revit side Json is same format or it is Jim not Json.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Mar 2021 02:12:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/importing-json-into-revit-using-the-api/m-p/10134609#M27691</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2021-03-06T02:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: Importing json into Revit using the API:</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/importing-json-into-revit-using-the-api/m-p/10139337#M27692</link>
      <description>&lt;P&gt;In all honesty I often run into issues with .NET's built in JSON serializer. I don't actually know if it will help in this case, but often the Newtonsoft.Json package on NuGet will work more reliably / quickly / intuitively.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 16:33:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/importing-json-into-revit-using-the-api/m-p/10139337#M27692</guid>
      <dc:creator>mastjaso</dc:creator>
      <dc:date>2021-03-08T16:33:37Z</dc:date>
    </item>
  </channel>
</rss>

