<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Definition.instances upset]]></title><description><![CDATA[<p dir="auto">I hope someone can see what is wrong here. I can add all the definition instances to the selection but I can only return half of them as shown in the console. Sorry it's rather messy, made worst by the impossibility to indent.</p>
<p dir="auto">Thanks and Happy New Year.</p>
<p dir="auto"><img src="/uploads/imported_attachments/wr3J_Quin301210.gif" alt="Quin 301210.gif" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.sketchucation.com/topic/125089/definition-instances-upset</link><generator>RSS for Node</generator><lastBuildDate>Sun, 10 May 2026 07:58:41 GMT</lastBuildDate><atom:link href="https://community.sketchucation.com/topic/125089.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 31 Dec 2010 04:47:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Definition.instances upset on Fri, 31 Dec 2010 11:39:25 GMT]]></title><description><![CDATA[<p dir="auto">Takk!</p>
<p dir="auto">Now you have said it I feel somewhat foolish ... oh well ... time to go to the pub. Maybe next year I can do better.</p>
<p dir="auto">Happy New Year to you and all the other members.</p>
<p dir="auto">Chris</p>
]]></description><link>https://community.sketchucation.com/post/1226408</link><guid isPermaLink="true">https://community.sketchucation.com/post/1226408</guid><dc:creator><![CDATA[chrisglasier]]></dc:creator><pubDate>Fri, 31 Dec 2010 11:39:25 GMT</pubDate></item><item><title><![CDATA[Reply to Definition.instances upset on Fri, 31 Dec 2010 10:36:14 GMT]]></title><description><![CDATA[<p dir="auto">It's because you have instances of a definitions which exists in multiple instances of another definition.</p>
<p dir="auto">Example:</p>
<p dir="auto">Definition "lower_arm"<br />
<code> lower_arm_definition.count_instances == 1</code> (because it only has one instance, placed in the lower_arm_combo definition.)<br />
<code> lower_arm_definition.instances</code> will return only that instance. Because you add it to the selection, that instance will be highlighted everywhere it occurs in the model. But you have not iterated over any more instances.</p>
<p dir="auto">What you need to do, is travel back the paths of an instance's parents and if it's contained in another group or component, then you must work out how many copies there is of that - and continue that all the way back.</p>
]]></description><link>https://community.sketchucation.com/post/1226401</link><guid isPermaLink="true">https://community.sketchucation.com/post/1226401</guid><dc:creator><![CDATA[thomthom]]></dc:creator><pubDate>Fri, 31 Dec 2010 10:36:14 GMT</pubDate></item></channel></rss>