Search found 362 matches

by HarryBunnik
Friday 03 April, 2015 - 11:50
Forum: Enterprise Dynamics 4DScript
Topic: Reading content in multiple atoms per label
Replies: 4
Views: 4307

Re: Reading content in multiple atoms per label

Ha, I'm not entirely sure if I follow all, but to keep a stock with several entry and exits points, I would do the bookkeeping in a table (when your model gets more complicated, you otherwise will get trouble identifying where all products are and your code will become very big) and use the aliases ...
by HarryBunnik
Friday 13 March, 2015 - 11:59
Forum: Enterprise Dynamics 4DScript
Topic: Distance
Replies: 7
Views: 9222

Re: Distance

Ha Chiara, Sorry for my late response. I had missed your earlier post. I'm afraid that I'm again lost in what you try to achieve. You want to know the position of the Black atom. Do you have a reference to that atom (first(c), next(c), last(c), i, rank(#, model) or something else)? If you do, you ca...
by HarryBunnik
Monday 09 March, 2015 - 18:41
Forum: Enterprise Dynamics 4DScript
Topic: Sorting function
Replies: 1
Views: 2617

Re: Sorting function

Ha Magus, Yes, that is possible, if your create a table and use the aliases, you can refer to it (I created a refTable in the code below for that). Then you can loop over the table, until you find the corresponding name and use the defined channel. So something like: Do( var([valRowCount], vbValue, ...
by HarryBunnik
Wednesday 04 March, 2015 - 17:21
Forum: Enterprise Dynamics 4DScript
Topic: Server output channels
Replies: 8
Views: 6910

Re: Server output channels

Ha MartinL, What Tobias is saying that by splitting it up, it might be easier to model and also easier for someone else to understand what is happening, is true. However, since it is a nice subject ;-), I think that with some adjustments the code I gave earlier can do the trick for you as well: Do( ...
by HarryBunnik
Monday 23 February, 2015 - 10:33
Forum: Enterprise Dynamics 4DScript
Topic: Server output channels
Replies: 8
Views: 6910

Re: Server output channels

Ha MartinL, I see that for your case I missed one occurance. And that is when both lines are full. The IndexMatch will then return a 0, which send it to an unwanted channel. I've made a small adjustment (addin the Max(1, around the indexMatch ) to the SendTo statement, which seems to do the trick. D...
by HarryBunnik
Friday 20 February, 2015 - 16:29
Forum: Modeling in Enterprise Dynamics
Topic: Production line with multiple products
Replies: 2
Views: 3932

Re: Production line with multiple products

Ha MartinL, That sounds to me as something you can achieve using a table. If you create a table you can then place for each product and each server the required process time. If you place on the product a label [ProductType] with the correct row and on the server a label [ServerNr] with a reference ...
by HarryBunnik
Friday 20 February, 2015 - 16:14
Forum: Enterprise Dynamics 4DScript
Topic: Server output channels
Replies: 8
Views: 6910

Re: Server output channels

Ha MartinL, I hope I understood yout question correctly. You can write a case statement in the SendTo like the following: Do( var([valStartExitChn], vbValue), Case( Label([Test], first(c)), valStartExitChn := 2, valStartExitChn := 4, valStartExitChn := 6 ), Max(valStartExitChn - 1, valStartExitChn +...
by HarryBunnik
Friday 20 February, 2015 - 14:57
Forum: Enterprise Dynamics 4DScript
Topic: AdvancedTransporter_PickAtom
Replies: 1
Views: 2787

Re: AdvancedTransporter_PickAtom

Hello Niloofar, I've made a few changes to your model to get it working. The most important is that I've checked the box on the tab "load", which allows the automatic loading. Now the discharger was trying to call the Transporter, but it wasn't allowed to react. Otherwise you really have t...
by HarryBunnik
Friday 20 February, 2015 - 09:55
Forum: Enterprise Dynamics 4DScript
Topic: Channel problem 2
Replies: 1
Views: 2963

Re: Channel problem 2

Ha Carnm92, I've made a small example model in which every third product has the name "mec". Test.mod As you see I made a different type of SendTo statement (code below). After all I need the time at which the last product entered the atom behind the robot (in my case a simple server). Cas...
by HarryBunnik
Thursday 19 February, 2015 - 18:02
Forum: Enterprise Dynamics 4DScript
Topic: Portal crane problems
Replies: 3
Views: 3589

Re: Portal crane problems

Dear Carnm92, First of all, I'm sorry for the late response, but I wasn't able to answer sooner. I've made some adjustments to the controls of the crane (and replaced the entire crane since I had troubles to get it to act the way I wanted). Portalcrane v2.mod At the SendTo statement, I've simplified...