Solved

model edit create input argument

  • 22 December 2022
  • 3 replies
  • 38 views

Userlevel 1
Badge +4

Hello,

 

Is there a way to define an input argument via model edting? 

I know I can create a procedure and define the body e.g.:

 

{    _eProc := me::Create(_spProcName, 'procedure', _eSection);
    me::SetAttribute(_eProc, 'body', _spBody);

}

icon

Best answer by Joost 22 December 2022, 20:32

View original

3 replies

Userlevel 2
Badge

Hi Marc,

If I remember well, I think you can’t do this directly. I thought you can create a run time parameter and then move that node under the created run time procedure as a ‘trick’ to accomplish this effect. Also thought this was in a how-to somewhere. See me::Move() function.

Joost

Userlevel 5
Badge +7

Hi Marc,

 

Perhaps Joost is referring to this how-to.

 

With kind regards,

 

Chris

Userlevel 1
Badge +4

Thanks Joost, Chris 

One note by doing so I found that on https://documentation.aimms.com/language-reference/non-procedural-language-components/set-declaration/set-declaration-and-attributes.html there is a typo.

I wanted to set a subset but the attribute name is ‘subset of’ with a space. (not SubsetOf)

Cheers

 

Reply


Didn't find what you were looking for? Try searching on our documentation pages:

AIMMS Developer & PRO | AIMMS How-To | AIMMS SC Navigator