Search found 362 matches

by HarryBunnik
Tuesday 26 May, 2015 - 14:01
Forum: Enterprise Dynamics 4DScript
Topic: Send to script
Replies: 19
Views: 28066

Re: Send to script

Ha,

It was not a direct answer, but a situation in which I think a similar problem is described (queue discipline) and might give you some ideas:

viewtopic.php?f=5&t=519

But good that you make progress! :)

Gr.

Harry
by HarryBunnik
Friday 08 May, 2015 - 10:39
Forum: Modeling in Enterprise Dynamics
Topic: scenario manager errors
Replies: 6
Views: 7249

Re: scenario manager errors

Hello Micha,

The error I/O 32 might indicate that a file you're writing to is already opened somewhere.

The error I/O 112 can mean that either the location you're writing to is full or that you have no permission to write/delete there.

I hope this helps you

Regards,

Harry
by HarryBunnik
Wednesday 29 April, 2015 - 12:46
Forum: Enterprise Dynamics 4DScript
Topic: Send to script
Replies: 19
Views: 28066

Re: Send to script

First some general notes: Label code in the arrival list, use first(c) instead of i. The decimal indicator for numbers is an "." and not a "," (table Cycletime). To use an uniform distribution for the CycleTime or arrival time is a good idea, but then the cell references to the o...
by HarryBunnik
Wednesday 29 April, 2015 - 09:58
Forum: Enterprise Dynamics 4DScript
Topic: Send to script
Replies: 19
Views: 28066

Re: Send to script

No problem. Good you found it yourself :-) Just an extra tip. Also here you can use a WhichIsTrue and an InList to make your code a bit more compact. Case( WhichIsTrue( InList(Label([ProductID], i), 1, 2) > 0, InList(Label([ProductID], i), 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) > 0, InList(Label([ProductI...
by HarryBunnik
Tuesday 28 April, 2015 - 12:20
Forum: Enterprise Dynamics 4DScript
Topic: Send to script
Replies: 19
Views: 28066

Re: Send to script

Yes, you can change the Icon of the product on the OnExit trigger, based on it's label. Case( Label([ProductID], i), {ProductID = 1} Icon(i) := IconByName([CircleBlue]), {ProductID = 2} Icon(i) := IconByName([CircleRed]) ) And to see what Icons are available, you can use the Resource Manager (this a...
by HarryBunnik
Tuesday 28 April, 2015 - 11:06
Forum: Enterprise Dynamics 4DScript
Topic: Send to script
Replies: 19
Views: 28066

Re: Send to script

You can try to use an arrival list, instead of all the different sources to create the different products. That way the number of atoms can be strongly reduced (hopefully under 30), because based on the screen shots I can't see anything.

Regards,

Harry
by HarryBunnik
Friday 24 April, 2015 - 14:21
Forum: Enterprise Dynamics 4DScript
Topic: Send to script
Replies: 19
Views: 28066

Re: Send to script

That sounds as if a product has an invalid exit channel assigned and no longer can get out... Can you add your model, so I can have a look at it? As far as the ordering of the products in the queue, I think that you'll have to write some code to place an applicable product in front of the queue, whe...
by HarryBunnik
Friday 24 April, 2015 - 12:35
Forum: Enterprise Dynamics 4DScript
Topic: Send to script
Replies: 19
Views: 28066

Re: Send to script

That makes it more clear. I see the error, I forgot the comma behind the Do(Bernoulli()). And behind the last line in a statement, you're not allowed to use a comma, so that you also have to remove : Case( WhichIsTrue( InList(Label([ProductID],first(c)),1)>0, InList(Label([ProductID],first(c)),2,3,4...
by HarryBunnik
Friday 24 April, 2015 - 11:44
Forum: Enterprise Dynamics 4DScript
Topic: Queue input strategy
Replies: 4
Views: 5034

Re: Queue input strategy

I quote from the help: Any inputchannel. When activated, this strategy opens all input channels of an atom. If more than one of the atoms that are connected via the input channel can be sent the atom arriving through lowest number input channel will have priority. While products keep entering throug...
by HarryBunnik
Friday 24 April, 2015 - 09:48
Forum: Enterprise Dynamics 4DScript
Topic: Queue input strategy
Replies: 4
Views: 5034

Re: Queue input strategy

Ha Martin, Isn't that what the first general input strategy for the queue (Any inputchannel) is doing? All this does is saying: OpenAllIc, which then will check all the incoming channels if one of the is ready the deliver, starting with input channel nr. 1 and then working it's way up, until it foun...