question

chanclas avatar image
0 Likes"
chanclas asked Jeanette F commented

Code Snip Issue

I wanted to make a simple code design similar to this but it doesn't work.


if "rack2 "subnodes.lenght < 3 pull

until subnodes.lenght = 6


I know that I have to create a loop in the middle with a counter that will tell me the lenght until 6 and then finish doing pull

FlexSim 22.2.4
codepullcode snip
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Joerg Vogel avatar image Joerg Vogel commented ·

@chanclas, If you know, how to do it. Then do it, or what is your problem. The Flexscript syntax is following c++ programming language mostly in dot-syntax structure of properties and methods. There exists a reference manual.

https://docs.flexsim.com/en/22.2/Reference/CodingInFlexSim/WritingLogic/WritingLogic.html

https://docs.flexsim.com/en/22.2/Reference/CodingInFlexSim/FlexScriptAPIReference/Basic/double.html and for many more datatypes and classes.

And you there is a command reference:

https://docs.flexsim.com/en/22.2/Reference/CodingInFlexSim/CommandReference/CommandGroupsIndex.html

0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @chanclas, was Joerg Vogel's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Joerg Vogel commented
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Joerg Vogel avatar image Joerg Vogel commented ·
@chanclas , perhaps you haven’t found it, but obviously this forum is not a source to build models for students doing exercises, projects or a thesis. There exists a policy of academic integrity. So please, do not feel disappointed, if some questions won’t get answers in a form you want to get them.
0 Likes 0 ·