This FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at 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.

Go Back   FlexSim Community Forum > FlexSim Software > Q&A

Q&A Using Flexsim and building models

Old 10-03-2012
naren nataraj naren nataraj is offline
Flexsim User
Join Date: Aug 2011
Location: INDIA
Posts: 28
Downloads: 20
Uploads: 0
Thanks: 36
Thanked 1 Time in 1 Post
Rep Power: 108
naren nataraj is on a distinguished road
Default Changing Model Units

Hi everyone,

Im using Flexsim 6. I have set the model unit during the start of the model in the model unit window as

Time - Minutes
Length - Meters


But now I want to change the time unit as "seconds".

How to change the units..?

Thanks in advance.
Old 10-03-2012
syseo's Avatar
syseo syseo is offline
Flexsim User
Join Date: Aug 2007
Location: Korea
Posts: 290
Downloads: 439
Uploads: 0
Thanks: 249
Thanked 63 Times in 41 Posts
Rep Power: 211
syseo has a spectacular aura aboutsyseo has a spectacular aura about
Default You can change the unit in menu of File>Global Preferences>Environment tab.ces>


You can change the unit in menu of File>Global Preferences>Environment tab.
The Following 2 Users Say Thank You to syseo For This Useful Post:
Sebastian Hemmann (04-18-2013)
Old 10-04-2012
Anthony Johnson's Avatar
Anthony Johnson Anthony Johnson is offline
Manager of Product Development
Join Date: Jul 2007
Posts: 440
Downloads: 86
Uploads: 4
Thanks: 171
Thanked 899 Times in 288 Posts
Rep Power: 735
Anthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond repute

Once you set the time units in a model, you can't really change the units through normal means. However, you can manually change the model units by changing the values in the tree at model/Tools/ModelUnits. To change to seconds, just change /Time/Name to "second", /Time/Abbreviation to "s", /Time/Multiple to 1, and /Time/Plural to "seconds".

However, this will not change the inherent nature of your model. All it will do is change the way certain values are labeled (and, when you next open the model, it will scale default values in the library so they are based on that new time unit, so when you drop new objects into the model, their default values will be based on the model's units). This means that if you defined your process time in a processor as exponential(0, 10) "minutes", when you subsequently change the model units to seconds, all you've changed is the label of what your processor's process time means, so now your processor's process time is exponential(0, 10) "seconds". This means, if your model was initially created in meters, i.e. operators you created were about 2 "meters" tall, then when you change that model unit to feet, all the operators in your model will now be 2 "feet" tall. Granted any new operators you create after reopening that model will be the proper 6 "feet" tall because, again, the library defaults are scaled to a model's units. But existing operators in the model will remain the same size, in "length units", they were created with. So if the xsize of an operator is 2 before the change, it will be 2 after the change. You've only changed your interpretation label for that 2 value from "meters" to "feet".

Under the hood FlexSim only sees "time units". It thinks exponential(0, 10, 0) time units, and nothing else. You, the modeler, are the one who labels that exponential(0, 10) with, "this is in minutes", and you do that when you create a new model. Because of all of this, we discourage changing the model units by inhibiting it in the user interface.

You may say, well, that's kind of a stupid way to go. But properly changing a model's units is much harder than you might think. For example, what if you have, in your model, some code somewhere that says something like:
double secondsToWork = exponential(0, 600);
double secondsToWait = normal(300, 5);
double totalTime = secondsToWork + secondsToWait;
senddelayedmessage(current, totalTime, current);
In order to properly convert that code from being based on seconds to using minutes, FlexSim would have to somehow search for and change that code to:
double minutesToWork = exponential(0, 10);
double minutesToWait = normal(5, 5);
double totalTime = minutesToWork + minutesToWait;
senddelayedmessage(current, totalTime, current);
That would be essentially impossible. Another option is to require our users, when they enter values representing times, to use functions instead of constants where time units are involved:
double timeToWork = exponential(minutes(0), minutes(10));
double timeToWait = normal(minutes(5), minutes(5));
double totalTime = timeToWork + timeToWait;
senddelayedmessage(current, totalTime, current);
But here the problem is we just haven't trained our users to do that, and to me it's a lot of extra work we'd be putting on our users, just to enable them to change model units mid-stream.

So, it is what it is.
The Following 12 Users Say Thank You to Anthony Johnson For This Useful Post:
Vadim Fooks (10-04-2012)
Old 11-04-2013
Katharina Muller Katharina Muller is offline
Flexsim User
Join Date: Nov 2012
Posts: 31
Downloads: 16
Uploads: 0
Thanks: 11
Thanked 6 Times in 4 Posts
Rep Power: 96
Katharina Muller is on a distinguished road
Question Simulation Clock

Dear Anthony,

my model was initialized seconds, but when building the logic I already set everything in minutes and now I changed the model unit as you said above. Everything works fine, vehicle speeds are set to m/min etc. My only problem remaining is that the simulation clock (date and time) still runs in seconds instead of minutes, hence my time table with weekly work schedule would not work correctly (60 times slower)... any idea how to resolve this (using Flexsim 7)?

Thanks a lot, Kat

Okay, I forgot to set Multiple to 60!!! Sorry :-) now its fine!

Last edited by Katharina Muller; 11-04-2013 at 04:16 AM. Reason: Got it! :-)

Thread Thread Starter Forum Replies Last Post
some question about 5.02 changing LINWEIXU Q&A 0 06-03-2010 02:07 AM
changing shape factor when changing 3d shape KelvinHo Q&A 3 09-03-2009 08:24 AM
All time related values 0,0000001 time units delayed Patrick Cap Q&A 2 05-01-2009 01:50 AM
What time units? Anthony Timmiss Q&A 2 08-16-2007 10:08 AM

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.