我使用Process Flow設計了一個生產包裝流程,在3D模型中我想知道Queue5上容器中裝載的Tote數量,如何在Text中顯示
我使用Process Flow設計了一個生產包裝流程,在3D模型中我想知道Queue5上容器中裝載的Tote數量,如何在Text中顯示
Since you move the items in process flow, you could easily add activities that change a label value on the queue each time an item is moved into the tote or a tote leaves the queue. This label value can then be displayed by the text object.
Alternatively you can read the number of subnodes of the tote directly in the "Text Display" code.
// Base text string text = "tote content (code): "; // Is there a tote in the queue? Object Queue = Model.find("Queue5"); if(Queue.subnodes.length > 0) { // Add the tote content to the text text += string.fromNum(Queue.first.subnodes.length, 0); } else { // Add a 0 text += "0"; } setnodestr(textnode,text); return 1;
production-packing-quantity_autosave.fsm
Google Translate:
由於您在流程中移動項目,因此您可以輕鬆地添加活動,每次將項目移入手提袋或手提袋離開隊列時更改隊列上的標籤值。然後,該標籤值可以由文本對象顯示。
或者,您可以直接在“文本顯示”代碼中讀取手提袋的子節點數。
16 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved