question

Andres_felipe Jb avatar image
0 Likes"
Andres_felipe Jb asked Ryan Clark commented

Ayuda importando unos datos de excel :c

hola perdón por repetir este tipo de preguntas pero por mas que he intentado no lo he logrado...

tengo un dataset en excel, el cual tiene 5599 datos acerca de las llegadas de camiones por días según una acción especifica , las llegadas están en formato HH:MM:SS AM/PM y cuando intento importar los datos FlexSim importa los datos como un string y no como una hora, por ende, toma todos los valores como 0 y hace que todos los elementos lleguen en tiempo 0, he intentado importar de diferentes maneras, habilitando la opción de importar fechas como tiempos y números, y he intentado ejecutar un Post import code pero también sin éxito, el código fue el siguiente:

  1. Table table = model().find("Gate1Source>variables/schedule");

  2. for(int i = 1; i <= table.numRows; i++)

  3. table[i][1] = table[i][1].as(string).toNum();

Realmente no entiendo como funciona este post import code, pero los resultados que me arroja siguen siendo inválidos ante Flexsim y no se que hacer, por favor alguna ayuda ? :c

adjunto el archivo que estoy trabajando asi como el excel con los datos ssi alguien me puede ayudar con esto por favor se lo agradecería muchísimo

Ejercicio fiinal 1.fsmDatos.xlsx

FlexSim 21.0.7
excel importimport dataimporting data from excel file to source
datos.xlsx (183.0 KiB)
· 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.

Ryan Clark avatar image Ryan Clark commented ·

Hi @Andres_felipe Jb, was Ryan Clark'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

·
Ryan Clark avatar image
0 Likes"
Ryan Clark answered

Hi JB @Andres_felipe

Have you already consulted Excel Interface (flexsim.com)? If not, that may help address any concerns.

5 |100000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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