Book a Demo

Author Topic: constraintblock script  (Read 4414 times)

blabla

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
constraintblock script
« on: April 09, 2015, 07:11:38 pm »
Hello I want to insert an array in the script of a constraint block.
is it possible?

int[] myArray = new int[5 3 8 ];

ouptput=myArray;


MMA

  • EA User
  • **
  • Posts: 63
  • Karma: +3/-0
    • View Profile
Re: constraintblock script
« Reply #1 on: April 15, 2015, 08:29:12 am »
If you are saying SysML Constraint Block, maybe not, the script has to be JavaScript. I didn't run it, but you could try:

var myArray = new Array();

myArray[0] = 5;
myArray[1] = 3;
myArray[2] = 8;

...