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 > Tips and Tricks
Downloads

Tips and Tricks Share helpful modeling ideas

  #1  
Old 11-10-2010
William Clausen's Avatar
William Clausen William Clausen is offline
W. Clausen
 
Join Date: Mar 2008
Posts: 12
Downloads: 1
Uploads: 0
Thanks: 9
Thanked 1 Time in 1 Post
Rep Power: 148
William Clausen is on a distinguished road
Default Convert process "ticks" to a dollar value and display

Hello,
It's been quite some time from my last post. But I was wondering if someone might have a pointer for me on how I might convert a process time interval (tick) into a dollar value and display it in the recorder or visual display. This is a snipit of code I was thinking of using
--snip--
Dim decCost As Decimal
Dim i as Integer
decCost = 8.76
While (i<500)
{
Response.Write(decCost.ToString("c"));
i++;
}
--snip--
I *think* this might work but can't for the life of me figure out how to hook it to a visual display. Any thought or suggestions would be very much appreciated. Also we've got Flexsim Ver 4.0 at work But I've been playing with Ver 5.0 at home. Is there any way you folks might be able to upgrade us at work to the new version would be awesome. I'm in love with the new features in Ver 5.0
  #2  
Old 11-11-2010
Jason Lightfoot Jason Lightfoot is offline
Flexsim Consultant
 
Join Date: Aug 2007
Location: Somerset, UK
Posts: 719
Downloads: 20
Uploads: 0
Thanks: 123
Thanked 953 Times in 446 Posts
Rep Power: 773
Jason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond repute
Default

Just use the time() function in visual tool that is set to display text.

If you want to show the cost/value as a function of an object's time in a state I've attached a model - it uses a simple user command gettimeinstate() and a custom text pickitem on the visual tool.
Attached Files
File Type: zip Show cost.zip (54.1 KB, 168 views)

Last edited by Jason Lightfoot; 11-11-2010 at 07:35 AM.
The Following 2 Users Say Thank You to Jason Lightfoot For This Useful Post:
William Clausen (11-11-2010)
  #3  
Old 11-11-2010
William Clausen's Avatar
William Clausen William Clausen is offline
W. Clausen
 
Join Date: Mar 2008
Posts: 12
Downloads: 1
Uploads: 0
Thanks: 9
Thanked 1 Time in 1 Post
Rep Power: 148
William Clausen is on a distinguished road
Default

Quote:
Originally Posted by Jason Lightfoot View Post
Just use the time() function in visual tool that is set to display text.

If you want to show the cost/value as a function of an object's time in a state I've attached a model - it uses a simple user command gettimeinstate() and a custom text pickitem on the visual tool.
As has often been said before. "You Rock." I think we're going to have to buy you dark sunglasses and call you a musical genius! btw, Would there be any issues with my updating our Flexsim 4.0 to the newer 5.4? Do we still have updates as an option in our agreement? Thanks, you can email to my private email

Last edited by William Clausen; 11-11-2010 at 11:04 AM.
  #4  
Old 11-11-2010
Phil BoBo's Avatar
Phil BoBo Phil BoBo is offline
Flexsim Development
 
Join Date: Jan 2008
Posts: 756
Downloads: 109
Uploads: 18
Thanks: 385
Thanked 1,483 Times in 525 Posts
Rep Power: 1174
Phil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond repute
Default

Quote:
Originally Posted by William Clausen View Post
Is there any way you folks might be able to upgrade us at work to the new version would be awesome. I'm in love with the new features in Ver 5.0
To upgrade to version 5, you need to log into the website in the Account section. On the "my licenses" page, there is an Add HASP Licenses button at the top. If you press that button, you can input the User Name and User Code from your version 4 hardware dongle in order to upgrade your license to version 5.


Thread Thread Starter Forum Replies Last Post
Is it possible one object comprised of the function of "combiner" and "separetor"? Vic Li Q&A 1 08-19-2008 04:41 AM
about "no select" and "show parameter window from side bar" qin tian Gripes and Goodies 3 03-21-2008 08:10 AM
Which variable stores "Properties -> General ->Flags -> Protected" information? KelvinHo Q&A 1 03-06-2008 06:18 AM
"Getting Started" and "Tutorial" models for v4.01 Cliff King Product Announcements 0 12-10-2007 07:34 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.