KeywordList input

25 views
Skip to first unread message

Harry King

unread,
Mar 30, 2026, 9:38:32 PM (2 days ago) Mar 30
to JaamSim Users Discussion Group
Emailed question:

"How do i define the UnitType of a variable in the KeywordList in a SubModel? I want the Variable traveltime as TimeUnit. So when i creat a clone i get the Inputoption traveltime and i can input a time. I didnt finde any info about this problem online."

The input to KeywordList would be:

{ traveltime  TimeUnit }

The pop-up description for the KeywordList input in the Input Editor shows a similar example.

Harry

LB

unread,
Mar 31, 2026, 11:25:35 AM (2 days ago) Mar 31
to JaamSim Users Discussion Group

thank you. I had tried this before, but what I didn’t understand was how to input a time value in the newly created key inputs. I initially tried writing 1 h, but received the error “Unexpected additional values.” I’ve now realized that the correct format is 1[h], which works.

Is there a way to define a default value? So far, the only approach I’ve found is to assign a value like 1[h] directly in the SubModel before saving it or creating clones. Is this the intended way to handle default values?

Thank you for your help.

Reply all
Reply to author
Forward
0 new messages