<?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 Betreff: Get Area for Objects in FormIt Forum</title>
    <link>https://forums.autodesk.com/t5/formit-forum/get-area-for-objects/m-p/12056742#M283</link>
    <description>&lt;P&gt;I tried Dynamo.&amp;nbsp; I ran into a couple problems there, but I did get it to work.&lt;/P&gt;
&lt;P&gt;First problem is I had a space in the API name, which I didn't notice, no error message or hint something was wrong.&amp;nbsp; Trying to remove the space in the Dynamo string node was difficult, no idea why, it wouldn't save.&lt;/P&gt;
&lt;P&gt;The next problem I have is Dynamo doesn't&amp;nbsp; let you run the graph again until something in the graph changes.&lt;/P&gt;
&lt;P&gt;Which makes this kinda useless.&amp;nbsp; The intention is to run the graph, make a change in FormIt, then run the graph again.&amp;nbsp; Even running it from the Dynamo panel by clicking the icon doesn't rerun the graph.&amp;nbsp; You don't notice that it's not rerunning, but I can when I'm debugging.&lt;/P&gt;
&lt;P&gt;I right clicked on the icon for the graph in the Dynamo panel and did "Force Rerun" and from that point on it runs the graph each time you click it, but I don't think that's intentional, we're just getting lucky.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you "Edit Source Graph" and click the Run button in Dynamo, it'll only run once and not run again until the graph changes.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These different cases are not ideal and doesn't solve your issue.&lt;/P&gt;
&lt;P&gt;I attached my graph that works for me.&amp;nbsp; I hardcoded the ids in the Dynamo graph, but those ids will work for the attached AXM.&lt;/P&gt;
&lt;P&gt;The paramsJSON I'm using looks like yours.&lt;/P&gt;
&lt;P&gt;{&lt;BR /&gt;"nHistoryID" : 0, &lt;BR /&gt;"aLevelId" : 61,&lt;BR /&gt;"aObjectIds": 58&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jeffhauswirth_0-1687544389689.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1232456i48161DE38D20B9C3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jeffhauswirth_0-1687544389689.png" alt="jeffhauswirth_0-1687544389689.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Jun 2023 18:40:07 GMT</pubDate>
    <dc:creator>jeff_hauswirth</dc:creator>
    <dc:date>2023-06-23T18:40:07Z</dc:date>
    <item>
      <title>Get Area for Objects</title>
      <link>https://forums.autodesk.com/t5/formit-forum/get-area-for-objects/m-p/12052785#M279</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to get the levels areas for Groups inside Formit.&lt;/P&gt;&lt;P&gt;So, I get levels IDS and Objects ( Groups instances) Ids.&lt;/P&gt;&lt;P&gt;then I am trying the function&amp;nbsp;&amp;nbsp;FormIt.Levels.GetAreaForObjects&amp;nbsp; to get the area for those objects.&lt;/P&gt;&lt;P&gt;But I am always getting empty results.&lt;/P&gt;&lt;P&gt;I tried many things and different lists with no success.&lt;/P&gt;&lt;P&gt;Here you can see one trial&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mshaheenQVUGH_0-1687434371430.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1231667iD3603F80CC2779E3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mshaheenQVUGH_0-1687434371430.png" alt="mshaheenQVUGH_0-1687434371430.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please could you check the graph and tell me where is the problem?&lt;/P&gt;&lt;P&gt;Thanks in advance&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 11:47:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/formit-forum/get-area-for-objects/m-p/12052785#M279</guid>
      <dc:creator>m.shaheenQVUGH</dc:creator>
      <dc:date>2023-06-22T11:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Get Area for Objects</title>
      <link>https://forums.autodesk.com/t5/formit-forum/get-area-for-objects/m-p/12053563#M280</link>
      <description>&lt;P&gt;Levels are only created in the main model History.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FormIt.Model.GetHistoryID()&lt;/P&gt;
&lt;P&gt;When calling&amp;nbsp;FormIt.Levels.GetAreaForObjects it takes the main model History and the ID of the object in the main model History.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jeffhauswirth_2-1687449496605.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1231824i22B9BA2BD68F3F27/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jeffhauswirth_2-1687449496605.png" alt="jeffhauswirth_2-1687449496605.png" /&gt;&lt;/span&gt;&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>Thu, 22 Jun 2023 15:58:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/formit-forum/get-area-for-objects/m-p/12053563#M280</guid>
      <dc:creator>jeff_hauswirth</dc:creator>
      <dc:date>2023-06-22T15:58:26Z</dc:date>
    </item>
    <item>
      <title>Betreff: Get Area for Objects</title>
      <link>https://forums.autodesk.com/t5/formit-forum/get-area-for-objects/m-p/12056110#M281</link>
      <description>&lt;P&gt;That exactly what I tried to do.&lt;/P&gt;&lt;P&gt;I wrote the same script that you wrote it worked with Script Editor.&lt;/P&gt;&lt;P&gt;But when I tried the same logic in Dynamo it isn't working.&amp;nbsp;&lt;/P&gt;&lt;P&gt;And it shows that error (ERROR: FormIt.Levels.GetAreaForObjects unable to retrieve nHistoryID of type size_t) in the script output&lt;/P&gt;&lt;P&gt;And actually the History is 0, I cannot understand the error.&lt;/P&gt;&lt;P&gt;and I want to get this information in Dynamo to push all these information at the end into an excel sheet.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 14:34:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/formit-forum/get-area-for-objects/m-p/12056110#M281</guid>
      <dc:creator>m.shaheenQVUGH</dc:creator>
      <dc:date>2023-06-23T14:34:32Z</dc:date>
    </item>
    <item>
      <title>Betreff: Get Area for Objects</title>
      <link>https://forums.autodesk.com/t5/formit-forum/get-area-for-objects/m-p/12056121#M282</link>
      <description>&lt;P&gt;I think the problem is here in writing that string, but I don't know where is the problem&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mshaheenQVUGH_0-1687531075984.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1232325iEC30A395B9BD7E5A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mshaheenQVUGH_0-1687531075984.png" alt="mshaheenQVUGH_0-1687531075984.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 14:38:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/formit-forum/get-area-for-objects/m-p/12056121#M282</guid>
      <dc:creator>m.shaheenQVUGH</dc:creator>
      <dc:date>2023-06-23T14:38:05Z</dc:date>
    </item>
    <item>
      <title>Betreff: Get Area for Objects</title>
      <link>https://forums.autodesk.com/t5/formit-forum/get-area-for-objects/m-p/12056742#M283</link>
      <description>&lt;P&gt;I tried Dynamo.&amp;nbsp; I ran into a couple problems there, but I did get it to work.&lt;/P&gt;
&lt;P&gt;First problem is I had a space in the API name, which I didn't notice, no error message or hint something was wrong.&amp;nbsp; Trying to remove the space in the Dynamo string node was difficult, no idea why, it wouldn't save.&lt;/P&gt;
&lt;P&gt;The next problem I have is Dynamo doesn't&amp;nbsp; let you run the graph again until something in the graph changes.&lt;/P&gt;
&lt;P&gt;Which makes this kinda useless.&amp;nbsp; The intention is to run the graph, make a change in FormIt, then run the graph again.&amp;nbsp; Even running it from the Dynamo panel by clicking the icon doesn't rerun the graph.&amp;nbsp; You don't notice that it's not rerunning, but I can when I'm debugging.&lt;/P&gt;
&lt;P&gt;I right clicked on the icon for the graph in the Dynamo panel and did "Force Rerun" and from that point on it runs the graph each time you click it, but I don't think that's intentional, we're just getting lucky.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you "Edit Source Graph" and click the Run button in Dynamo, it'll only run once and not run again until the graph changes.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These different cases are not ideal and doesn't solve your issue.&lt;/P&gt;
&lt;P&gt;I attached my graph that works for me.&amp;nbsp; I hardcoded the ids in the Dynamo graph, but those ids will work for the attached AXM.&lt;/P&gt;
&lt;P&gt;The paramsJSON I'm using looks like yours.&lt;/P&gt;
&lt;P&gt;{&lt;BR /&gt;"nHistoryID" : 0, &lt;BR /&gt;"aLevelId" : 61,&lt;BR /&gt;"aObjectIds": 58&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jeffhauswirth_0-1687544389689.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1232456i48161DE38D20B9C3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jeffhauswirth_0-1687544389689.png" alt="jeffhauswirth_0-1687544389689.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 18:40:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/formit-forum/get-area-for-objects/m-p/12056742#M283</guid>
      <dc:creator>jeff_hauswirth</dc:creator>
      <dc:date>2023-06-23T18:40:07Z</dc:date>
    </item>
  </channel>
</rss>

