<?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 Dynamo python node code compairing to lists and setting a parameter value in one list. in Revit MEP Forum</title>
    <link>https://forums.autodesk.com/t5/revit-mep-forum/dynamo-python-node-code-compairing-to-lists-and-setting-a/m-p/12208621#M9253</link>
    <description>&lt;P&gt;Normally i know my way around with Dynamo, but in this case i have a problem that i think can only be fixed using a python node. I do have a python node script that i put together but it doesnt seem to do anything, and i cannot figure out why.&lt;/P&gt;&lt;P&gt;i am a absolut beginner at python programming so i am struggeling with the basics here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In line 26 and 27 i have some part of the code that i do not completely understand and i might be that, or something completely different.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In short. List A has a list of family instances with family parameters 'groepnummer', 'Schema_nr' and 'contactdozen aantal'.&amp;nbsp; List B has a list of family instances with shared project parameters 'voedende groep' and 'Bouwnummer'&lt;/P&gt;&lt;P&gt;The script needs to find all Family instances in List B where the value of parameter 'voedende groep' is the same value as in parameter 'groepnummer' in Families in List A ,&amp;nbsp; AND families with the value of parameter 'Bouwnummer' in List B has the same value as families with the value of parameter 'Schema_nr' in families in List A. If this is the case the amount of family instances with these parameter values in List B should be counted and this amount should be SET in parameter 'conatactdozen aantal' in the one family instance in List A that have these parameter values.&lt;/P&gt;&lt;P&gt;I hope this all makes sense and someone can give me a hand in getting this to work.&lt;/P&gt;&lt;P&gt;Supplied is the script that i have so far as text.&lt;/P&gt;&lt;P&gt;Erik.&lt;/P&gt;</description>
    <pubDate>Thu, 31 Aug 2023 05:36:15 GMT</pubDate>
    <dc:creator>eakershoek</dc:creator>
    <dc:date>2023-08-31T05:36:15Z</dc:date>
    <item>
      <title>Dynamo python node code compairing to lists and setting a parameter value in one list.</title>
      <link>https://forums.autodesk.com/t5/revit-mep-forum/dynamo-python-node-code-compairing-to-lists-and-setting-a/m-p/12208621#M9253</link>
      <description>&lt;P&gt;Normally i know my way around with Dynamo, but in this case i have a problem that i think can only be fixed using a python node. I do have a python node script that i put together but it doesnt seem to do anything, and i cannot figure out why.&lt;/P&gt;&lt;P&gt;i am a absolut beginner at python programming so i am struggeling with the basics here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In line 26 and 27 i have some part of the code that i do not completely understand and i might be that, or something completely different.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In short. List A has a list of family instances with family parameters 'groepnummer', 'Schema_nr' and 'contactdozen aantal'.&amp;nbsp; List B has a list of family instances with shared project parameters 'voedende groep' and 'Bouwnummer'&lt;/P&gt;&lt;P&gt;The script needs to find all Family instances in List B where the value of parameter 'voedende groep' is the same value as in parameter 'groepnummer' in Families in List A ,&amp;nbsp; AND families with the value of parameter 'Bouwnummer' in List B has the same value as families with the value of parameter 'Schema_nr' in families in List A. If this is the case the amount of family instances with these parameter values in List B should be counted and this amount should be SET in parameter 'conatactdozen aantal' in the one family instance in List A that have these parameter values.&lt;/P&gt;&lt;P&gt;I hope this all makes sense and someone can give me a hand in getting this to work.&lt;/P&gt;&lt;P&gt;Supplied is the script that i have so far as text.&lt;/P&gt;&lt;P&gt;Erik.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 05:36:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-mep-forum/dynamo-python-node-code-compairing-to-lists-and-setting-a/m-p/12208621#M9253</guid>
      <dc:creator>eakershoek</dc:creator>
      <dc:date>2023-08-31T05:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamo python node code compairing to lists and setting a parameter value in one list.</title>
      <link>https://forums.autodesk.com/t5/revit-mep-forum/dynamo-python-node-code-compairing-to-lists-and-setting-a/m-p/12208869#M9254</link>
      <description>&lt;P&gt;If I understood you correctly I believe it can be done relative simply with normal nodes&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LMaas_1-1693469248817.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1260301iF6FC274ED10235FA/image-size/large?v=v2&amp;amp;px=999" role="button" title="LMaas_1-1693469248817.png" alt="LMaas_1-1693469248817.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LMaas_2-1693469391459.png" style="width: 439px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1260302iFA86DB4D4E38B3C1/image-dimensions/439x150?v=v2" width="439" height="150" role="button" title="LMaas_2-1693469391459.png" alt="LMaas_2-1693469391459.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One thing to note is that you need to be careful with this script as it is. the comparison node "==" uses cross product. All items in list A have to be checked against all items in list B. So if both your list A and B are substantial then you will get a lot of comparisons. Too much and Dynamo and Revit may crash (so save your project). In that case you might need to finetune the script to limit the comparisons in some way (depending on what you have in your project)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Attached the script. You will need to modify it to suit your familyinstances and&amp;nbsp; parameter names.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 08:10:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-mep-forum/dynamo-python-node-code-compairing-to-lists-and-setting-a/m-p/12208869#M9254</guid>
      <dc:creator>L.Maas</dc:creator>
      <dc:date>2023-08-31T08:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamo python node code compairing to lists and setting a parameter value in one list.</title>
      <link>https://forums.autodesk.com/t5/revit-mep-forum/dynamo-python-node-code-compairing-to-lists-and-setting-a/m-p/12216499#M9255</link>
      <description>&lt;P&gt;Thnx,&lt;/P&gt;&lt;P&gt;For some reason i did not see this solution in nodes and started looking for python solutions.&lt;/P&gt;&lt;P&gt;It works as intended.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2023 11:49:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-mep-forum/dynamo-python-node-code-compairing-to-lists-and-setting-a/m-p/12216499#M9255</guid>
      <dc:creator>eakershoek</dc:creator>
      <dc:date>2023-09-04T11:49:55Z</dc:date>
    </item>
  </channel>
</rss>

