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 > Q&A
Downloads

Q&A Using Flexsim and building models

  #1  
Old 09-18-2008
Matthias Hofmann Matthias Hofmann is offline
Flexsim User
 
Join Date: Jun 2008
Posts: 15
Downloads: 1
Uploads: 0
Thanks: 11
Thanked 0 Times in 0 Posts
Rep Power: 146
Matthias Hofmann is on a distinguished road
Default String as label of a flowitem

Hello,

I import data from an excel file to fill the schedule table in a source with the labels for the flowitems. Some of the data are stored as text in the excel file. I want to have them as text in the label of the flowitems too.

I import these numbers as text and also the label of the flowitem is definded as text. The schedule of the source shows me the text correct. But after generating the flowitems the labels of the flowitems are changed to number cells and the value is 0.00 and no text values are stored as label. Why does this happen?
  #2  
Old 09-18-2008
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

Matthias,

please post your model or send it to me directly to solve the problem.

THX

Ralf aka ralle
  #3  
Old 09-18-2008
Martijn van Oostenbrugge's Avatar
Martijn van Oostenbrugge Martijn van Oostenbrugge is offline
Talumis, Flexsim Distributor, The Netherlands
 
Join Date: Aug 2007
Posts: 71
Downloads: 12
Uploads: 0
Thanks: 44
Thanked 44 Times in 24 Posts
Rep Power: 268
Martijn van Oostenbrugge is a name known to allMartijn van Oostenbrugge is a name known to allMartijn van Oostenbrugge is a name known to allMartijn van Oostenbrugge is a name known to allMartijn van Oostenbrugge is a name known to allMartijn van Oostenbrugge is a name known to all
Default

Hi Matthias,

This does happen because it is implemented this way in the source. In a sequence and a schedule it internally adds a numeric label when a flowitem is created. However, you can overwrite this again on for instance the OnExit trigger of your source. The string data is still in your source, you just have to substract is and overwrite your label. I've attached a simple model in which I've altered the OnExit of the source.

Good luck!

Martijn
Attached Files
File Type: zip AddStringLabel.zip (41.5 KB, 272 views)
The Following 2 Users Say Thank You to Martijn van Oostenbrugge For This Useful Post:
Matthias Hofmann (09-23-2008)


Thread Thread Starter Forum Replies Last Post
Flowitem Bin and Media Files Martijn van Oostenbrugge Q&A 10 09-04-2008 09:13 AM
IF with a String Gavin Douglas Q&A 1 07-14-2008 12:36 PM
Checking to see if a label exists Paul Dowling Q&A 3 04-28-2008 11:03 PM
Pay attention to flowitem references Iulian Marin Ion Q&A 5 12-09-2007 04:06 PM
Customizing Flowitem Attributes - a quest for the flowitem with the fewest attributes Cliff King Tips and Tricks 0 11-22-2007 12:22 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.