ATTENTION

This FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices.


flexsim.com

Go Back   FlexSim Community Forum > FlexSim Software > Flexsim Student Forum
Downloads

Flexsim Student Forum Forum for discussion for Flexsim Students using the Flexsim Textbook.

  #1  
Old 10-28-2015
Wilfredo Salinas
Guest
 
Posts: n/a
Downloads: 18
Uploads: 0
Default Obtain count of model's object and connections

How can I quickly obtain a count of the number of objects and connections used in a model?
Thanks.
  #2  
Old 10-29-2015
Sebastian Hemmann's Avatar
Sebastian Hemmann Sebastian Hemmann is offline
Flexsim User
 
Join Date: Sep 2009
Location: Braunschweig (Germany)
Posts: 439
Downloads: 52
Uploads: 0
Thanks: 472
Thanked 217 Times in 154 Posts
Rep Power: 319
Sebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to behold
Default

Are you looking for the number of objects and items?

If you are not using any Containers you can turn on the "Show Node Rank" in Tree View and substract all the nodes you don´t want to count as a object (for example: Tools Node).

The number of items actually in the model you can get by using the "Work in Progress" Diagramm in the Dashboard.

Getting the number of Connections seems to get an little more complicated.

My idea would be to write a script that counts all Center-, Input- and Outputports of all objects in tree and devide it by 2.
__________________
Hemmi
  #3  
Old 10-29-2015
RalfGruber's Avatar
RalfGruber RalfGruber is offline
FlexSim Software Products
 
Join Date: Jul 2007
Location: Orem, UT, USA
Posts: 195
Downloads: 37
Uploads: 0
Thanks: 518
Thanked 294 Times in 124 Posts
Rep Power: 345
RalfGruber is a splendid one to beholdRalfGruber is a splendid one to beholdRalfGruber is a splendid one to beholdRalfGruber is a splendid one to beholdRalfGruber is a splendid one to beholdRalfGruber is a splendid one to beholdRalfGruber is a splendid one to behold
Default

Wilfredo,

here is a small sample model. Execute the script and you get the numbers you are asking for in the output console. Be aware, that the visual tool as well as flowitems will be counted as objects.

Let me know, if you have any questions

Ralf
FlexSim
Attached Files
File Type: fsm 20151029_ObjectPortCount_RG.fsm (15.8 KB, 545 views)
The Following 4 Users Say Thank You to RalfGruber For This Useful Post:
Sebastian Hemmann (10-30-2015)


Thread Thread Starter Forum Replies Last Post
To obtain distances travelled by components sravan kumar Q&A 0 01-07-2015 02:28 AM
How to count the number of transporters passing a certain networknode? Sam Zhang Q&A 1 06-26-2014 10:58 PM
Obtain total travel programmatically Shahin Gelareh Q&A 2 03-08-2012 01:53 PM
Yard Container Count Jamie Santa Ana Container Terminal (CT) Library 6 12-22-2009 07:02 PM
Static can count edgar Q&A 2 09-25-2007 09:25 PM


All times are GMT -6.
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.