<?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: Check if an object is already connected to a conveyor in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/check-if-an-object-is-already-connected-to-a-conveyor/m-p/13674243#M96571</link>
    <description>&lt;P&gt;You can iterate over the object's outObjects and get the class object:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Object processor = Model.find("Processor1");
int isConnected = 0;

for(int i = 1; i &amp;lt;= processor.outObjects.length; i++) {
	Object obj = processor.outObjects[i];
	if (classobject(obj).name == "EntryTransfer")
		isConnected = 1;
}

if (!isConnected) 
	// Connect object to conveyor
	contextdragconnection(processor, Model.find("StraightConveyor1"), "A");&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jun 2025 08:51:56 GMT</pubDate>
    <dc:creator>xavier_low</dc:creator>
    <dc:date>2025-06-10T08:51:56Z</dc:date>
    <item>
      <title>Check if an object is already connected to a conveyor</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/check-if-an-object-is-already-connected-to-a-conveyor/m-p/13673950#M96557</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;how one can check if an object is already connected to a conveyor to avoid duplicating port connections between them?&lt;/P&gt;&lt;P&gt;As the conveyor can have multiple entry or exit transfers, and the transfers are separated objects, testing the list of conveyor points exhaustively is very inefficient.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jun 2025 06:06:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/check-if-an-object-is-already-connected-to-a-conveyor/m-p/13673950#M96557</guid>
      <dc:creator>guiroehe</dc:creator>
      <dc:date>2025-06-10T06:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Check if an object is already connected to a conveyor</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/check-if-an-object-is-already-connected-to-a-conveyor/m-p/13674243#M96571</link>
      <description>&lt;P&gt;You can iterate over the object's outObjects and get the class object:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Object processor = Model.find("Processor1");
int isConnected = 0;

for(int i = 1; i &amp;lt;= processor.outObjects.length; i++) {
	Object obj = processor.outObjects[i];
	if (classobject(obj).name == "EntryTransfer")
		isConnected = 1;
}

if (!isConnected) 
	// Connect object to conveyor
	contextdragconnection(processor, Model.find("StraightConveyor1"), "A");&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jun 2025 08:51:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/check-if-an-object-is-already-connected-to-a-conveyor/m-p/13674243#M96571</guid>
      <dc:creator>xavier_low</dc:creator>
      <dc:date>2025-06-10T08:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: Check if an object is already connected to a conveyor</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/check-if-an-object-is-already-connected-to-a-conveyor/m-p/13684701#M96700</link>
      <description>&lt;P&gt;Hi, &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/17311663"&gt;@xavier_low&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;thank you. However this is what I mentioned on my question that is highly inefficient. It works fine for a few conveyors, not for large scale problems.&lt;/P&gt;&lt;P&gt;Thank you anyway.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2025 01:28:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/check-if-an-object-is-already-connected-to-a-conveyor/m-p/13684701#M96700</guid>
      <dc:creator>guiroehe</dc:creator>
      <dc:date>2025-06-17T01:28:02Z</dc:date>
    </item>
  </channel>
</rss>

