Skip to main content
Solved

model edit create input argument

  • December 22, 2022
  • 3 replies
  • 44 views

Forum|alt.badge.img+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);

}

Best answer by Joost

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

3 replies

Forum|alt.badge.img+3
  • Ace
  • 16 replies
  • Answer
  • December 22, 2022

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


Chris Kuip
AIMMSian
Forum|alt.badge.img+7
  • AIMMSian
  • 125 replies
  • December 24, 2022

Hi Marc,

 

Perhaps Joost is referring to this how-to.

 

With kind regards,

 

Chris


Forum|alt.badge.img+4
  • Author
  • AIMMS Partner
  • 13 replies
  • January 5, 2023

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

 



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

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