ATTENTIONThis 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 |
#1
|
|||
|
|||
How to write coding for that?
Hi Please check the attached file.
How can i write coding for changing type value of To NN133 and NN134 (type). example if To NN133> type = 2, i want to assign NN134> type = 1. if To NN133>type = 2, i want to assign NN134> type =2. Please guide me how to do that. Thanks. |
#2
|
||||
|
||||
Can you tell us why you want to change that and what you think that it does?
I'm just asking because until now I have never touched it |
#3
|
|||
|
|||
Quote:
Thanks. |
#4
|
||||
|
||||
Think you are looking for something like:
setnodenum(node(">NN41/connections/connectionsout/To NN133/type",model()),1); Maybe this is the right direction!?
__________________
Hemmi |
#5
|
||||
|
||||
As far as I can tell the type is used to determine if the edge is passing or non passing. Usually it is not a good idea to mess with the tree that flexsim generates. For instance are you sure that if you change it, it will work without resetting your model?
If you want to change the way objects behave, use the triggers that are supplied in combination with the commands. In this case take a good look at the closenodeedge and opennodeedge commands. Maybe in combination with optimizenetwork. Or create or change your tasksequences so that they first travel to the correct endnode and then to the end destination. Or use the callsubtasks tasksequences. I'm not sure how much access you have to your tasksequence in CT, so you have to try a bit probably. |
The Following 2 Users Say Thank You to Steven Hamoen For This Useful Post: | ||
Sebastian Hemmann (10-29-2012) |
#6
|
|||
|
|||
Quote:
|
The Following User Says Thank You to stmyint For This Useful Post: | ||
Steven Hamoen (10-30-2012) |
Thread | Thread Starter | Forum | Replies | Last Post |
Coding problem | Liang Wen Yin | Q&A | 4 | 08-13-2012 04:49 PM |
Questions on coding | Jack Lai | Q&A | 6 | 02-07-2012 12:04 AM |
Can I write to the system console? | Steven Hamoen | Q&A | 2 | 11-26-2008 06:37 AM |
Need help for coding on lifts. | chrisquek | Q&A | 5 | 11-25-2008 03:00 AM |
A pitfall in Flexsim coding | AlanZhang | Gripes and Goodies | 7 | 05-16-2008 03:37 PM |