execute code after excel import - onmodelreset

execute code after excel import - onmodelreset

marc_r5
Not applicable
190 Views
4 Replies
Message 1 of 5

execute code after excel import - onmodelreset

marc_r5
Not applicable

[ FlexSim 22.1.1 ]

Hello,

I have code on my model reset, that includes an excel import code, and then modifying the import data or adding columns. This should execute only after the excel import is done.

How is it possible to do so?

Thanks!

0 Likes
Accepted solutions (1)
191 Views
4 Replies
Replies (4)
Message 2 of 5

m_rosadini
Advocate
Advocate
Accepted solution

Hi Marc,

you could place the reformatting code in the PostImport code window.

1650450447051.png

0 Likes
Message 3 of 5

marc_r5
Not applicable
Any way to be able to do it wherever I need it? not just here?
0 Likes
Message 4 of 5

jason_lightfoot_adsk
Autodesk
Autodesk

"This should execute only after the excel import is done." ?

0 Likes
Message 5 of 5

marc_r5
Not applicable
Yes, it is like this. But there are more logic applied in other places, such as on set parameters, etc. That's why I am asking.

And besides that, I understand Marcello's option, but this will imply to duplicate logic in a other places and I am trying to keep it simple.

0 Likes