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 04-21-2011
shashanktrivedi shashanktrivedi is offline
Flexsim User
 
Join Date: Apr 2011
Posts: 59
Downloads: 26
Uploads: 0
Thanks: 26
Thanked 16 Times in 3 Posts
Rep Power: 122
shashanktrivedi will become famous soon enough
Default Model parameters custom gui

I am little bit unfamiliar with flexsim syntax, following user manual of flexsim4.5.

I am using three queues in my model and want to pass max content parameter of each queue through custome gui when you press button ok on the custom gui.

I have added coldlink control attribute into edit button and configure its script to
@>objectfocus+Queue13>variables/maxcontent where as custom gui attributes objectfocus to Main:/project/model and same for view focus.

I have tried many script nothing is linking custom gui to model object variables.

Please help me.
  #2  
Old 04-22-2011
Ben Wilson's Avatar
Ben Wilson Ben Wilson is offline
Flexsim Consultant, Super Moderator
 
Join Date: Jul 2007
Posts: 82
Downloads: 352
Uploads: 6
Thanks: 30
Thanked 159 Times in 43 Posts
Rep Power: 256
Ben Wilson is a glorious beacon of lightBen Wilson is a glorious beacon of lightBen Wilson is a glorious beacon of lightBen Wilson is a glorious beacon of lightBen Wilson is a glorious beacon of light
Default

You're very close. You just need to add a forward slash after the '+' sign, like this:

@>objectfocus+/Queue13>variables/maxcontent

Check out the attached model for a working example. The custom GUI is attached to the Control button.
Attached Files
File Type: zip simpleGUIexample.zip (27.0 KB, 147 views)
  #3  
Old 04-24-2011
shashanktrivedi shashanktrivedi is offline
Flexsim User
 
Join Date: Apr 2011
Posts: 59
Downloads: 26
Uploads: 0
Thanks: 26
Thanked 16 Times in 3 Posts
Rep Power: 122
shashanktrivedi will become famous soon enough
Default

Thanks, you made my life a bit easier.

Tags
urgent


Thread Thread Starter Forum Replies Last Post
Custom Console Phil BoBo User Development 6 12-12-2011 04:19 AM
How to send more than 3 parameters by senddelaymessage() Hao Zhou Q&A 3 03-02-2011 12:20 PM
runspeed with 2 parameters? Steven Hamoen Q&A 3 10-01-2010 11:33 AM
Passing parameters in executefsnode Sung Kim Q&A 2 06-01-2010 09:37 AM
Custom Block Assignments Jamie Santa Ana Container Terminal (CT) Library 3 02-18-2010 08:58 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.